Skip to content

Commit 6732b88

Browse files
authored
Support --openssl-legacy-providers on Windows, too (GH-15747)
This is not necessarily useful for Windows (few use custom builds on that platform), but for feature parity with other platforms it seems reasonable to support it on Windows. We make sure, though, that the feature is not enabled for snapshot builds by adding the option to the build exclusions.
1 parent 438b781 commit 6732b88

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ext/openssl/config.w32

+5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
22

33
ARG_WITH("openssl", "OpenSSL support", "no,shared");
44

5+
ARG_WITH("openssl-legacy-provider", "OPENSSL: Load legacy algorithm provider in addition to default provider", "no");
6+
57
if (PHP_OPENSSL != "no") {
68
var ret = SETUP_OPENSSL("openssl", PHP_OPENSSL);
79

810
if (ret >= 2) {
911
EXTENSION("openssl", "openssl.c xp_ssl.c");
1012
AC_DEFINE("HAVE_OPENSSL_EXT", 1, "Define to 1 if the PHP extension 'openssl' is available.");
13+
if (PHP_OPENSSL_LEGACY_PROVIDER != "no") {
14+
AC_DEFINE("LOAD_OPENSSL_LEGACY_PROVIDER", 1, "Define to 1 to load the OpenSSL legacy algorithm provider in addition to the default provider.");
15+
}
1116
}
1217
}

win32/build/confutils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ can be built that way. \
456456
var snapshot_build_exclusions = new Array(
457457
'debug', 'lzf-better-compression', 'php-build', 'snapshot-template', 'zts',
458458
'ipv6', 'fd-setsize', 'pgi', 'pgo', 'all-shared', 'config-profile', 'sanitizer',
459-
'phpdbg-debug'
459+
'phpdbg-debug', 'openssl-legacy-provider'
460460
);
461461
var force;
462462

0 commit comments

Comments
 (0)