We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 320fe29 commit dcc4b0fCopy full SHA for dcc4b0f
NEWS
@@ -51,6 +51,9 @@ PHP NEWS
51
(Arnaud)
52
. Fixed bug GH-19831 (function JIT may not deref property value). (Arnaud)
53
54
+- OpenSSL:
55
+ . Fixed build when --with-openssl-legacy-provider set. (Jakub Zelenka)
56
+
57
- MBstring:
58
. Updated Unicode data tables to Unicode 17.0. (Yuya Hamada)
59
ext/openssl/openssl.c
@@ -53,11 +53,6 @@
#include <openssl/ssl.h>
#include <openssl/pkcs12.h>
#include <openssl/cms.h>
-#if PHP_OPENSSL_API_VERSION >= 0x30000
-#include <openssl/core_names.h>
-#include <openssl/param_build.h>
-#include <openssl/provider.h>
60
-#endif
61
62
ZEND_DECLARE_MODULE_GLOBALS(openssl)
63
ext/openssl/openssl_backend_common.c
@@ -473,23 +473,8 @@ zend_result php_openssl_write_rand_file(const char * file, int egdsocket, int se
473
return SUCCESS;
474
}
475
476
-void php_openssl_backend_init(void)
+void php_openssl_backend_init_common(void)
477
{
478
-#ifdef LIBRESSL_VERSION_NUMBER
479
- OPENSSL_config(NULL);
480
- SSL_library_init();
481
- OpenSSL_add_all_ciphers();
482
- OpenSSL_add_all_digests();
483
- OpenSSL_add_all_algorithms();
484
- SSL_load_error_strings();
485
-#else
486
-#if PHP_OPENSSL_API_VERSION >= 0x30000 && defined(LOAD_OPENSSL_LEGACY_PROVIDER)
487
- OSSL_PROVIDER_load(NULL, "legacy");
488
- OSSL_PROVIDER_load(NULL, "default");
489
490
- OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
491
492
-
493
/* Determine default SSL configuration file */
494
char *config_filename = getenv("OPENSSL_CONF");
495
if (config_filename == NULL) {
ext/openssl/openssl_backend_v1.c
@@ -27,6 +27,22 @@
27
#include <openssl/engine.h>
28
#endif
29
30
+void php_openssl_backend_init(void)
31
+{
32
+#ifdef LIBRESSL_VERSION_NUMBER
33
+ OPENSSL_config(NULL);
34
+ SSL_library_init();
35
+ OpenSSL_add_all_ciphers();
36
+ OpenSSL_add_all_digests();
37
+ OpenSSL_add_all_algorithms();
38
+ SSL_load_error_strings();
39
+#else
40
+ OPENSSL_init_ssl(OPENSSL_INIT_LOAD_CONFIG, NULL);
41
+#endif
42
43
+ php_openssl_backend_init_common();
44
+}
45
46
void php_openssl_backend_shutdown(void)
47
48
#ifdef LIBRESSL_VERSION_NUMBER
ext/openssl/openssl_backend_v3.c
@@ -24,6 +24,18 @@
24
25
ZEND_EXTERN_MODULE_GLOBALS(openssl)
26
+#if PHP_OPENSSL_API_VERSION >= 0x30000 && defined(LOAD_OPENSSL_LEGACY_PROVIDER)
+ OSSL_PROVIDER_load(NULL, "legacy");
+ OSSL_PROVIDER_load(NULL, "default");
(void) 0;
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments