curl/curl-7.47.1-disable-ssl2.patch

14 lines
510 B
Diff

diff -urN curl-7.47.1/lib/vtls/openssl.c curl-7.47.1-patched/lib/vtls/openssl.c
--- curl-7.47.1/lib/vtls/openssl.c 2016-02-08 00:43:38.000000000 +1000
+++ curl-7.47.1-patched/lib/vtls/openssl.c 2016-03-10 19:48:37.249589990 +1000
@@ -119,6 +119,10 @@
#define OPENSSL_NO_SSL2
#endif
+#ifndef OPENSSL_NO_SSL2
+#define OPENSSL_NO_SSL2
+#endif
+
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && /* OpenSSL 1.1.0+ */ \
!defined(LIBRESSL_VERSION_NUMBER)
#define SSLeay_add_ssl_algorithms() SSL_library_init()