|
|
5a085fb |
From 36dcccb94bef72a7c4cf6acf7479f18568e545bb Mon Sep 17 00:00:00 2001
|
|
|
5a085fb |
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
5a085fb |
Date: Tue, 2 May 2017 17:19:20 +0200
|
|
|
5a085fb |
Subject: [PATCH] module: drop link-time vs. run-time TLS backend check
|
|
|
5a085fb |
|
|
|
5a085fb |
This effectively reverts the following commit:
|
|
|
5a085fb |
8891398a31119ce7c872509ed60328926c51cdfb
|
|
|
5a085fb |
|
|
|
5a085fb |
Bug: https://bugzilla.redhat.com/1446850
|
|
|
5a085fb |
---
|
|
|
5a085fb |
src/module.c | 19 +------------------
|
|
|
5a085fb |
1 file changed, 1 insertion(+), 18 deletions(-)
|
|
|
5a085fb |
|
|
|
5a085fb |
diff --git a/src/module.c b/src/module.c
|
|
|
5a085fb |
index a7108a0..af79875 100644
|
|
|
5a085fb |
--- a/src/module.c
|
|
|
5a085fb |
+++ b/src/module.c
|
|
|
5a085fb |
@@ -315,7 +315,7 @@ initpycurl(void)
|
|
|
5a085fb |
{
|
|
|
5a085fb |
PyObject *m, *d;
|
|
|
5a085fb |
const curl_version_info_data *vi;
|
|
|
5a085fb |
- const char *libcurl_version, *runtime_ssl_lib;
|
|
|
5a085fb |
+ const char *libcurl_version;
|
|
|
5a085fb |
size_t libcurl_version_len, pycurl_version_len;
|
|
|
5a085fb |
PyObject *collections_module = NULL;
|
|
|
5a085fb |
PyObject *named_tuple = NULL;
|
|
|
5a085fb |
@@ -333,23 +333,6 @@ initpycurl(void)
|
|
|
5a085fb |
goto error;
|
|
|
5a085fb |
}
|
|
|
5a085fb |
|
|
|
5a085fb |
- /* Our compiled crypto locks should correspond to runtime ssl library. */
|
|
|
5a085fb |
- if (vi->ssl_version == NULL) {
|
|
|
5a085fb |
- runtime_ssl_lib = "none/other";
|
|
|
5a085fb |
- } else if (!strncmp(vi->ssl_version, "OpenSSL/", 8) || !strncmp(vi->ssl_version, "LibreSSL/", 9)) {
|
|
|
5a085fb |
- runtime_ssl_lib = "openssl";
|
|
|
5a085fb |
- } else if (!strncmp(vi->ssl_version, "GnuTLS/", 7)) {
|
|
|
5a085fb |
- runtime_ssl_lib = "gnutls";
|
|
|
5a085fb |
- } else if (!strncmp(vi->ssl_version, "NSS/", 4)) {
|
|
|
5a085fb |
- runtime_ssl_lib = "nss";
|
|
|
5a085fb |
- } else {
|
|
|
5a085fb |
- runtime_ssl_lib = "none/other";
|
|
|
5a085fb |
- }
|
|
|
5a085fb |
- if (strcmp(runtime_ssl_lib, COMPILE_SSL_LIB)) {
|
|
|
5a085fb |
- PyErr_Format(PyExc_ImportError, "pycurl: libcurl link-time ssl backend (%s) is different from compile-time ssl backend (%s)", runtime_ssl_lib, COMPILE_SSL_LIB);
|
|
|
5a085fb |
- goto error;
|
|
|
5a085fb |
- }
|
|
|
5a085fb |
-
|
|
|
5a085fb |
/* Initialize the type of the new type objects here; doing it here
|
|
|
5a085fb |
* is required for portability to Windows without requiring C++. */
|
|
|
5a085fb |
p_Curl_Type = &Curl_Type;
|
|
|
5a085fb |
--
|
|
|
5a085fb |
2.10.2
|
|
|
5a085fb |
|