Handbook
Glossary
do-ssl-read ( buffer ssl-handle -- event/f )
Vocabulary
io
.
sockets
.
secure
.
openssl
Inputs
buffer
a
buffer
ssl-handle
a
ssl-handle
Outputs
event/f
a symbol indicating the desired operation or
f
Word description
Reads from the ssl connection to the buffer.
Definition
USING:
accessors
io.buffers
kernel
math
openssl.libcrypto
openssl.libssl
;
IN:
io.sockets.secure.openssl
:
do-ssl-read
( buffer ssl-handle -- event/f )
2dup
handle>>
swap
[
buffer-end
]
[
buffer-capacity
]
bi
ERR_clear_error
SSL_read
dup
0
>
[
nip
swap
buffer+
f
]
[
check-ssl-error
nip
]
if
;