stunnel: update to 5.18.

This commit is contained in:
Christian Neukirchen 2015-06-13 17:03:39 +02:00
parent 9e9ea6facc
commit f443bd729f
2 changed files with 24 additions and 3 deletions

View File

@ -45,3 +45,23 @@
NOEXPORT int cert_check_subject(CLI *c, X509_STORE_CTX *callback_ctx) {
X509 *cert=X509_STORE_CTX_get_current_cert(callback_ctx);
NAME_LIST *ptr;
--- src/options.c.orig
+++ src/options.c
@@ -2450,7 +2450,7 @@
/* sslVersion */
switch(cmd) {
case CMD_BEGIN:
-#if OPENSSL_VERSION_NUMBER>=0x10100000L
+#if OPENSSL_VERSION_NUMBER>=0x10100000L && OPENSSL_VERSION_NUMBER<0x20000000L
section->client_method=(SSL_METHOD *)TLS_client_method();
section->server_method=(SSL_METHOD *)TLS_server_method();
#else
@@ -2462,7 +2462,7 @@
if(strcasecmp(opt, "sslVersion"))
break;
if(!strcasecmp(arg, "all")) {
-#if OPENSSL_VERSION_NUMBER>=0x10100000L
+#if OPENSSL_VERSION_NUMBER>=0x10100000L && OPENSSL_VERSION_NUMBER<0x20000000L
section->client_method=(SSL_METHOD *)TLS_client_method();
section->server_method=(SSL_METHOD *)TLS_server_method();
#else

View File

@ -1,17 +1,18 @@
# Template file for 'stunnel'
pkgname=stunnel
version=5.17
revision=2
version=5.18
revision=1
build_style=gnu-configure
build_pie=yes
configure_args="--enable-ipv6 --with-ssl=${XBPS_CROSS_BASE}/usr"
hostmakedepends="perl"
makedepends="libressl-devel"
short_desc="SSL encryption wrapper"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="https://www.stunnel.org/"
distfiles="https://www.stunnel.org/downloads/$pkgname-$version.tar.gz"
checksum=c3e79e582621a0827125e35e1c00450190104fc02dc3c5274cb02b05859fd472
checksum=0532c0a2f8de3da1ab625e384146501ce5936fac63d01561c3a9bf652b692317
post_install() {
rm ${DESTDIR}/usr/share/man/man8/stunnel.??.8