1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix missing OpenSSL libctx name fetch conversions (#19830)

This commit is contained in:
Jakub Zelenka
2025-09-13 22:51:07 +02:00
committed by GitHub
parent 469aa255ae
commit 2e9cdb2c5a
2 changed files with 5 additions and 5 deletions

View File

@@ -2426,9 +2426,9 @@ PHP_FUNCTION(openssl_pbkdf2)
}
if (method_len) {
digest = EVP_get_digestbyname(method);
digest = php_openssl_get_evp_md_by_name(method);
} else {
digest = EVP_sha1();
digest = php_openssl_get_evp_md_by_name("SHA1");
}
if (!digest) {
@@ -4202,7 +4202,7 @@ PHP_FUNCTION(openssl_seal)
RETURN_THROWS();
}
cipher = EVP_get_cipherbyname(method);
cipher = php_openssl_get_evp_cipher_by_name(method);
if (!cipher) {
php_error_docref(NULL, E_WARNING, "Unknown cipher algorithm");
RETURN_FALSE;
@@ -4331,7 +4331,7 @@ PHP_FUNCTION(openssl_open)
RETURN_FALSE;
}
cipher = EVP_get_cipherbyname(method);
cipher = php_openssl_get_evp_cipher_by_name(method);
if (!cipher) {
php_error_docref(NULL, E_WARNING, "Unknown cipher algorithm");
RETURN_FALSE;

View File

@@ -608,7 +608,7 @@ zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, bool r
unsigned int n;
zend_string *ret;
if (!(mdtype = EVP_get_digestbyname(method))) {
if (!(mdtype = php_openssl_get_evp_md_by_name(method))) {
php_error_docref(NULL, E_WARNING, "Unknown digest algorithm");
return NULL;
} else if (!X509_digest(peer, mdtype, md, &n)) {