NAME
DHnew, DHfree - allocate and free DH objects
SYNOPSIS
#include
DH* DHnew(void); void DHfree(DH *dh);DESCRIPTION
DHnew() allocates and initializes a DDHH structure. DHfree() frees the DDHH structure and its components. The values are erased before the memory is returned to the system.RETURN VALUES
If the allocation fails, DHnew() returns NNUULLLL and sets an error code that can be obtained by ERRgeterror(3). Otherwise it returns a pointer to the newly allocated structure. DHfree() returns no value.SEE ALSO
dh(3), ERRgeterror(3), DHgenerateparameters(3), DHgeneratekey(3) HISTORY DHnew() and DHfree() are available in all versions of SSLeay and OpenSSL.0.9.7l 2002-09-25 DHnew(3)