From b6610c83ca7146f7e86929311751aa50d8c37628 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 20 Aug 2020 22:01:32 +0200 Subject: [PATCH] Use X509_set_notBefore() and X509_set_notAfter() ... when compiling with OpenSSL versions earlier than 1.1.0. Sponsored by: Robert Klemme --- openssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openssl.c b/openssl.c index 5bf3f1a7..ec838a40 100644 --- a/openssl.c +++ b/openssl.c @@ -66,6 +66,11 @@ static void log_ssl_errors(int debuglevel, const char* fmt, ...) __attribute__(( static int ssl_inited = 0; +#if OPENSSL_VERSION_NUMBER < 0x10100000L +#define X509_set1_notBefore X509_set_notBefore +#define X509_set1_notAfter X509_set_notAfter +#endif + /********************************************************************* * * Function : openssl_init -- 2.39.2