From 7e8f1916d6d90b6b2a68833846a52e1ea9dbb309 Mon Sep 17 00:00:00 2001 From: Zenju Date: Tue, 9 Jul 2019 11:24:41 +0200 Subject: openssl: define HAVE_SSL_GET_SHUTDOWN based on version number Closes #4100 --- lib/vtls/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/vtls') 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) -- cgit v1.2.3