mirror of
https://github.com/openbsd/ports.git
synced 2026-06-19 16:05:12 +02:00
cb29ea30d4
patch to fix broken test (getpw* struct pw reuse issue)
27 lines
850 B
Plaintext
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("
|