From fd61f69077f6156ca71dde60ecfd9ed9765a02db Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 27 Feb 2003 17:43:38 +0000 Subject: Another big commit (tm). Main Changes: - Implement a socket transport layer for use by all code that needs to open some kind of "special" socket for network or IPC. - Extensions can register (and override) transports. - Implement ftruncate() on streams via the ioctl-alike option interface. - Implement mmap() on streams via the ioctl-alike option interface. - Implement generic crypto API via the ioctl-alike option interface. (currently only supports OpenSSL, but could support other SSL toolkits, and other crypto transport protocols). Impact: - tcp sockets can be overloaded by the openssl capable sockets at runtime, removing the link-time requirement for ssl:// and https:// sockets and streams. - checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since there are now a range of possible socket-type streams. Working towards: - socket servers using the new transport layer - mmap support under win32 - Cleaner code. # I will be updating the win32 build to add the new files shortly # after this commit. --- ext/openssl/php_openssl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/openssl/php_openssl.h') diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h index 89da3167e1..2c7dde6bb6 100644 --- a/ext/openssl/php_openssl.h +++ b/ext/openssl/php_openssl.h @@ -26,6 +26,8 @@ extern zend_module_entry openssl_module_entry; #define phpext_openssl_ptr &openssl_module_entry +php_stream_transport_factory_func php_openssl_ssl_socket_factory; + PHP_MINIT_FUNCTION(openssl); PHP_MSHUTDOWN_FUNCTION(openssl); PHP_MINFO_FUNCTION(openssl); -- cgit v1.2.1