-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[curl] Add apple-sectrust feature #51089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,27 +15,28 @@ vcpkg_replace_string("${SOURCE_PATH}/include/curl/curlver.h" [[LIBCURL_TIMESTAMP | |
|
|
||
| vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
| FEATURES | ||
| http2 USE_NGHTTP2 | ||
| http3 USE_NGTCP2 | ||
| wolfssl CURL_USE_WOLFSSL | ||
| openssl CURL_USE_OPENSSL | ||
| openssl CURL_CA_FALLBACK | ||
| mbedtls CURL_USE_MBEDTLS | ||
| ssh CURL_USE_LIBSSH2 | ||
| tool BUILD_CURL_EXE | ||
| c-ares ENABLE_ARES | ||
| sspi CURL_WINDOWS_SSPI | ||
| brotli CURL_BROTLI | ||
| idn2 USE_LIBIDN2 | ||
| winidn USE_WIN32_IDN | ||
| zstd CURL_ZSTD | ||
| psl CURL_USE_LIBPSL | ||
| gssapi CURL_USE_GSSAPI | ||
| gsasl CURL_USE_GSASL | ||
| gnutls CURL_USE_GNUTLS | ||
| rtmp USE_LIBRTMP | ||
| httpsrr USE_HTTPSRR | ||
| ssls-export USE_SSLS_EXPORT | ||
| apple-sectrust USE_APPLE_SECTRUST | ||
| http2 USE_NGHTTP2 | ||
| http3 USE_NGTCP2 | ||
| wolfssl CURL_USE_WOLFSSL | ||
| openssl CURL_USE_OPENSSL | ||
| openssl CURL_CA_FALLBACK | ||
| mbedtls CURL_USE_MBEDTLS | ||
| ssh CURL_USE_LIBSSH2 | ||
| tool BUILD_CURL_EXE | ||
| c-ares ENABLE_ARES | ||
| sspi CURL_WINDOWS_SSPI | ||
| brotli CURL_BROTLI | ||
| idn2 USE_LIBIDN2 | ||
| winidn USE_WIN32_IDN | ||
| zstd CURL_ZSTD | ||
| psl CURL_USE_LIBPSL | ||
| gssapi CURL_USE_GSSAPI | ||
| gsasl CURL_USE_GSASL | ||
| gnutls CURL_USE_GNUTLS | ||
| rtmp USE_LIBRTMP | ||
| httpsrr USE_HTTPSRR | ||
| ssls-export USE_SSLS_EXPORT | ||
| INVERTED_FEATURES | ||
| ldap CURL_DISABLE_LDAP | ||
| ldap CURL_DISABLE_LDAPS | ||
|
|
@@ -50,6 +51,25 @@ if("ssl" IN_LIST FEATURES AND | |
| list(APPEND FEATURE_OPTIONS -DCURL_USE_SCHANNEL=ON) | ||
| endif() | ||
|
|
||
| if("apple-sectrust" IN_LIST FEATURES) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this even be a feature or should we always just do it? (It's hard to imagine a case where one does not want this behavior) |
||
| set(apple_sectrust_has_compatible_backend OFF) | ||
| if("ssl" IN_LIST FEATURES OR "openssl" IN_LIST FEATURES OR "gnutls" IN_LIST FEATURES) | ||
| set(apple_sectrust_has_compatible_backend ON) | ||
| endif() | ||
|
|
||
| if(NOT apple_sectrust_has_compatible_backend AND | ||
| ("mbedtls" IN_LIST FEATURES OR "wolfssl" IN_LIST FEATURES)) | ||
| message(FATAL_ERROR "apple-sectrust requires curl[ssl], curl[openssl], or curl[gnutls].") | ||
| endif() | ||
|
|
||
| if(NOT apple_sectrust_has_compatible_backend) | ||
| list(APPEND FEATURE_OPTIONS | ||
| -DCURL_USE_OPENSSL=ON | ||
| -DCURL_CA_FALLBACK=ON | ||
| ) | ||
| endif() | ||
| endif() | ||
|
|
||
| if("http3" IN_LIST FEATURES AND | ||
| ("wolfssl" IN_LIST FEATURES OR | ||
| "mbedtls" IN_LIST FEATURES OR | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| { | ||
| "name": "curl", | ||
| "version": "8.19.0", | ||
| "port-version": 1, | ||
| "description": "A library for transferring data with URLs", | ||
| "homepage": "https://curl.se/", | ||
| "license": "curl AND ISC AND BSD-3-Clause", | ||
|
|
@@ -20,6 +21,13 @@ | |
| "ssl" | ||
| ], | ||
| "features": { | ||
| "apple-sectrust": { | ||
| "description": "Use Apple's SecTrust certificate verification", | ||
| "supports": "osx", | ||
| "dependencies": [ | ||
| "openssl" | ||
| ] | ||
| }, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this feature depend on openssl libs? And do we want an apple-specific feature? A similar capability exists for Windows ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Apple SecTrust is only supported with Openssl/GnuTLS,without mbedTLS/wolfSSL |
||
| "brotli": { | ||
| "description": "brotli support (brotli)", | ||
| "dependencies": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a newlines change but it isn't, the file is still correctly LF, this is just inserting extra spaces to get the options to line up again now that apple-sectrust is longer.
No change requested.