Handbook Glossary
factorcode.org
load-verify-locations ( ctx -- )


Vocabulary
io.sockets.secure.openssl

Inputs
ctxan object


Outputs
None

Definition
USING: accessors kernel openssl openssl.libssl ;

IN: io.sockets.secure.openssl

: load-verify-locations ( ctx -- )
dup config>> [ ca-file>> ] [ ca-path>> ] bi or [
[ handle>> ] [
config>>
[ ca-file>> dup [ ssl-file-path ] when ]
[ ca-path>> dup [ ssl-file-path ] when ] bi
] bi SSL_CTX_load_verify_locations
] [ handle>> SSL_CTX_set_default_verify_paths ] if ssl-error
;