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)
This commit is contained in:
parent
9fe6acbd1d
commit
16d616756f
@ -415,9 +415,9 @@ int MAIN(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
if (do_verify)
|
if (do_verify)
|
||||||
r = EVP_DigestVerifyInit(mctx, &pctx, md, e, sigkey);
|
r = EVP_DigestVerifyInit(mctx, &pctx, md, NULL, sigkey);
|
||||||
else
|
else
|
||||||
r = EVP_DigestSignInit(mctx, &pctx, md, e, sigkey);
|
r = EVP_DigestSignInit(mctx, &pctx, md, NULL, sigkey);
|
||||||
if (!r)
|
if (!r)
|
||||||
{
|
{
|
||||||
BIO_printf(bio_err, "Error setting context\n");
|
BIO_printf(bio_err, "Error setting context\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user