void-packages/srcpkgs/qca/patches/libressl-2.3.patch

29 lines
1.0 KiB
Diff

--- plugins/qca-ossl/qca-ossl.cpp.orig 2016-03-31 09:00:14.410576583 +0200
+++ plugins/qca-ossl/qca-ossl.cpp 2016-03-31 09:00:21.935576020 +0200
@@ -7129,8 +7129,6 @@ public:
return new opensslInfoContext(this);
else if ( type == "sha1" )
return new opensslHashContext( EVP_sha1(), this, type);
- else if ( type == "sha0" )
- return new opensslHashContext( EVP_sha(), this, type);
else if ( type == "ripemd160" )
return new opensslHashContext( EVP_ripemd160(), this, type);
#ifdef HAVE_OPENSSL_MD2
--- plugins/qca-ossl/qca-ossl.cpp.orig 2016-03-31 09:09:28.995535076 +0200
+++ plugins/qca-ossl/qca-ossl.cpp 2016-03-31 09:09:36.345534526 +0200
@@ -5394,13 +5394,8 @@ public:
OpenSSL_add_ssl_algorithms();
SSL_CTX *ctx = 0;
switch (version) {
-#ifndef OPENSSL_NO_SSL2
- case TLS::SSL_v2:
- ctx = SSL_CTX_new(SSLv2_client_method());
- break;
-#endif
case TLS::SSL_v3:
- ctx = SSL_CTX_new(SSLv3_client_method());
+ ctx = SSL_CTX_new(SSLv23_client_method());
break;
case TLS::TLS_v1:
ctx = SSL_CTX_new(TLSv1_client_method());