Skip to content

Fix GH-9890: OpenSSL legacy providers not available on Windows #9894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions win32/build/mkdist.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,22 @@ function extract_file_from_tarball($pkg, $filename, $dest_dir) /* {{{ */
}
}

$OPENSSL_DLLS = $php_build_dir . "/lib/ossl-modules/*.dll";
$fls = glob($OPENSSL_DLLS);
if (!empty($fls)) {
$openssl_dest_dir = "$dist_dir/extras/ssl";
if (!file_exists($openssl_dest_dir) || !is_dir($openssl_dest_dir)) {
if (!mkdir($openssl_dest_dir, 0777, true)) {
echo "WARNING: couldn't create '$openssl_dest_dir' for OpenSSL providers ";
}
}
foreach ($fls as $fl) {
if (!copy($fl, "$openssl_dest_dir/" . basename($fl))) {
echo "WARNING: couldn't copy $fl into the $openssl_dest_dir";
}
}
}

$SASL_DLLS = $php_build_dir . "/bin/sasl2/sasl*.dll";
$fls = glob($SASL_DLLS);
if (!empty($fls)) {
Expand Down