Sets the password for a SSL_CTX
. This should only be called when using the :openssl
implementation.
comm
set-ssl-ctx-password-callback ssl-ctx &key callback password
ssl-ctx⇩ |
A foreign pointer. |
callback⇩ |
A function designator, or nil . |
password⇩ |
A string, or nil . |
The function set-ssl-ctx-password-callback
sets the password for a SSL_CTX
, either to a callback or a password.
ssl-ctx should be a foreign pointer of type ssl-ctx-pointer.
If callback is non-nil, it must be a function with signature:
callback maximum-length rwflag => result
where maximum-length is an integer, rwflag is a boolean and result is a string. The default value of callback is nil
.
If password is non-nil and callback is nil
, a callback is installed that simply returns password. The default value of password is nil
.
If both callback and password are nil
, set-ssl-ctx-password-callback
signals an error.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26