All Manuals > LispWorks® User Guide and Reference Manual > 32 The COMM Package

set-ssl-ctx-password-callback Function

Summary

Sets the password for a SSL_CTX. This should only be called when using the :openssl implementation.

Package

comm

Signature

set-ssl-ctx-password-callback ssl-ctx &key callback password

Arguments
ssl-ctx
A foreign pointer.
callback
A function designator, or nil.
password
A string, or nil.
Description

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.

See also

ssl-ctx-pointer
25 TCP and UDP socket communication and SSL


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:26