Skip to content

Commit e45eacd

Browse files
committed
show method in error message
1 parent edd93f3 commit e45eacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ static int php_openssl_x509_fingerprint(X509 *peer, const char *method, int raw,
16791679
int n;
16801680

16811681
if (!(mdtype = EVP_get_digestbyname(method))) {
1682-
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm");
1682+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "`%s`: Unknown signature algorithm", method);
16831683
return 0;
16841684
} else if (!X509_digest(peer, mdtype, md, &n)) {
16851685
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not generate signature");

0 commit comments

Comments
 (0)