apps/dsaparam.c generates code that is intended to be pasted or included
authorBeat Bolli <dev@drbeat.li>
Sun, 29 Jul 2018 21:34:32 +0000 (07:34 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 29 Jul 2018 21:34:32 +0000 (07:34 +1000)
commit201b305a2409d9eb13b5e4bfbd4967e04e155a60
tree67526bf1fe642f77025d5db3ebbd47bb7e6a039e
parentcb809437d391176a1c2e76f6da77a790c9382c4b
apps/dsaparam.c generates code that is intended to be pasted or included
into an existing source file: the function is static, and the code
doesn't include dsa.h.  Match the generated C source style of dsaparam.

Adjust apps/dhparam.c to match, and rename the BIGNUMs to their more
usual single-letter names.  Add an error return in the generated C source.

both: simplify the callback function

Signed-off-by: Beat Bolli <dev@drbeat.li>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/6797)
apps/dhparam.c
apps/dsaparam.c