Skip to content

Commit ce0c77a

Browse files
committed
Update curl to v7.73.0
Remove the FindBrotli module since it is now included. Update to USE_SCHANNEL for Windows native SSL. Add a feature flag for the CA bundle so it can be disabled.
1 parent 785f45a commit ce0c77a

File tree

5 files changed

+23
-52
lines changed

5 files changed

+23
-52
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
| [brotli](https://github.com/google/brotli) | 1.0.9 | 2020-08-27 |
2121
| [libressl](https://www.libressl.org) | 3.2.1 | 2020-08-24 |
2222
| [nghttp2](https://nghttp2.org) | 1.41.0 | 2020-06-02 |
23-
| [curl](https://curl.haxx.se) | 7.72.0 | 2020-08-19 |
23+
| [curl](https://curl.haxx.se) | 7.73.0 | 2020-10-14 |
2424
| [libxml2](http://xmlsoft.org/) | 2.9.10 | 2019-10-30 |
2525
| [libxslt](http://xmlsoft.org/libxslt) | 1.1.34 | 2019-10-30 |
2626
| [libpng](http://www.libpng.org/pub/png/libpng.html) | 1.6.37 | 2019-04-15 |

WindowsRequirements.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"brotli",
44
"libressl",
55
"nghttp2",
6-
"curl[ssl,ipv6]",
6+
"curl[ca-bundle,ssl,ipv6]",
77
"icu",
88
"libxml2[xslt]",
99
"libxslt",

ports/curl/CONTROL

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
Source: curl
2-
Version: 7.72.0
2+
Version: 7.73.0
33
Build-Depends: zlib, brotli, nghttp2
44
Description: A library for transferring data with URLs
55

6+
Feature: ca-bundle
7+
Description: |
8+
Use the provided certificate bundle.
9+
610
Feature: ssl
711
Build-Depends: libressl
812
Description: |

ports/curl/build/CMake/FindBrotli.cmake

-41
This file was deleted.

ports/curl/portfile.cmake

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
include(vcpkg_common_functions)
22

3-
set(VERSION 7.72.0)
3+
set(VERSION 7.73.0)
44
string(REPLACE "." "_" TAG ${VERSION})
55

66
# Get archive
77
vcpkg_download_distfile(ARCHIVE
88
URLS "https://github.com/curl/curl/releases/download/curl-${TAG}/curl-${VERSION}.zip"
99
FILENAME "curl-${VERSION}.zip"
10-
SHA512 3018061bd33c1c1b8d8b45122540a36846b556a8ade75d176532114f26973aed0b643c8baa0166493519ebcc29385e4b6e8bfcd761e594003971cdbe807d49f3
10+
SHA512 66fe22da8a24199f244c501007f51a7188c1f5ae145ad88a247254ee2f612ae3a71c636a5214a2e8518eeaf54849a992f1b8eab1ef9a4b7bac08419931d28185
1111
)
1212

1313
# Patches
@@ -23,10 +23,6 @@ vcpkg_extract_source_archive_ex(
2323
PATCHES ${PATCHES}
2424
)
2525

26-
# Add CMake find module for Brotli that's missing from the distribution
27-
# Remove once https://github.com/curl/curl/pull/5836 lands in a release
28-
file(COPY ${CMAKE_CURRENT_LIST_DIR}/build/CMake/FindBrotli.cmake DESTINATION ${SOURCE_PATH}/CMake)
29-
3026
# Run CMake build
3127
set(BUILD_OPTIONS
3228
# BUILD options
@@ -52,18 +48,30 @@ set(BUILD_OPTIONS
5248
-DCURL_DISABLE_POP3=ON
5349
-DCURL_DISABLE_PROXY=OFF
5450
-DCURL_DISABLE_RTSP=ON
51+
-DCURL_DISABLE_SMB=ON
5552
-DCURL_DISABLE_SMTP=ON
5653
-DCURL_DISABLE_TELNET=ON
5754
-DCURL_DISABLE_TFTP=ON
55+
-DCURL_ENABLE_MQTT=OFF
5856
# ENABLE options
5957
-DENABLE_ARES=OFF
6058
-DENABLE_MANUAL=OFF
6159
-DENABLE_THREADED_RESOLVER=ON
60+
-DENABLE_UNIX_SOCKETS=OFF
6261
# USE options
6362
-DUSE_NGHTTP2=ON
6463
-DUSE_WIN32_LDAP=OFF
6564
)
6665

66+
# Check for ca-bundle feature
67+
if (ca-bundle IN_LIST FEATURES)
68+
message(STATUS "Enabling CA bundle")
69+
set(BUILD_OPTIONS ${BUILD_OPTIONS} -DCURL_CA_BUNDLE=auto -DCURL_CA_PATH=auto)
70+
else ()
71+
message(STATUS "Disabling CA bundle")
72+
set(BUILD_OPTIONS ${BUILD_OPTIONS} -DCURL_CA_BUNDLE=none -DCURL_CA_PATH=none)
73+
endif ()
74+
6775
# Check for IPV6 feature
6876
if (ipv6 IN_LIST FEATURES)
6977
message(STATUS "Enabling IPV6")
@@ -87,7 +95,7 @@ if (NOT ssl IN_LIST FEATURES)
8795

8896
if (VCPKG_WINDOWS)
8997
set(USE_OPENSSL OFF)
90-
set(USE_WINSSL ON)
98+
set(USE_SCHANNEL ON)
9199
endif ()
92100
endif ()
93101

@@ -110,7 +118,7 @@ vcpkg_configure_cmake(
110118
${BUILD_OPTIONS}
111119
-DCURL_STATICLIB=${CURL_STATICLIB}
112120
-DCMAKE_USE_OPENSSL=${USE_OPENSSL}
113-
-DCMAKE_USE_WINSSL=${USE_WINSSL}
121+
-DCMAKE_USE_SCHANNEL=${USE_SCHANNEL}
114122
OPTIONS_DEBUG
115123
-DENABLE_DEBUG=ON
116124
)

0 commit comments

Comments
 (0)