lol

qca2: add patch to build with libressl 2.3

+30
+2
pkgs/development/libraries/qca2/default.nix
··· 13 13 14 14 enableParallelBuilding = true; 15 15 16 + patches = [ ./libressl.patch ]; 17 + 16 18 meta = with stdenv.lib; { 17 19 description = "Qt Cryptographic Architecture"; 18 20 license = "LGPL";
+28
pkgs/development/libraries/qca2/libressl.patch
··· 1 + --- a/plugins/qca-ossl/qca-ossl.cpp 2015-12-02 09:34:25.810682094 +0000 2 + +++ b/plugins/qca-ossl/qca-ossl.cpp 2015-12-02 09:29:51.720392423 +0000 3 + @@ -5403,11 +5403,13 @@ 4 + ctx = SSL_CTX_new(SSLv2_client_method()); 5 + break; 6 + #endif 7 + +#ifndef OPENSSL_NO_SSL3 8 + case TLS::SSL_v3: 9 + ctx = SSL_CTX_new(SSLv3_client_method()); 10 + break; 11 + +#endif 12 + case TLS::TLS_v1: 13 + + ctx = SSL_CTX_new(SSLv23_client_method()); 14 + - ctx = SSL_CTX_new(TLSv1_client_method()); 15 + break; 16 + case TLS::DTLS_v1: 17 + default: 18 + @@ -7133,8 +7135,10 @@ 19 + return new opensslInfoContext(this); 20 + else if ( type == "sha1" ) 21 + return new opensslHashContext( EVP_sha1(), this, type); 22 + +#ifndef OPENSSL_NO_SHA0 23 + else if ( type == "sha0" ) 24 + return new opensslHashContext( EVP_sha(), this, type); 25 + +#endif 26 + else if ( type == "ripemd160" ) 27 + return new opensslHashContext( EVP_ripemd160(), this, type); 28 + #ifdef HAVE_OPENSSL_MD2