1 |
commit: ba46800d9cfec57cc59af151967912d833be68aa |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 14 12:31:29 2018 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 14 19:06:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba46800d |
7 |
|
8 |
net-misc/curl: remove unused patch |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
.../files/curl-7.59.0-libressl-compatibility.patch | 70 ---------------------- |
13 |
1 file changed, 70 deletions(-) |
14 |
|
15 |
diff --git a/net-misc/curl/files/curl-7.59.0-libressl-compatibility.patch b/net-misc/curl/files/curl-7.59.0-libressl-compatibility.patch |
16 |
deleted file mode 100644 |
17 |
index e7ee6c3ab15..00000000000 |
18 |
--- a/net-misc/curl/files/curl-7.59.0-libressl-compatibility.patch |
19 |
+++ /dev/null |
20 |
@@ -1,70 +0,0 @@ |
21 |
-From da51ddee81e10398172f0baf3327b5db82846175 Mon Sep 17 00:00:00 2001 |
22 |
-From: Bernard Spil <brnrd@×××××××.org> |
23 |
-Date: Mon, 2 Apr 2018 19:04:06 +0200 |
24 |
-Subject: [PATCH] openssl: fix build with LibreSSL 2.7 |
25 |
- |
26 |
- - LibreSSL 2.7 implements (most of) OpenSSL 1.1 API |
27 |
- |
28 |
-Fixes #2319 |
29 |
-Closes #2447 |
30 |
-Closes #2448 |
31 |
- |
32 |
-Signed-off-by: Bernard Spil <brnrd@×××××××.org> |
33 |
---- |
34 |
- lib/vtls/openssl.c | 15 +++++++++------ |
35 |
- 1 file changed, 9 insertions(+), 6 deletions(-) |
36 |
- |
37 |
-diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c |
38 |
-index 2a6b3cfac..bbb8ec766 100644 |
39 |
---- a/lib/vtls/openssl.c |
40 |
-+++ b/lib/vtls/openssl.c |
41 |
-@@ -104,7 +104,8 @@ |
42 |
- #endif |
43 |
- |
44 |
- #if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && /* OpenSSL 1.1.0+ */ \ |
45 |
-- !defined(LIBRESSL_VERSION_NUMBER) |
46 |
-+ !(defined(LIBRESSL_VERSION_NUMBER) && \ |
47 |
-+ LIBRESSL_VERSION_NUMBER < 0x20700000L) |
48 |
- #define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER |
49 |
- #define HAVE_X509_GET0_EXTENSIONS 1 /* added in 1.1.0 -pre1 */ |
50 |
- #define HAVE_OPAQUE_EVP_PKEY 1 /* since 1.1.0 -pre3 */ |
51 |
-@@ -128,7 +129,8 @@ static unsigned long OpenSSL_version_num(void) |
52 |
- #endif |
53 |
- |
54 |
- #if (OPENSSL_VERSION_NUMBER >= 0x1000200fL) && /* 1.0.2 or later */ \ |
55 |
-- !defined(LIBRESSL_VERSION_NUMBER) |
56 |
-+ !(defined(LIBRESSL_VERSION_NUMBER) && \ |
57 |
-+ LIBRESSL_VERSION_NUMBER < 0x20700000L) |
58 |
- #define HAVE_X509_GET0_SIGNATURE 1 |
59 |
- #endif |
60 |
- |
61 |
-@@ -147,7 +149,7 @@ static unsigned long OpenSSL_version_num(void) |
62 |
- * Whether SSL_CTX_set_keylog_callback is available. |
63 |
- * OpenSSL: supported since 1.1.1 https://github.com/openssl/openssl/pull/2287 |
64 |
- * BoringSSL: supported since d28f59c27bac (committed 2015-11-19) |
65 |
-- * LibreSSL: unsupported in at least 2.5.1 (explicitly check for it since it |
66 |
-+ * LibreSSL: unsupported in at least 2.7.2 (explicitly check for it since it |
67 |
- * lies and pretends to be OpenSSL 2.0.0). |
68 |
- */ |
69 |
- #if (OPENSSL_VERSION_NUMBER >= 0x10101000L && \ |
70 |
-@@ -259,7 +261,9 @@ static void tap_ssl_key(const SSL *ssl, ssl_tap_state_t *state) |
71 |
- if(!session || !keylog_file_fp) |
72 |
- return; |
73 |
- |
74 |
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER) |
75 |
-+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ |
76 |
-+ !(defined(LIBRESSL_VERSION_NUMBER) && \ |
77 |
-+ LIBRESSL_VERSION_NUMBER < 0x20700000L) |
78 |
- /* ssl->s3 is not checked in openssl 1.1.0-pre6, but let's assume that |
79 |
- * we have a valid SSL context if we have a non-NULL session. */ |
80 |
- SSL_get_client_random(ssl, client_random, SSL3_RANDOM_SIZE); |
81 |
-@@ -2082,8 +2086,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) |
82 |
- case CURL_SSLVERSION_TLSv1_2: |
83 |
- case CURL_SSLVERSION_TLSv1_3: |
84 |
- /* it will be handled later with the context options */ |
85 |
--#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && \ |
86 |
-- !defined(LIBRESSL_VERSION_NUMBER) |
87 |
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) |
88 |
- req_method = TLS_client_method(); |
89 |
- #else |
90 |
- req_method = SSLv23_client_method(); |