openvpn: update to 2.4.7.

This commit is contained in:
Helmut Pozimski 2019-03-05 18:54:10 +01:00
parent 1e3fded509
commit 504b6fd535
2 changed files with 32 additions and 3 deletions

View file

@ -0,0 +1,29 @@
--- src/openvpn/ssl_openssl.c 2019-03-05 18:39:14.924080534 +0100
+++ src/openvpn/ssl_openssl.c 2019-03-05 18:49:33.737131153 +0100
@@ -459,7 +459,7 @@
return;
}
-#if (OPENSSL_VERSION_NUMBER < 0x1010100fL)
+#if (OPENSSL_VERSION_NUMBER < 0x1010100fL || defined(LIBRESSL_VERSION_NUMBER))
crypto_msg(M_WARN, "Not compiled with OpenSSL 1.1.1 or higher. "
"Ignoring TLS 1.3 only tls-ciphersuites '%s' setting.",
ciphers);
@@ -1846,7 +1846,7 @@
crypto_msg(M_FATAL, "Cannot create SSL_CTX object");
}
-#if (OPENSSL_VERSION_NUMBER >= 0x1010100fL)
+#if (OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER))
if (tls13)
{
SSL_CTX_set_min_proto_version(tls_ctx.ctx, TLS1_3_VERSION);
@@ -1867,7 +1867,7 @@
crypto_msg(M_FATAL, "Cannot create SSL object");
}
-#if (OPENSSL_VERSION_NUMBER < 0x1010000fL)
+#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER))
STACK_OF(SSL_CIPHER) *sk = SSL_get_ciphers(ssl);
#else
STACK_OF(SSL_CIPHER) *sk = SSL_get1_supported_ciphers(ssl);

View file

@ -1,7 +1,7 @@
# Template file for 'openvpn'
pkgname=openvpn
version=2.4.6
revision=4
version=2.4.7
revision=1
build_style=gnu-configure
configure_args="--enable-pkcs11 --enable-iproute2 --disable-systemd"
hostmakedepends="iproute2 pkg-config"
@ -13,7 +13,7 @@ maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.openvpn.net"
distfiles="http://build.openvpn.net/downloads/releases/${pkgname}-${version}.tar.xz"
checksum=4f6434fa541cc9e363434ea71a16a62cf2615fb2f16af5b38f43ab5939998c26
checksum=a42f53570f669eaf10af68e98d65b531015ff9e12be7a62d9269ea684652f648
post_install() {
vmkdir usr/share/examples/${pkgname}