with-secure-context ( config quot -- ) (original) (raw)
with-secure-context ( config quot -- )
Secure sockets (SSL, TLS) » Secure socket contexts
Inputs
config | a secure-config |
---|---|
quot | a quotation |
Outputs
None
Word description
Calls the quotation in a new dynamic scope where a secure-context constructed from the specified configuration is available.
Definition
USING: destructors kernel namespaces ;
: with-secure-context ( config quot -- )
[ ] dip [ [ secure-context ] ] dip
[ with-variable ] curry compose with-disposal ; inline