diff options
author | Jakub Zelenka <bukka@php.net> | 2016-01-07 16:38:24 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2016-01-07 16:38:24 +0000 |
commit | e00ba47d405190187faaf5b78669e873d26045d2 (patch) | |
tree | a7f7bbee88a04d36474dfe86ee3ce4147870c385 /ext/openssl/php_openssl.h | |
parent | da0eeacf1d6c69fb1c79fa08986edce3c166440b (diff) | |
download | php-git-e00ba47d405190187faaf5b78669e873d26045d2.tar.gz |
Add global data for storing OpenSSL errors
Diffstat (limited to 'ext/openssl/php_openssl.h')
-rw-r--r-- | ext/openssl/php_openssl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h index 92e01241f4..a6f163560a 100644 --- a/ext/openssl/php_openssl.h +++ b/ext/openssl/php_openssl.h @@ -46,11 +46,30 @@ extern zend_module_entry openssl_module_entry; "DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:" \ "AES256-GCM-SHA384:AES128:AES256:HIGH:!SSLv2:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!RC4:!ADH" +#include <openssl/err.h> + +struct php_openssl_errors { + int buffer[ERR_NUM_ERRORS]; + int top; + int bottom; +}; + +ZEND_BEGIN_MODULE_GLOBALS(openssl) + struct php_openssl_errors *errors; +ZEND_END_MODULE_GLOBALS(openssl) + +#define OPENSSL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(openssl, v) + +#if defined(ZTS) && defined(COMPILE_DL_OPENSSL) +ZEND_TSRMLS_CACHE_EXTERN(); +#endif + php_stream_transport_factory_func php_openssl_ssl_socket_factory; PHP_MINIT_FUNCTION(openssl); PHP_MSHUTDOWN_FUNCTION(openssl); PHP_MINFO_FUNCTION(openssl); +PHP_GINIT_FUNCTION(openssl); PHP_FUNCTION(openssl_pkey_get_private); PHP_FUNCTION(openssl_pkey_get_public); |