com php-src: Store errors in openssl_x509_fingerprint : ext/openssl/openssl.c

From: Date: Thu, 21 Jan 2016 16:41:27 +0000
Subject: com php-src: Store errors in openssl_x509_fingerprint : ext/openssl/openssl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92464@lists.php.net to get a copy of this message
Commit: 116d64ff58e744c3ffab4ac3fe78c3fc4637383c Author: Jakub Zelenka <bukka@php.net> Thu, 21 Jan 2016 16:41:27 +0000 Parents: 555126e90b4965c4958cfdf2e3c28531e295a6b2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=116d64ff58e744c3ffab4ac3fe78c3fc4637383c Log: Store errors in openssl_x509_fingerprint Changed paths: M ext/openssl/openssl.c Diff: diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index ebd22e8..edadb6a 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1929,6 +1929,7 @@ zend_string* php_openssl_x509_fingerprint(X509 *peer, const char *method, zend_b php_error_docref(NULL, E_WARNING, "Unknown signature algorithm"); return NULL; } else if (!X509_digest(peer, mdtype, md, &n)) { + php_openssl_store_errors(); php_error_docref(NULL, E_ERROR, "Could not generate signature"); return NULL; }

« previous php.cvs (#92464) next »