Tweaks for OpenSSL 1.1 API deprecations

This commit is contained in:
Howard Chu 2017-04-19 20:19:09 +01:00
parent c0ff8e8a21
commit 2975a1d6f1

View File

@ -32,8 +32,10 @@
#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