[Midnightbsd-cvs] mports [23653] trunk/ftp/curl/files/patch-lib-vtls-openssl.c: add file
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Jul 23 14:16:39 EDT 2018
Revision: 23653
http://svnweb.midnightbsd.org/mports/?rev=23653
Author: laffer1
Date: 2018-07-23 14:16:39 -0400 (Mon, 23 Jul 2018)
Log Message:
-----------
add file
Added Paths:
-----------
trunk/ftp/curl/files/patch-lib-vtls-openssl.c
Added: trunk/ftp/curl/files/patch-lib-vtls-openssl.c
===================================================================
--- trunk/ftp/curl/files/patch-lib-vtls-openssl.c (rev 0)
+++ trunk/ftp/curl/files/patch-lib-vtls-openssl.c 2018-07-23 18:16:39 UTC (rev 23653)
@@ -0,0 +1,28 @@
+--- lib/vtls/openssl.c.orig 2018-03-22 14:26:38 UTC
++++ lib/vtls/openssl.c
+@@ -117,12 +117,7 @@
+ #define X509_get0_notBefore(x) X509_get_notBefore(x)
+ #define X509_get0_notAfter(x) X509_get_notAfter(x)
+ #define CONST_EXTS /* nope */
+-#ifdef LIBRESSL_VERSION_NUMBER
+-static unsigned long OpenSSL_version_num(void)
+-{
+- return LIBRESSL_VERSION_NUMBER;
+-}
+-#else
++#ifndef LIBRESSL_VERSION_NUMBER
+ #define OpenSSL_version_num() SSLeay()
+ #endif
+ #endif
+@@ -3526,7 +3521,11 @@ static size_t Curl_ossl_version(char *bu
+ unsigned long ssleay_value;
+ sub[2]='\0';
+ sub[1]='\0';
++#ifdef LIBRESSL_VERSION_NUMBER
++ ssleay_value = LIBRESSL_VERSION_NUMBER;
++#else
+ ssleay_value = OpenSSL_version_num();
++#endif
+ if(ssleay_value < 0x906000) {
+ ssleay_value = SSLEAY_VERSION_NUMBER;
+ sub[0]='\0';
Property changes on: trunk/ftp/curl/files/patch-lib-vtls-openssl.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list