diff options
author | Richard Levitte <levitte@openssl.org> | 2004-04-20 10:27:03 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-04-20 10:27:03 +0000 |
commit | a6b8e925bca78693f4de1cb200424a6fec5cf1e9 (patch) | |
tree | aa0f18508cd806de9a208b9a10e2c5da0e9c9cde | |
parent | d2fca2c59ad28832ccdaff1ea6ebe292e628fe59 (diff) |
Another small bug fix. Notified by cipo <cseplo_l@netlock.net>
-rw-r--r-- | apps/dgst.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dgst.c b/apps/dgst.c index e50f663977..8b4ec7f2e2 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -465,7 +465,10 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, } BIO_printf(out, "\n"); } - BIO_set_md_ctx(bmd,md_ctx); + if (hmac_key) + { + BIO_set_md_ctx(bmd,md_ctx); + } return 0; } |