ucspi-ssl: Remove RSA ephemeral key setup deprecated by LibreSSL
This commit is contained in:
parent
be6ce85086
commit
f83f7ad719
|
@ -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'
|
||||
pkgname=ucspi-ssl
|
||||
version=0.95b
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="Command-line tools for building SSL client-server applications"
|
||||
maintainer="Evan Deaubl <evan@deaubl.name>"
|
||||
license="public domain"
|
||||
|
|
Loading…
Reference in New Issue