summaryrefslogtreecommitdiff
path: root/ext/openssl/openssl.c
diff options
context:
space:
mode:
authorDaniel Lowrey <rdlowrey@php.net>2014-02-21 09:15:53 -0700
committerDaniel Lowrey <rdlowrey@php.net>2014-02-21 09:15:53 -0700
commit1268bd6045ea0fce57c5c10a1faca98a70dd692b (patch)
tree4e297802488511a7b3d93dc5f05a78d5fe03cfcc /ext/openssl/openssl.c
parent04a10be9dbb2353362ce922441d910be5926adf2 (diff)
parent5389d0963c28d3a08609eef787d288f8cb015c5a (diff)
downloadphp-git-1268bd6045ea0fce57c5c10a1faca98a70dd692b.tar.gz
Merge branch 'PHP-5.6'
* PHP-5.6: Mitigate client-initiated SSL renegotiation DoS
Diffstat (limited to 'ext/openssl/openssl.c')
-rwxr-xr-xext/openssl/openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 6ad4065c6b..ba4b3a6847 100755
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -585,6 +585,12 @@ inline static int php_openssl_open_base_dir_chk(char *filename TSRMLS_DC)
}
/* }}} */
+inline php_stream* php_openssl_get_stream_from_ssl_handle(const SSL *ssl)
+{
+ return (php_stream*)SSL_get_ex_data(ssl, ssl_stream_data_index);
+}
+/* }}} */
+
/* openssl -> PHP "bridging" */
/* true global; readonly after module startup */
static char default_ssl_conf_filename[MAXPATHLEN];