A pathname designator.
A string, or
nil
.
A function designator, or
nil
.
A generalized boolean.
A generalized boolean.
The function
read-dhparams
reads or uses cached DH parameters.
filename specifies the file to check.
Unless
force
is true,
read-dhparams
checks if 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
.