diff options
-rw-r--r-- | apps/dgst.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index 75990a2fb1..0ea8c9fc9f 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -446,7 +446,10 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, } } else if(hmac_key) + { HMAC_Final(&hmac_ctx,buf,&len); + HMAC_CTX_cleanup(&hmac_ctx); + } else len=BIO_gets(bp,(char *)buf,BUFSIZE); |