diff options
author | Zenju <zenju@gmx.de> | 2019-07-09 11:24:41 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-07-14 16:24:46 +0200 |
commit | 7e8f1916d6d90b6b2a68833846a52e1ea9dbb309 (patch) | |
tree | 94b4f6198b826ed3e71532ce84aaa43895206ca1 /lib | |
parent | 855887af7928d70a2938b7c9c750a0c237c47c15 (diff) |
openssl: define HAVE_SSL_GET_SHUTDOWN based on version number
Closes #4100
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config-symbian.h | 5 | ||||
-rw-r--r-- | lib/config-vxworks.h | 3 | ||||
-rw-r--r-- | lib/curl_config.h.cmake | 3 | ||||
-rw-r--r-- | lib/vtls/openssl.c | 4 |
4 files changed, 5 insertions, 10 deletions
diff --git a/lib/config-symbian.h b/lib/config-symbian.h index d23de3325..b7b93c6f4 100644 --- a/lib/config-symbian.h +++ b/lib/config-symbian.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -478,9 +478,6 @@ /* Define to 1 if you have the `socket' function. */ #define HAVE_SOCKET 1 -/* Define to 1 if you have the `SSL_get_shutdown' function. */ -/*#define HAVE_SSL_GET_SHUTDOWN 1*/ - /* Define to 1 if you have the <ssl.h> header file. */ /* #undef HAVE_SSL_H */ diff --git a/lib/config-vxworks.h b/lib/config-vxworks.h index 8790f8266..89af3525b 100644 --- a/lib/config-vxworks.h +++ b/lib/config-vxworks.h @@ -541,9 +541,6 @@ /* Define to 1 if you have the `socket' function. */ #define HAVE_SOCKET 1 -/* Define to 1 if you have the `SSL_get_shutdown' function. */ -#define HAVE_SSL_GET_SHUTDOWN 1 - /* Define to 1 if you have the <ssl.h> header file. */ /* #undef HAVE_SSL_H */ diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 3d96c498c..5458cbaca 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -587,9 +587,6 @@ /* Define to 1 if you have the `socket' function. */ #cmakedefine HAVE_SOCKET 1 -/* Define to 1 if you have the `SSL_get_shutdown' function. */ -#cmakedefine HAVE_SSL_GET_SHUTDOWN 1 - /* Define to 1 if you have the <ssl.h> header file. */ #cmakedefine HAVE_SSL_H 1 diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 1d2ec04ed..fb9f27123 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -156,6 +156,10 @@ #define HAVE_X509_GET0_SIGNATURE 1 #endif +#if (OPENSSL_VERSION_NUMBER >= 0x1000200fL) /* 1.0.2 or later */ +#define HAVE_SSL_GET_SHUTDOWN 1 +#endif + #if OPENSSL_VERSION_NUMBER >= 0x10002003L && \ OPENSSL_VERSION_NUMBER <= 0x10002FFFL && \ !defined(OPENSSL_NO_COMP) |