From: Dr. Stephen Henson Date: Thu, 23 Jan 2014 18:36:33 +0000 (+0000) Subject: Use default digest implementation in dgst.c X-Git-Tag: OpenSSL_1_0_0m~90 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=16d616756f40f1b52d0d68acde148e836ae946a3;p=oweals%2Fopenssl.git 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) --- 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");