Skip to content
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

cmake: add support for CURL_DEFAULT_SSL_BACKEND #11774

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Aug 31, 2023

Allow overriding the default TLS backend via a CMake setting.

E.g.:
cmake [...] -DCURL_DEFAULT_SSL_BACKEND=mbedtls

Accepted values: bearssl, gnutls, mbedtls, openssl, rustls,
schannel, secure-transport, wolfssl

The passed string is baked into the curl/libcurl binaries.
The value is case-insensitive.

We added a similar option to autotools in 2017 via
c7170e2.

TODO: Convert to lowercase to improve reproducibility.

Closes #11774

Allow overriding the default TLS backend via a CMake setting.

E.g.:
`cmake [...] -DCURL_DEFAULT_SSL_BACKEND=mbedtls`

Accepted values: bearssl, gnutls, mbedtls, openssl, rustls,
schannel, secure-transport, wolfssl

The string is baked into the final binary as a string. The
value is case-insensitive.

We added a similar option to autotools in 2017 via
c7170e2.

Closes #xxxxx
vszakats added a commit to curl/curl-for-win that referenced this pull request Aug 31, 2023
vszakats added a commit to curl/curl-for-win that referenced this pull request Aug 31, 2023
vszakats added a commit to curl/curl-for-win that referenced this pull request Aug 31, 2023
@vszakats vszakats closed this in 26c7feb Aug 31, 2023
@vszakats vszakats deleted the cmake-default-tls-backend branch August 31, 2023 23:06
vszakats added a commit to curl/curl-for-win that referenced this pull request Aug 31, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 1, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 2, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 3, 2023
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 3, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 3, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 3, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 3, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 6, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 20, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 20, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 22, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 22, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 22, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 23, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 23, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 24, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
ptitSeb pushed a commit to wasix-org/curl that referenced this pull request Sep 25, 2023
Allow overriding the default TLS backend via a CMake setting.

E.g.:
`cmake [...] -DCURL_DEFAULT_SSL_BACKEND=mbedtls`

Accepted values: bearssl, gnutls, mbedtls, openssl, rustls,
schannel, secure-transport, wolfssl

The passed string is baked into the curl/libcurl binaries.
The value is case-insensitive.

We added a similar option to autotools in 2017 via
c7170e2.

TODO: Convert to lowercase to improve reproducibility.

Closes curl#11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 27, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 28, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 28, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Sep 28, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl that referenced this pull request Sep 30, 2023
Before this patch CMake builds accepted any value and it was used at
runtime as-is. This patch make sure that the selected default backend
is also enabled in the build. It also enforces a full lowercase value.
This improves reproducibility.

This brings CMake closer to autotools which already worked like
described above.

Follow-up to 26c7feb curl#11774

Closes #xxxxx
vszakats added a commit that referenced this pull request Sep 30, 2023
Before this patch CMake builds accepted any value and it was used at
runtime as-is. This patch make sure that the selected default backend
is also enabled in the build. It also enforces a full lowercase value.

This improves reproducibility and brings CMake in sync with autotools
which already worked like described above.

Follow-up to 26c7feb #11774

Closes #11998
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 2, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 2, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 3, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 5, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to vszakats/curl-for-win that referenced this pull request Oct 7, 2023
The 8.3.0-specific logic depends on this:
curl/curl@26c7feb
https://github dot com/curl/curl/pull/11774
vszakats added a commit to curl/curl-for-win that referenced this pull request Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant