Skip to content

cmake: sync OpenSSL(-fork) feature checks with ./configure#16352

Closed
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:cm-ossl-check-funcs
Closed

cmake: sync OpenSSL(-fork) feature checks with ./configure#16352
vszakats wants to merge 2 commits intocurl:masterfrom
vszakats:cm-ossl-check-funcs

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Feb 16, 2025

./configure uses AC_CHECK_FUNC for these checks, with one exception
(SSL_CTX_set_srp_username). It's slightly less precise but simpler as
it doesn't need headers and/or macros. Do the same in CMake.

It also allows merging ECH detections across OpenSSL forks in CMake too.

`./configure` uses `AC_CHECK_FUNC` for these checks, with one
exception (`SSL_CTX_set_srp_username`). This is slightly less precise
but has the advantage of not having to deal with passing headers and
occasional macros.

Match CMake detections with that.
@vszakats vszakats force-pushed the cm-ossl-check-funcs branch from 19bc627 to 305dab7 Compare February 16, 2025 21:09
@testclutch

This comment was marked as outdated.

@vszakats vszakats closed this in 24ffcba Feb 17, 2025
@vszakats vszakats deleted the cm-ossl-check-funcs branch February 17, 2025 16:04
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
`./configure` uses `AC_CHECK_FUNC` for these checks, with one exception
(`SSL_CTX_set_srp_username`). It's slightly less precise but simpler as
it doesn't need headers and/or macros. Do the same in CMake.

It also allows merging ECH detections across OpenSSL forks in CMake too.

Closes curl#16352
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.

2 participants