aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Retornaz <gentoo@retornaz.com>2021-01-17 19:04:00 +0100
committerQuentin Retornaz <gentoo@retornaz.com>2021-01-26 01:21:41 +0100
commita897e7f04eadf2e3c91b411196a676d43d3e1bfe (patch)
tree1a67ce55ab82ba8146af5b5c02159d569c188ce6 /dev-libs/libstrophe/files
parentdev-lang/rust: new package (diff)
downloadlibressl-a897e7f04eadf2e3c91b411196a676d43d3e1bfe.tar.gz
libressl-a897e7f04eadf2e3c91b411196a676d43d3e1bfe.tar.bz2
libressl-a897e7f04eadf2e3c91b411196a676d43d3e1bfe.zip
dev-libs/libstrophe: new package
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Quentin Retornaz <gentoo@retornaz.com>
Diffstat (limited to 'dev-libs/libstrophe/files')
-rw-r--r--dev-libs/libstrophe/files/libstrophe-0.9.2-libressl.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-libs/libstrophe/files/libstrophe-0.9.2-libressl.patch b/dev-libs/libstrophe/files/libstrophe-0.9.2-libressl.patch
new file mode 100644
index 0000000..1c0cf23
--- /dev/null
+++ b/dev-libs/libstrophe/files/libstrophe-0.9.2-libressl.patch
@@ -0,0 +1,20 @@
+--- a/src/tls_openssl.c
++++ b/src/tls_openssl.c
+@@ -51,7 +51,7 @@
+
+ void tls_initialize(void)
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
+ SSL_library_init();
+ SSL_load_error_strings();
+ #else
+@@ -120,7 +120,7 @@
+ /* Trust server's certificate when user sets the flag explicitly. */
+ mode = conn->tls_trust ? SSL_VERIFY_NONE : SSL_VERIFY_PEER;
+ SSL_set_verify(tls->ssl, mode, 0);
+-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
++#if OPENSSL_VERSION_NUMBER >= 0x10002000L && (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+ /* Hostname verification is supported in OpenSSL 1.0.2 and newer. */
+ X509_VERIFY_PARAM *param = SSL_get0_param(tls->ssl);
+