aboutsummaryrefslogtreecommitdiffstats
path: root/main/pjproject/libressl-2.7.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/pjproject/libressl-2.7.patch')
-rw-r--r--main/pjproject/libressl-2.7.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/main/pjproject/libressl-2.7.patch b/main/pjproject/libressl-2.7.patch
deleted file mode 100644
index a98b068dd5..0000000000
--- a/main/pjproject/libressl-2.7.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- a/pjlib/src/pj/ssl_sock_ossl.c
-+++ b/pjlib/src/pj/ssl_sock_ossl.c
-@@ -111,7 +111,7 @@
- #endif
-
-
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
- # define OPENSSL_NO_SSL2 /* seems to be removed in 1.1.0 */
- # define M_ASN1_STRING_data(x) ASN1_STRING_get0_data(x)
- # define M_ASN1_STRING_length(x) ASN1_STRING_length(x)
-@@ -535,7 +535,7 @@
- pj_assert(status == PJ_SUCCESS);
-
- /* Init OpenSSL lib */
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- SSL_library_init();
- SSL_load_error_strings();
- #else
-@@ -599,7 +599,7 @@
-
- SSL_set_session(ssl, SSL_SESSION_new());
-
--#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL
-+#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
- openssl_curves_num = SSL_get_shared_curve(ssl,-1);
- if (openssl_curves_num > PJ_ARRAY_SIZE(openssl_curves))
- openssl_curves_num = PJ_ARRAY_SIZE(openssl_curves);
-@@ -1228,7 +1228,7 @@
-
- static pj_status_t set_curves_list(pj_ssl_sock_t *ssock)
- {
--#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL
-+#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
- int ret;
- int curves[PJ_SSL_SOCK_MAX_CURVES];
- unsigned cnt;
-@@ -1259,7 +1259,7 @@
-
- static pj_status_t set_sigalgs(pj_ssl_sock_t *ssock)
- {
--#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
-+#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
- int ret;
-
- if (ssock->param.sigalgs.ptr && ssock->param.sigalgs.slen) {
-Only in .: pjlib/src/pj/ssl_sock_ossl.c.orig