diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-10 14:03:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-10-10 14:03:10 +0000 |
commit | ad54c789c2e7c58d1564216051abb31d68b87843 (patch) | |
tree | ff2224b1ff2530bfb3d7f986906350ae9f9687b7 /main/neon/fix-libressl.patch | |
parent | b8c75be622db05ba1989aebe2304ca26173fc4d9 (diff) | |
download | aports-ad54c789c2e7c58d1564216051abb31d68b87843.tar.bz2 aports-ad54c789c2e7c58d1564216051abb31d68b87843.tar.xz |
main/neon: add missing patch for libressl fix
Diffstat (limited to 'main/neon/fix-libressl.patch')
-rw-r--r-- | main/neon/fix-libressl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/neon/fix-libressl.patch b/main/neon/fix-libressl.patch new file mode 100644 index 0000000000..226e79878e --- /dev/null +++ b/main/neon/fix-libressl.patch @@ -0,0 +1,31 @@ +Version number juggling for libressl + +--- a/src/ne_openssl.c 2016-09-30 10:46:00.000000000 +0200 ++++ b/src/ne_openssl.c 2016-10-06 00:19:58.366044580 +0200 +@@ -66,7 +66,7 @@ + typedef const unsigned char ne_d2i_uchar; + #endif + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) + #define X509_up_ref(x) x->references++ + #define EVP_PKEY_up_ref(x) x->references++ + #define EVP_PKEY_get0_RSA(evp) (evp->pkey.rsa) +@@ -1199,7 +1199,7 @@ + + int ne__ssl_init(void) + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) + CRYPTO_malloc_init(); + SSL_load_error_strings(); + SSL_library_init(); +@@ -1242,7 +1242,7 @@ + "for %" NE_FMT_SIZE_T " locks.\n", num_locks); + } + #endif +-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ ++#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) */ + + return 0; + } |