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:
Juan RP 2015-11-11 08:19:00 +01:00
commit 4b6ecaaca4
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"