From: Howard Chu Date: Wed, 19 Apr 2017 19:19:09 +0000 (+0100) Subject: Tweaks for OpenSSL 1.1 API deprecations X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2975a1d6f13d9cb20fc9ecf47ad28f09b9d30487;p=openldap Tweaks for OpenSSL 1.1 API deprecations --- diff --git a/servers/slapd/overlays/autoca.c b/servers/slapd/overlays/autoca.c index c7120bfeaf..5a8ec1b481 100644 --- a/servers/slapd/overlays/autoca.c +++ b/servers/slapd/overlays/autoca.c @@ -32,8 +32,10 @@ #include "slap.h" #include "config.h" +#include #include #include +#include /* Starting with OpenSSL 1.1.0, rsa.h is no longer included in * x509.h, so we need to explicitly include it for the @@ -42,6 +44,8 @@ #if OPENSSL_VERSION_NUMBER >= 0x10100000 #include +#define X509_get_notBefore(x) X509_getm_notBefore(x) +#define X509_get_notAfter(x) X509_getm_notAfter(x) #endif /* This overlay implements a certificate authority that can generate