Files
php-src/ext/openssl/tests
Nikita Popov 7566742754 Suppress OpenSSL error on missing optional config
openssl_pkey_new() fetches various options from the config file --
most of these are optional, and not specifying them is not an error
condition from the perspective of the user. Unfortunately, the
CONF_get_string() API pushes an error when accessing a key that
doesn't exist (_CONF_get_string does not, but that is presumably a
private API). This commit adds a helper php_openssl_conf_get_string()
that automatically clears the error in this case. I've found that
OpenSSL occasionally does the same thing internally:
https://github.com/openssl/openssl/blob/22040fb790c854cefb04bed98ed38ea6357daf83/apps/req.c#L515-L517

Closes GH-6699.
2021-02-16 10:11:00 +01:00
..
2019-06-05 14:25:07 +02:00
2018-06-21 16:50:45 +01:00
2016-05-06 09:30:41 +02:00
2018-06-21 16:50:45 +01:00
2018-06-21 16:50:45 +01:00
2018-06-21 16:50:45 +01:00
2019-02-24 13:12:38 +00:00
2019-09-04 08:43:32 +02:00
2020-01-21 16:17:25 +01:00
2020-07-22 10:21:24 +02:00
…
2016-02-03 16:20:27 +00:00
2018-06-21 16:50:45 +01:00
2018-06-21 16:50:45 +01:00