Index: devel/qca/files/patch-libressl =================================================================== --- devel/qca/files/patch-libressl +++ devel/qca/files/patch-libressl @@ -1,5 +1,18 @@ --- plugins/qca-ossl/qca-ossl.cpp.orig 2015-10-02 09:39:21 UTC +++ plugins/qca-ossl/qca-ossl.cpp +@@ -5404,7 +5404,12 @@ + break; + #endif + case TLS::SSL_v3: ++#ifndef OPENSSL_NO_SSL3 + ctx = SSL_CTX_new(SSLv3_client_method()); ++#else ++ ctx = SSL_CTX_new(SSLv23_client_method()); ++ SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv2); ++#endif + break; + case TLS::TLS_v1: + ctx = SSL_CTX_new(TLSv1_client_method()); @@ -5805,7 +5805,11 @@ public: { SessionInfo sessInfo; @@ -13,3 +26,14 @@ if (ssl->version == TLS1_VERSION) sessInfo.version = TLS::TLS_v1; +@@ -7137,8 +7142,10 @@ + return new opensslInfoContext(this); + else if ( type == "sha1" ) + return new opensslHashContext( EVP_sha1(), this, type); ++#ifndef OPENSSL_NO_SHA0 + else if ( type == "sha0" ) + return new opensslHashContext( EVP_sha(), this, type); ++#endif + else if ( type == "ripemd160" ) + return new opensslHashContext( EVP_ripemd160(), this, type); + #ifdef HAVE_OPENSSL_MD2 \ No newline at end of file