ucspi-ssl: Remove RSA ephemeral key setup deprecated by LibreSSL

This commit is contained in:
Evan Deaubl 2015-11-10 12:29:02 -06:00
parent be6ce85086
commit f83f7ad719
2 changed files with 18 additions and 1 deletions

View 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;
}

View File

@ -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"