Handbook
Glossary
maybe-handshake ( ssl-handle -- ssl-handle )
Vocabulary
io
.
sockets
.
secure
.
openssl
Inputs
ssl-handle
a
ssl-handle
Outputs
ssl-handle
a
ssl-handle
Word description
Performs SSL handshaking (using
SSL_accept
) if the handle isn't connected. Then sets its state to connected.
Definition
USING:
accessors
io.timeouts
kernel
;
IN:
io.sockets.secure.openssl
:
maybe-handshake
( ssl-handle -- ssl-handle )
dup
[
connected>>
]
[
terminated>>
]
bi
or
[
[
[
do-ssl-accept
]
with-timeout
]
[
t
>>connected
]
bi
]
unless
;