diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-02-08 19:07:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-02-08 19:07:43 +0000 |
commit | 52cfa39716ede61d4eff048ce259d10816d4008b (patch) | |
tree | b176bac7fd20fe5d6f6528e7a7010b3c00f4ba12 /crypto/evp/bio_md.c | |
parent | b3bad17d1a5bc7f15c15d61bb7115f8a16b1a5e2 (diff) |
Add -hmac option to dgst from 0.9.7 stable branch.
Diffstat (limited to 'crypto/evp/bio_md.c')
-rw-r--r-- | crypto/evp/bio_md.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c index a6d35d8bda..f4c0a72981 100644 --- a/crypto/evp/bio_md.c +++ b/crypto/evp/bio_md.c @@ -196,6 +196,12 @@ static long md_ctrl(BIO *b, int cmd, long num, void *ptr) *pctx=ctx; b->init = 1; break; + case BIO_C_SET_MD_CTX: + if (b->init) + b->ptr=ptr; + else + ret=0; + break; case BIO_C_DO_STATE_MACHINE: BIO_clear_retry_flags(b); ret=BIO_ctrl(b->next_bio,cmd,num,ptr); |