tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
qca2: add patch to build with libressl 2.3
Robin Gloster
10 years ago
562ba769
501d49eb
+30
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
qca2
default.nix
libressl.patch
+2
pkgs/development/libraries/qca2/default.nix
reviewed
···
13
13
14
14
enableParallelBuilding = true;
15
15
16
16
+
patches = [ ./libressl.patch ];
17
17
+
16
18
meta = with stdenv.lib; {
17
19
description = "Qt Cryptographic Architecture";
18
20
license = "LGPL";
+28
pkgs/development/libraries/qca2/libressl.patch
reviewed
···
1
1
+
--- a/plugins/qca-ossl/qca-ossl.cpp 2015-12-02 09:34:25.810682094 +0000
2
2
+
+++ b/plugins/qca-ossl/qca-ossl.cpp 2015-12-02 09:29:51.720392423 +0000
3
3
+
@@ -5403,11 +5403,13 @@
4
4
+
ctx = SSL_CTX_new(SSLv2_client_method());
5
5
+
break;
6
6
+
#endif
7
7
+
+#ifndef OPENSSL_NO_SSL3
8
8
+
case TLS::SSL_v3:
9
9
+
ctx = SSL_CTX_new(SSLv3_client_method());
10
10
+
break;
11
11
+
+#endif
12
12
+
case TLS::TLS_v1:
13
13
+
+ ctx = SSL_CTX_new(SSLv23_client_method());
14
14
+
- ctx = SSL_CTX_new(TLSv1_client_method());
15
15
+
break;
16
16
+
case TLS::DTLS_v1:
17
17
+
default:
18
18
+
@@ -7133,8 +7135,10 @@
19
19
+
return new opensslInfoContext(this);
20
20
+
else if ( type == "sha1" )
21
21
+
return new opensslHashContext( EVP_sha1(), this, type);
22
22
+
+#ifndef OPENSSL_NO_SHA0
23
23
+
else if ( type == "sha0" )
24
24
+
return new opensslHashContext( EVP_sha(), this, type);
25
25
+
+#endif
26
26
+
else if ( type == "ripemd160" )
27
27
+
return new opensslHashContext( EVP_ripemd160(), this, type);
28
28
+
#ifdef HAVE_OPENSSL_MD2