Handbook
Glossary
accept-secure-handshake ( -- )
Secure sockets (SSL, TLS)
ยป
Upgrading existing connections
Prev:
send-secure-handshake ( -- )
Vocabulary
io
.
sockets
.
secure
Generic word contract
Upgrades the socket connection stored in the
input-stream
and
output-stream
variables to a secure connection and waits for an SSL/TLS handshake.
Errors
Throws
upgrade-on-non-socket
or
upgrade-buffers-full
if used improperly.
Definition
IN:
io.sockets.secure
HOOK:
accept-secure-handshake
secure-socket-backend
( -- )
Methods
USING:
io.sockets.secure
io.sockets.secure.openssl
openssl
;
M:
openssl
accept-secure-handshake
input/output-ports
make-input/output-secure
;