]> granicus.if.org Git - curl/commitdiff
openssl: adapt to 1.1.0+ name changes
authorDaniel Stenberg <daniel@haxx.se>
Thu, 10 Dec 2015 16:30:31 +0000 (17:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 10 Dec 2015 16:31:37 +0000 (17:31 +0100)
lib/vtls/openssl.c

index 551c2a88d7cdb89a2a99e972374752b88f5c9f48..f1b8311264703c8ed447ed53c95aea76d848e534 100644 (file)
 #define OPENSSL_NO_SSL2
 #endif
 
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0+ removed "SSLeay"  */
+#define SSLeay_add_ssl_algorithms() SSL_library_init()
+#define SSLeay() OpenSSL_version_num()
+#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
+#endif
+
 #if defined(OPENSSL_IS_BORINGSSL)
 #define NO_RAND_SEED 1
 /* In BoringSSL OpenSSL_add_all_algorithms does nothing */