aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openconnect/openconnect-7.08-libressl251.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-11-27 21:06:53 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-11-27 21:06:59 +0000
commit6afcf362335b17590f8bcf8f7462a7d2165a7eaf (patch)
tree2962f2af28be744dc9abf4e9762d1afc5536181f /testing/openconnect/openconnect-7.08-libressl251.patch
parentbc1cb506a2a45ed5600e84258276bf38ce5f106f (diff)
downloadaports-6afcf362335b17590f8bcf8f7462a7d2165a7eaf.tar.bz2
aports-6afcf362335b17590f8bcf8f7462a7d2165a7eaf.tar.xz
testing/openconnect: moved from unmaintained, upgraded to 7.08
Diffstat (limited to 'testing/openconnect/openconnect-7.08-libressl251.patch')
-rw-r--r--testing/openconnect/openconnect-7.08-libressl251.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/openconnect/openconnect-7.08-libressl251.patch b/testing/openconnect/openconnect-7.08-libressl251.patch
new file mode 100644
index 0000000000..ba0b894092
--- /dev/null
+++ b/testing/openconnect/openconnect-7.08-libressl251.patch
@@ -0,0 +1,14 @@
+diff -Naur openconnect-7.08.orig/openssl-dtls.c openconnect-7.08/openssl-dtls.c
+--- openconnect-7.08.orig/openssl-dtls.c 2016-12-06 05:03:51.000000000 -0800
++++ openconnect-7.08/openssl-dtls.c 2017-02-01 13:35:52.315398332 -0800
+@@ -100,8 +100,8 @@
+ }
+ #else
+ /* OpenSSL <= 1.0.2 only supports CBC ciphers with PSK */
+- ivlen = EVP_CIPHER_iv_length(EVP_CIPHER_CTX_cipher(vpninfo->dtls_ssl->enc_write_ctx));
+- maclen = EVP_MD_CTX_size(vpninfo->dtls_ssl->write_hash);
++ ivlen = EVP_CIPHER_iv_length(EVP_CIPHER_CTX_cipher(vpninfo->dtls_ssl->enc_read_ctx));
++ maclen = EVP_MD_CTX_size(vpninfo->dtls_ssl->read_hash);
+ blocksize = ivlen;
+ pad = 1;
+ #endif