note 126761 added to function.stream-socket-enable-crypto

From: Date: Thu, 13 Jan 2022 17:20:46 +0000
Subject: note 126761 added to function.stream-socket-enable-crypto
Groups: php.notes 
Request: Send a blank email to php-notes+get-217488@lists.php.net to get a copy of this message
If you need to change a stream from unencrypted to crypted after unencrypted traffic has been processed, you use the stream-socket-recvfrom function to read instead of fread when reading the unencrypted traffic. Using fread will cause some of the buffer of the initial CLIENT HELLO message to be read into it's buffers causing the SSL handshake to fail in some situations. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 89.27.14.214) ---- Manual Page -- https://php.net/manual/en/function.stream-socket-enable-crypto.php Edit -- https://main.php.net/note/edit/126761 Del: integrated -- https://main.php.net/note/delete/126761/integrated Del: useless -- https://main.php.net/note/delete/126761/useless Del: bad code -- https://main.php.net/note/delete/126761/bad+code Del: spam -- https://main.php.net/note/delete/126761/spam Del: non-english -- https://main.php.net/note/delete/126761/non-english Del: in docs -- https://main.php.net/note/delete/126761/in+docs Del: other reasons-- https://main.php.net/note/delete/126761 Reject -- https://main.php.net/note/reject/126761 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217488) next »