Add dhparam sanity check and update DH_check documentation
authorMatt Caswell <matt@openssl.org>
Fri, 27 May 2016 12:26:03 +0000 (13:26 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 12:19:02 +0000 (13:19 +0100)
commiteeb21772effdd385e44eed547d717f171487987e
tree940efbf972cabbe7e1853a578fd3e23df20cade9
parentb2b361f6afb55c501bedef664c1fdc0d71a91d4b
Add dhparam sanity check and update DH_check documentation

The -check argument to dhparam should never identify any problems if we
have just generated the parameters. Add a sanity check for this and print
an error and fail if necessary.

Also updates the documentation for the -check argument, and the DH_check()
function.

RT#4244

Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/dhparam.c
doc/apps/dhparam.pod
doc/crypto/DH_generate_parameters.pod