summaryrefslogtreecommitdiffstats
path: root/crypto/evp/bio_md.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-02-08 19:07:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-02-08 19:07:43 +0000
commit52cfa39716ede61d4eff048ce259d10816d4008b (patch)
treeb176bac7fd20fe5d6f6528e7a7010b3c00f4ba12 /crypto/evp/bio_md.c
parentb3bad17d1a5bc7f15c15d61bb7115f8a16b1a5e2 (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.c6
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);