]> git.sur5r.net Git - openldap/commitdiff
Tweaks for OpenSSL 1.1 API deprecations
authorHoward Chu <hyc@openldap.org>
Wed, 19 Apr 2017 19:19:09 +0000 (20:19 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 19 Apr 2017 19:19:09 +0000 (20:19 +0100)
servers/slapd/overlays/autoca.c

index c7120bfeafdb2b62be54aedc34e2a40cf44be92c..5a8ec1b481376df08d4ca7d60bc8fe6d5ad56864 100644 (file)
 #include "slap.h"
 #include "config.h"
 
+#include <openssl/x509.h>
 #include <openssl/x509v3.h>
 #include <openssl/evp.h>
+#include <openssl/bn.h>
 
 /* 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 <openssl/rsa.h>
+#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