Makes a SSL_CTX
object. This should only be called when using the :openssl
implementation.
comm
make-ssl-ctx &key ssl-ctx ssl-side => ssl-ctx-ptr
ssl-ctx⇩ |
A symbol or a foreign pointer. |
ssl-side⇩ |
One of the keywords :client , :server or :both . |
ssl-ctx-ptr |
A foreign pointer of type ssl-ctx-pointer. |
The function make-ssl-ctx
first calls ensure-ssl, and returns a foreign pointer of type ssl-ctx-pointer.
If the value of ssl-ctx is t
, :default
, :v2
, :v3
, :v23
or :tls-v1
, make-ssl-ctx
creates a SSL_CTX
object and returns a pointer to it.
The value of ssl-ctx can also be a foreign pointer of type ssl-ctx-pointer, in which case it is simply returned. If ssl-ctx is a foreign pointer of type ssl-pointer, then make-ssl-ctx
signals an error.
The meaning of the keyword arguments ssl-ctx and ssl-side is as described for socket-stream. The default value of ssl-ctx is t
and the default value of ssl-side is :server
.
ensure-ssl
socket-stream
ssl-ctx-pointer
25 TCP and UDP socket communication and SSL
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26