From f83f7ad7190e0786b4e41118f46a142cdb977f0e Mon Sep 17 00:00:00 2001 From: Evan Deaubl Date: Tue, 10 Nov 2015 12:29:02 -0600 Subject: [PATCH] ucspi-ssl: Remove RSA ephemeral key setup deprecated by LibreSSL --- srcpkgs/ucspi-ssl/patches/libressl.patch | 17 +++++++++++++++++ srcpkgs/ucspi-ssl/template | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ucspi-ssl/patches/libressl.patch diff --git a/srcpkgs/ucspi-ssl/patches/libressl.patch b/srcpkgs/ucspi-ssl/patches/libressl.patch new file mode 100644 index 00000000000..e499b3afbe0 --- /dev/null +++ b/srcpkgs/ucspi-ssl/patches/libressl.patch @@ -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; + } diff --git a/srcpkgs/ucspi-ssl/template b/srcpkgs/ucspi-ssl/template index 14556a6236d..da776e7d007 100644 --- a/srcpkgs/ucspi-ssl/template +++ b/srcpkgs/ucspi-ssl/template @@ -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 " license="public domain"