php-src/ext/openssl
Florian Moser 4d4b9604ca
Fix GH-11054: Reset OpenSSL errors when using a PEM public key
The error happens when the PEM contains a public key, as it will be
first tried to be parsed as a certificate. The parsing as a certificate
fails, which then leads to a corresponding error tracked by PHP with
the next call to php_openssl_store_errors().

This change introduces an error marking to be able to reset the stored
errors to the state before trying the certificate.

Closes GH-11055
2023-05-06 11:56:31 +01:00
..
tests Fix GH-11054: Reset OpenSSL errors when using a PEM public key 2023-05-06 11:56:31 +01:00
config0.m4 Fix #75725: ./configure: detecting RAND_egd 2021-11-22 14:11:07 +01:00
config.w32 Remove HAVE_DSA_DEFAULT_METHOD 2019-07-22 16:02:55 +02:00
CREDITS Add support for Cryptographic Message Syntax (CMS) 2020-06-07 16:58:34 +01:00
openssl_arginfo.h Add PKCS7_NOOLDMIMETYPE and OPENSSL_CMS_OLDMIMETYPE 2023-05-06 11:12:31 +01:00
openssl.c Fix GH-11054: Reset OpenSSL errors when using a PEM public key 2023-05-06 11:56:31 +01:00
openssl.stub.php Add PKCS7_NOOLDMIMETYPE and OPENSSL_CMS_OLDMIMETYPE 2023-05-06 11:12:31 +01:00
php_openssl.h Fix GH-11054: Reset OpenSSL errors when using a PEM public key 2023-05-06 11:56:31 +01:00
xp_ssl.c [skip ci] Fix various typos and grammar issues (#11143) 2023-04-28 11:05:32 +02:00