Files
ports/security/libssh/patches/patch-ConfigureChecks_cmake
sthen cb29ea30d4 update to libssh-0.12.0
patch to fix broken test (getpw* struct pw reuse issue)
2026-02-25 11:46:15 +00:00

27 lines
850 B
Plaintext

We have EVP_chacha20 but not EVP_PKEY_POLY1305 so the code using it
fails.
Fix exit code.
Index: ConfigureChecks.cmake
--- ConfigureChecks.cmake.orig
+++ ConfigureChecks.cmake
@@ -102,7 +102,7 @@ if (OPENSSL_FOUND)
check_function_exists(EVP_KDF_CTX_new HAVE_OPENSSL_EVP_KDF_CTX_NEW)
check_function_exists(FIPS_mode HAVE_OPENSSL_FIPS_MODE)
check_function_exists(RAND_priv_bytes HAVE_OPENSSL_RAND_PRIV_BYTES)
- check_function_exists(EVP_chacha20 HAVE_OPENSSL_EVP_CHACHA20)
+ #check_function_exists(EVP_chacha20 HAVE_OPENSSL_EVP_CHACHA20)
# Check for ML-KEM availability (OpenSSL 3.5+)
if (OPENSSL_VERSION VERSION_GREATER_EQUAL "3.5.0")
@@ -280,7 +280,7 @@ check_c_source_compiles("
__thread int tls;
int main(void) {
- return 0;
+ return tls;
}" HAVE_GCC_THREAD_LOCAL_STORAGE)
check_c_source_compiles("