Merge pull request #2938 from evandeaubl/ucspi-ssl-0.95b_2
ucspi-ssl: Remove RSA ephemeral key setup deprecated by LibreSSL
This commit is contained in:
commit
4b6ecaaca4
2 changed files with 18 additions and 1 deletions
17
srcpkgs/ucspi-ssl/patches/libressl.patch
Normal file
17
srcpkgs/ucspi-ssl/patches/libressl.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
diff -ur host-orig/superscript.com/net/ucspi-ssl-0.95b/src/ssl_params.c host/superscript.com/net/ucspi-ssl-0.95b/src/ssl_params.c
|
||||||
|
--- host-orig/superscript.com/net/ucspi-ssl-0.95b/src/ssl_params.c 2012-06-07 09:50:27.000000000 -0500
|
||||||
|
+++ host/superscript.com/net/ucspi-ssl-0.95b/src/ssl_params.c 2015-11-10 12:17:02.000000000 -0600
|
||||||
|
@@ -16,11 +16,13 @@
|
||||||
|
if (!SSL_CTX_set_tmp_dh(ctx,dh)) return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
|
if (len) {
|
||||||
|
rsa = RSA_generate_key(len,RSA_F4,0,0);
|
||||||
|
if (!rsa) return 0;
|
||||||
|
if (!SSL_CTX_set_tmp_rsa(ctx,rsa)) return 0;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ucspi-ssl'
|
# Template file for 'ucspi-ssl'
|
||||||
pkgname=ucspi-ssl
|
pkgname=ucspi-ssl
|
||||||
version=0.95b
|
version=0.95b
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Command-line tools for building SSL client-server applications"
|
short_desc="Command-line tools for building SSL client-server applications"
|
||||||
maintainer="Evan Deaubl <evan@deaubl.name>"
|
maintainer="Evan Deaubl <evan@deaubl.name>"
|
||||||
license="public domain"
|
license="public domain"
|
||||||
|
|
Loading…
Reference in a new issue