Init OpenSSL libctx and use it for pkey (#18282)

This commit is contained in:
Jakub Zelenka 2025-05-06 19:14:55 +01:00 committed by GitHub
parent 905bba637a
commit cb4bafa4c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 111 additions and 25 deletions

View file

@ -73,6 +73,10 @@ struct php_openssl_errors {
ZEND_BEGIN_MODULE_GLOBALS(openssl)
struct php_openssl_errors *errors;
struct php_openssl_errors *errors_mark;
#if PHP_OPENSSL_API_VERSION >= 0x30000
OSSL_LIB_CTX *libctx;
char *propq;
#endif
ZEND_END_MODULE_GLOBALS(openssl)
#define OPENSSL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(openssl, v)