From 1c3ce36b879c92b14ce5545009e1d7c08f7ac9ad Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 22 Jul 2004 21:19:00 +0000 Subject: [PATCH] Document new function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164036 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/stream-socket-enable-crypto.xml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 reference/stream/functions/stream-socket-enable-crypto.xml diff --git a/reference/stream/functions/stream-socket-enable-crypto.xml b/reference/stream/functions/stream-socket-enable-crypto.xml new file mode 100644 index 0000000000..8b33d463e7 --- /dev/null +++ b/reference/stream/functions/stream-socket-enable-crypto.xml @@ -0,0 +1,106 @@ + + + + + stream_socket_enable_crypto + + Turns encryption on/off on an already connected socket. + + + + Description + + resourcestream_socket_enable_crypto + resourcestream + boolenable + intcrypto_type + resourcesession_stream + + + + When called with the crypto_type parameter, + stream_socket_enable_crypto will setup + encryption on the stream using the specified method. + + + + Valid values for crypto_type + + STREAM_CRYPTO_METHOD_SSLv2_CLIENT + STREAM_CRYPTO_METHOD_SSLv3_CLIENT + STREAM_CRYPTO_METHOD_SSLv23_CLIENT + STREAM_CRYPTO_METHOD_TLS_CLIENT + STREAM_CRYPTO_METHOD_SSLv2_SERVER + STREAM_CRYPTO_METHOD_SSLv3_SERVER + STREAM_CRYPTO_METHOD_SSLv23_SERVER + STREAM_CRYPTO_METHOD_TLS_SERVER + + + + + Once the crypto settings are established, cryptography can be turned + on and off dynamically by passing &true; or &false; in the + enable parameter. + + + + If this stream should be seeded with settings from an already established + crypto enabled stream, pass that stream's resource variable + in the fourth parameter. + + + + &return.success; + + + + <function>stream_socket_enable_crypto</function> Example + + +]]> + + + + + , and + + + + + +