Commit:    e45eacd8fa4e32692697171e90f14d3c66d673de
Author:    Tjerk Meesters <datib...@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");


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to