stream_socket_e­nable_crypto

Dostupnost ve verzích: PHP 5.1.0

Turns encryption on/off on an already connected socket

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$stream resource   The stream resource.
$enable bool   Enable/disable cryptography on the stream.
$crypto_type int null, Setup encryption on the stream. Valid methods are STREAM_CRYPTO_MET­HOD_SSLv2_CLI­ENT @param resource $session_stream [optional]

Seed the stream with settings from session_stream.

$session_stream resource null Seed the stream with settings from session_stream.

Návratové hodnoty

mixed

true on success, false if negotiation has failed or 0 if there isn't enough data and you should try again (only for non-blocking sockets).

Další zdroje

http://php.net/…e-crypto.php

Sponzorované odkazy
Pomohl Vám tento článek?