summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/include/libssl_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/include/libssl_compat.h')
-rw-r--r--contrib/ntp/include/libssl_compat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/ntp/include/libssl_compat.h b/contrib/ntp/include/libssl_compat.h
index a8938a1..2a3697c 100644
--- a/contrib/ntp/include/libssl_compat.h
+++ b/contrib/ntp/include/libssl_compat.h
@@ -24,6 +24,18 @@
#include "openssl/dsa.h"
#include "openssl/rsa.h"
+#ifndef OPENSSL_VERSION_NUMBER
+#define OPENSSL_VERSION_NUMBER SSLEAY_VERSION_NUMBER
+#endif
+
+#ifndef OPENSSL_VERSION_TEXT
+#define OPENSSL_VERSION_TEXT SSLEAY_VERSION_TEXT
+#endif
+
+#ifndef OPENSSL_VERSION
+#define OPENSSL_VERSION SSLEAY_VERSION
+#endif
+
/* ----------------------------------------------------------------- */
#if OPENSSL_VERSION_NUMBER < 0x10100000L
/* ----------------------------------------------------------------- */
@@ -93,6 +105,13 @@ extern int sslshim_X509_get_signature_nid(const X509 *x);
#define X509_get_signature_nid sslshim_X509_get_signature_nid
+#define OpenSSL_version_num SSLeay
+#define OpenSSL_version SSLeay_version
+#define X509_get0_notBefore X509_get_notBefore
+#define X509_getm_notBefore X509_get_notBefore
+#define X509_get0_notAfter X509_get_notAfter
+#define X509_getm_notAfter X509_get_notAfter
+
/* ----------------------------------------------------------------- */
#endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */
/* ----------------------------------------------------------------- */
OpenPOWER on IntegriCloud