summaryrefslogtreecommitdiff
path: root/main/php_network.h
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2002-09-08 22:26:11 +0000
committerStefan Esser <sesser@php.net>2002-09-08 22:26:11 +0000
commitcbf5e3ca0625fbd3a719d90f81ead2ed62ba52d2 (patch)
tree705dd6c2ff92253b9b2f35d57e5d8136fe5fea3e /main/php_network.h
parentbba274b9e18e9855115bc742de5eef071e929993 (diff)
downloadphp-git-cbf5e3ca0625fbd3a719d90f81ead2ed62ba52d2.tar.gz
Added possibility to reuse an old SSL session id.
Ugly but needed for f.e.: debians ftpd-ssl
Diffstat (limited to 'main/php_network.h')
-rw-r--r--main/php_network.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/php_network.h b/main/php_network.h
index 6602ddd6b4..139f19ce8f 100644
--- a/main/php_network.h
+++ b/main/php_network.h
@@ -148,7 +148,8 @@ PHPAPI void php_stream_sock_set_timeout(php_stream *stream, struct timeval *time
PHPAPI size_t php_stream_sock_set_chunk_size(php_stream *stream, size_t size TSRMLS_DC);
#if HAVE_OPENSSL_EXT
-PHPAPI int php_stream_sock_ssl_activate_with_method(php_stream *stream, int activate, SSL_METHOD *method TSRMLS_DC);
+PHPAPI int php_stream_sock_ssl_activate_with_method_ex(php_stream *stream, int activate, SSL_METHOD *method, php_stream *control TSRMLS_DC);
+#define php_stream_sock_ssl_activate_with_method(stream, activate, method) php_stream_sock_ssl_activate_with_method_ex((stream), (activate), SSLv23_client_method(), NULL TSRMLS_CC)
#define php_stream_sock_ssl_activate(stream, activate) php_stream_sock_ssl_activate_with_method((stream), (activate), SSLv23_client_method() TSRMLS_CC)
#endif