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: detect TLS-SRP in OpenSSL/wolfSSL/GnuTLS #11967

Closed
wants to merge 5 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Sep 27, 2023

With new option CURL_DISABLE_SRP=ON to force-disable it.
To match existing option and detection logic in autotools.

Also:

  • fix detecting GnuTLS.
    We assume nettle as a GnuTLS dependency.
  • add CMake GnuTLS CI job.
  • bump AppVeyor CMake OpenSSL MSVC job to OpenSSL 1.1.1 (from 1.0.2)
    TLS-SRP fails to detect with 1.0.2 due to an OpenSSL header bug.
  • fix compiler warning when building with GnuTLS and disabled TLS-SRP.
  • fix comment typos, whitespace.

Ref: #11964

Closes #11967

@vszakats vszakats changed the title cmake: detect TLS-SRP support in OpenSSL/wolfSSL/GnuTLS cmake: detect TLS-SRP in OpenSSL/wolfSSL/GnuTLS Sep 27, 2023
@vszakats
Copy link
Member Author

vszakats commented Sep 27, 2023

This should probably be a 'found', if this OpenSSL 1.0.2 has SRP enabled: https://ci.appveyor.com/project/curlorg/curl/builds/48139282/job/7xbgl6gw8u7a17fy#L33. Error: C:\\OpenSSL-Win64\\include\\openssl/dtls1.h(227,20): error C2079: 'next_timeout' uses undefined struct 'timeval' https://ci.appveyor.com/project/curlorg/curl/builds/48141976/job/d4vfl9e7pm2qk02d?fullLog=true#L739

I won't be dealing with this, it's an obsolete OpenSSL version combined with MSVC.

UPDATE: Upgrading to OpenSSL 1.1.1 fixes it.

@github-actions github-actions bot added the CI Continuous Integration label Sep 27, 2023
With new option `CURL_DISABLE_SRP=ON` to force-disable it.
To match existing similar option and detection logic in autotools.

Also:
- fix detecting GnuTLS.
- comment typos, whitespace.

Ref: curl#11964

Closes #xxxxx
This could use a more delicate approach.
vszakats added a commit to curl/curl-for-win that referenced this pull request Sep 28, 2023
CMake did not detect TLS-SRP support and did not enable it
automatically in curl 8.3.0 and earlier. This might change
and we want to keep it disabled in curl-for-win.

Ref: curl/curl#11967
@vszakats vszakats closed this in 781242f Sep 28, 2023
@vszakats vszakats deleted the cmake-tls-srp branch September 28, 2023 10:53
vszakats added a commit to curl/curl-for-win that referenced this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration cmake TLS
Development

Successfully merging this pull request may close these issues.

None yet

1 participant