Fix DSA parameter generation control error
authorRichard Levitte <levitte@openssl.org>
Wed, 18 Jan 2017 15:19:26 +0000 (16:19 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 20 Jan 2017 07:30:35 +0000 (08:30 +0100)
commitaaec49fae2c4605ec578ad77b14913852fe4acca
tree1a7acf0222eca87d8705ce13b40dd04371275edb
parent349364138b26ae3196c7a9497d2b27cc0aa0bc31
Fix DSA parameter generation control error

When setting the digest parameter for DSA parameter generation, the
signature MD was set instead of the parameter generation one.
Fortunately, that's also the one that was used for parameter
generation, but it ultimately meant the parameter generator MD and the
signature MD would always be the same.

Fixes github issue #2016

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2250)
(cherry picked from commit 8a05c4d3b5a1bfb9193ea24e71735e11de7168d2)
crypto/dsa/dsa_pmeth.c