Another small bug fix. Notified by cipo <cseplo_l@netlock.net>
authorRichard Levitte <levitte@openssl.org>
Tue, 20 Apr 2004 10:27:03 +0000 (10:27 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 20 Apr 2004 10:27:03 +0000 (10:27 +0000)
apps/dgst.c

index e50f663977592b5101af48deef9fe1a2f49e53f1..8b4ec7f2e2a80885745062277df1cc9cda38c342 100644 (file)
@@ -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;
        }