Ensure dhparams can handle X9.42 params in DER
authorMatt Caswell <matt@openssl.org>
Mon, 3 Apr 2017 11:42:58 +0000 (12:42 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 3 Apr 2017 19:08:12 +0000 (20:08 +0100)
commit133b9756e7357128954f28d4fcbb4db8b39d4f9a
treeb0e6bb465eb631eb204f6146f55a593399a79b98
parentd0c50e80a8b773ceec27c7e60fae7ccf4947df78
Ensure dhparams can handle X9.42 params in DER

dhparams correctly handles X9.42 params in PEM format. However it failed
to correctly processes them when reading/writing DER format.

Fixes #3102

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3111)
(cherry picked from commit 18d20b5eb66fda0ada2e65c2b19aeae75827bdf8)
apps/dhparam.c