initial import
This commit is contained in:
40
ntp/libressl-2.8.patch
Normal file
40
ntp/libressl-2.8.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
diff --git a/include/libssl_compat.h b/include/libssl_compat.h
|
||||
index 2a3697c..eeb83d9 100644
|
||||
--- a/include/libssl_compat.h
|
||||
+++ b/include/libssl_compat.h
|
||||
@@ -37,7 +37,7 @@
|
||||
#endif
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
# include <openssl/objects.h>
|
||||
@@ -107,10 +107,13 @@ extern int sslshim_X509_get_signature_nid(const X509 *x);
|
||||
|
||||
#define OpenSSL_version_num SSLeay
|
||||
#define OpenSSL_version SSLeay_version
|
||||
+
|
||||
+# if !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L
|
||||
#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 /* !defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x20800000L */
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
#endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */
|
||||
diff --git a/libntp/libssl_compat.c b/libntp/libssl_compat.c
|
||||
index 5527682..88a3870 100644
|
||||
--- a/libntp/libssl_compat.c
|
||||
+++ b/libntp/libssl_compat.c
|
||||
@@ -26,7 +26,7 @@
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
-#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
+#if defined(OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
#include "libssl_compat.h"
|
||||
Reference in New Issue
Block a user