com php-src: show method in error message: ext/openssl/openssl.c
| From: | Michael Wallner | Date: | Mon, 30 Sep 2013 13:21:56 +0000 |
| Subject: | com php-src: show method in error message: ext/openssl/openssl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73378@lists.php.net to get a copy of this message | ||
Commit: e45eacd8fa4e32692697171e90f14d3c66d673de
Author: Tjerk Meesters <datibbaw@php.net> Mon, 30 Sep 2013 21:21:56 +0800
Parents: edd93f34520b550c4c42877fe9e03112cad005ba
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e45eacd8fa4e32692697171e90f14d3c66d673de
Log:
show method in error message
Changed paths:
M ext/openssl/openssl.c
Diff:
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index c0d1b0b..c208d43 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -1679,7 +1679,7 @@ static int php_openssl_x509_fingerprint(X509 *peer, const char *method, int
raw,
int n;
if (!(mdtype = EVP_get_digestbyname(method))) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown signature algorithm");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "
%s: Unknown signature
algorithm", method);
return 0;
} else if (!X509_digest(peer, mdtype, md, &n)) {
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not generate signature");