Perform a SSL handshake on a stream.
comm
socket-stream-handshake stream &optional timeout => success
stream⇩ | |
timeout⇩ | nil or a real. |
success |
A boolean. |
The function socket-stream-handshake
performs a handshake on stream, which must be attached to SSL.
socket-stream-handshake
returns false if the handshake does not finish in timeout seconds or if the SSL connection was cleanly closed by the other side. Other failures cause an error to be signaled.
socket-stream-handshake
returns true on success.
The other socket-stream interface functions signal errors if the handshake fail for any reason, including timeout or clean close.
If SSL was attached with ssl-side :both
, then you will need to specify which side to take in the handshake by calling ssl-set-accept-state
or ssl-set-connect-state
with the ssl-pointer return by socket-stream-ssl.
socket-stream
25.8 Using SSL
25 TCP and UDP socket communication and SSL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26