Changes for dgst cmd not working 2nd time (#32)

Co-authored-by: neelimap <neelimaps@neominds.in>
Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/32
Co-authored-by: Neelima P S <neelima.ps@neominds.in>
Co-committed-by: Neelima P S <neelima.ps@neominds.in>
This commit is contained in:
2026-07-30 19:41:32 +05:30
committed by neelimap
co-authored by neelimap
parent 0df2ce7dc9
commit 495cf8fff2
@@ -117,6 +117,8 @@ int dgst_main(int argc, char **argv)
EVP_MD_CTX *signctx = NULL; EVP_MD_CTX *signctx = NULL;
int oneshot_sign = 0; int oneshot_sign = 0;
reset_unknown();
buf = app_malloc(BUFSIZE, "I/O buffer"); buf = app_malloc(BUFSIZE, "I/O buffer");
md = (EVP_MD *)EVP_get_digestbyname(argv[0]); md = (EVP_MD *)EVP_get_digestbyname(argv[0]);
if (md != NULL) if (md != NULL)