]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libressl: the latest openssl x509 funcs are not in libressl
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Dec 2015 08:49:19 +0000 (09:49 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 Dec 2015 08:49:54 +0000 (09:49 +0100)
lib/vtls/openssl.c

index e5b0bb99bdea02069dea2213327398a91dbaf0e2..8365465b6bac9331a058cfb570605a646715c6a8 100644 (file)
 #define OPENSSL_NO_SSL2
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0+ */
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && /* OpenSSL 1.1.0+ */ \
+  !defined(LIBRESSL_VERSION_NUMBER)
 #define SSLeay_add_ssl_algorithms() SSL_library_init()
 #define SSLeay() OpenSSL_version_num()
 #define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
 #define HAVE_X509_GET0_EXTENSIONS 1 /* added in 1.1.0 -pre1 */
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL /* 1.0.2 or later */
+#if (OPENSSL_VERSION_NUMBER >= 0x1000200fL) && /* 1.0.2 or later */ \
+  !defined(LIBRESSL_VERSION_NUMBER)
 #define HAVE_X509_GET0_SIGNATURE 1
 #endif