Values

Description

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
.