Skip to content

Instantly share code, notes, and snippets.

@adsr
Created April 11, 2024 18:44
Show Gist options
  • Save adsr/cf8d7094ae5e097ece6b370fc8cb72b7 to your computer and use it in GitHub Desktop.
Save adsr/cf8d7094ae5e097ece6b370fc8cb72b7 to your computer and use it in GitHub Desktop.
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 1506e6fef4..91c885f58c 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1277,6 +1277,7 @@ PHP_MINIT_FUNCTION(openssl)
OpenSSL_add_all_algorithms();
SSL_load_error_strings();
#else
+ OSSL_PROVIDER_load(NULL, "legacy");
OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment