Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions ext/openssl/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/openssl_backend_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
Loading