aboutsummaryrefslogtreecommitdiff
path: root/crypto/dsa
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-01-18 16:19:26 +0100
committerRichard Levitte <levitte@openssl.org>2017-01-20 08:29:46 +0100
commit8a05c4d3b5a1bfb9193ea24e71735e11de7168d2 (patch)
treea01c928e76708c5b55706aa591db11238b3747d3 /crypto/dsa
parent062540cbc511e38e25062fcd63a8c815ad071912 (diff)
downloadopenssl-8a05c4d3b5a1bfb9193ea24e71735e11de7168d2.zip
openssl-8a05c4d3b5a1bfb9193ea24e71735e11de7168d2.tar.gz
openssl-8a05c4d3b5a1bfb9193ea24e71735e11de7168d2.tar.bz2
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)
Diffstat (limited to 'crypto/dsa')
-rw-r--r--crypto/dsa/dsa_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dsa/dsa_pmeth.c b/crypto/dsa/dsa_pmeth.c
index 4180958..95f088a 100644
--- a/crypto/dsa/dsa_pmeth.c
+++ b/crypto/dsa/dsa_pmeth.c
@@ -136,7 +136,7 @@ static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
DSAerr(DSA_F_PKEY_DSA_CTRL, DSA_R_INVALID_DIGEST_TYPE);
return 0;
}
- dctx->md = p2;
+ dctx->pmd = p2;
return 1;
case EVP_PKEY_CTRL_MD: