cmake: detect SSL_set0_wbio in OpenSSL

Present in OpenSSL 1.1.0 and BoringSSL.
Missing from LibreSSL 3.8.0.

Follow-up to f39472ea9f

While here, also fix `RAND_egd()` detection which was broken, likely all
along. This feature is probably broken with CMake builds and also
requires a sufficiently obsolete OpenSSL version, so this part of the
update was not tested.

Closes #11555
This commit is contained in:
Viktor Szakats 2023-07-31 10:52:56 +00:00
parent 4a67b23f33
commit dee310d542
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 58 additions and 42 deletions

View file

@ -397,6 +397,9 @@
/* Define to 1 if you have the <pwd.h> header file. */
#cmakedefine HAVE_PWD_H 1
/* Define to 1 if OpenSSL has the `SSL_set0_wbio` function. */
#cmakedefine HAVE_SSL_SET0_WBIO 1
/* Define to 1 if you have the `RAND_egd' function. */
#cmakedefine HAVE_RAND_EGD 1