diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-01-23 18:36:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-01-23 18:38:51 +0000 |
commit | 16d616756f40f1b52d0d68acde148e836ae946a3 (patch) | |
tree | 9c4861a9e4f1c369343c3de422f530bbbb5a95e3 /apps | |
parent | 9fe6acbd1da243547aecb2c1b09172e998bd51fa (diff) |
Use default digest implementation in dgst.c
Use default instead of ENGINE version of digest. Without this
errors will occur if you use an ENGINE for a private key and
it doesn't implement the digest in question.
(cherry picked from commit 4eedf86a163284478140c46edb7b462d33898c93)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dgst.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 9bf38ce73b..ec6621b05d 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -415,9 +415,9 @@ int MAIN(int argc, char **argv) goto end; } if (do_verify) - r = EVP_DigestVerifyInit(mctx, &pctx, md, e, sigkey); + r = EVP_DigestVerifyInit(mctx, &pctx, md, NULL, sigkey); else - r = EVP_DigestSignInit(mctx, &pctx, md, e, sigkey); + r = EVP_DigestSignInit(mctx, &pctx, md, NULL, sigkey); if (!r) { BIO_printf(bio_err, "Error setting context\n"); |