View | Details | Raw Unified | Return to bug 226845
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	curl
4
PORTNAME=	curl
5
PORTVERSION=	7.59.0
5
PORTVERSION=	7.59.0
6
PORTREVISION=	1
6
CATEGORIES=	ftp net www
7
CATEGORIES=	ftp net www
7
MASTER_SITES=	https://curl.haxx.se/download/ \
8
MASTER_SITES=	https://curl.haxx.se/download/ \
8
		LOCAL/sunpoet
9
		LOCAL/sunpoet
(-)files/patch-lib_vtls_openssl.c (+28 lines)
Line 0 Link Here
1
--- lib/vtls/openssl.c.orig	2018-03-22 14:26:38 UTC
2
+++ lib/vtls/openssl.c
3
@@ -117,12 +117,7 @@
4
 #define X509_get0_notBefore(x) X509_get_notBefore(x)
5
 #define X509_get0_notAfter(x) X509_get_notAfter(x)
6
 #define CONST_EXTS /* nope */
7
-#ifdef LIBRESSL_VERSION_NUMBER
8
-static unsigned long OpenSSL_version_num(void)
9
-{
10
-  return LIBRESSL_VERSION_NUMBER;
11
-}
12
-#else
13
+#ifndef LIBRESSL_VERSION_NUMBER
14
 #define OpenSSL_version_num() SSLeay()
15
 #endif
16
 #endif
17
@@ -3526,7 +3521,11 @@ static size_t Curl_ossl_version(char *bu
18
   unsigned long ssleay_value;
19
   sub[2]='\0';
20
   sub[1]='\0';
21
+#ifdef LIBRESSL_VERSION_NUMBER
22
+  ssleay_value = LIBRESSL_VERSION_NUMBER;
23
+#else
24
   ssleay_value = OpenSSL_version_num();
25
+#endif
26
   if(ssleay_value < 0x906000) {
27
     ssleay_value = SSLEAY_VERSION_NUMBER;
28
     sub[0]='\0';

Return to bug 226845