{ $values
{ "buffer" buffer }
{ "ssl" SSL }
- { "event/f" "f or a symbol indicating the desired operation" } }
+ { "event/f" { $maybe "a symbol indicating the desired operation" } } }
{ $description "Reads from the ssl connection to the buffer." } ;
HELP: do-ssl-write
{ $values
{ "buffer" buffer }
{ "ssl" SSL }
- { "event/f" "f or a symbol indicating the desired operation" } }
+ { "event/f" { $maybe "a symbol indicating the desired operation" } } }
{ $description "Writes from the buffer to the ssl connection." } ;
HELP: check-ssl-error
{ $values
{ "ssl" SSL }
{ "ret" "error code returned by an SSL function" }
- { "exra-cases/f" "f or an assoc of error codes and quotations" }
- { "event/f" "f or a symbol indicating the desired operation" }
+ { "extra-cases/f" { $maybe "an assoc of error codes and quotations" } }
+ { "event/f" { $maybe "a symbol indicating the desired operation" } }
}
{ $description "Checks if the last SSL function returned successfully or not. If so, returns " { $link f } " or a symbol, " { $link +input+ } " or " { $link +output+ } ", that indicates the socket operation required by libssl." } ;
} case
] [ nip (ssl-error) ] if-zero ;
-: check-ssl-error ( ssl ret exra-cases/f -- event/f )
+: check-ssl-error ( ssl ret extra-cases/f -- event/f )
[ tuck SSL_get_error ] dip
{
{ SSL_ERROR_NONE [ drop f ] }