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

read-dhparams Function

Summary

Reads or uses cached SSL DH parameters. This should only be called when using the :openssl implementation.

Package

comm

Signature

read-dhparams filename &key pass-phrase callback errorp force => dh-ptr

Arguments
filename
A pathname designator.
pass-phrase
A string, or nil.
callback
A function designator, or nil.
errorp
A generalized boolean.
force
A generalized boolean.
Values
dh-ptr
A foreign pointer or nil.
Description

The function read-dhparams reads or uses cached DH parameters.

filename specifies the file to check.

Unless force is true, read-dhparams checks whether the file filename has already been loaded, and if it has been loaded, uses the cached value.

If force is true, or if there is no cached value for filename, read-dhparams loads the file by calling pem-read with thing-to-read argument "DHparams", pass-phrase, callback and errorp. read-dhparams caches and returns a foreign pointer to the resulting DH structure (that is, a pointer corresponding to the C type DH*).

If read-dhparams fails to load the file filename, if errorp is true it signals an error, otherwise it returns nil. The default value of errorp is t.

See also

pem-read
25 TCP and UDP socket communication and SSL


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