diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-07-12 12:31:30 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-07-12 12:31:30 +0000 |
commit | 29cf84c6925734b1a1e2b00bf688de76d1d18113 (patch) | |
tree | 4ac6482d67a50402492ed1c30747354c0fd4c323 /crypto/evp/bio_md.c | |
parent | e45492955809127e7305329f14f2071e273320bf (diff) |
New docs for EVP_Digest{Sign,Verify}*() function. Update existing docs.
Diffstat (limited to 'crypto/evp/bio_md.c')
-rw-r--r-- | crypto/evp/bio_md.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c index 76ff9fe815..a6d35d8bda 100644 --- a/crypto/evp/bio_md.c +++ b/crypto/evp/bio_md.c @@ -192,13 +192,9 @@ static long md_ctrl(BIO *b, int cmd, long num, void *ptr) ret=0; break; case BIO_C_GET_MD_CTX: - if (b->init) - { - pctx=ptr; - *pctx=ctx; - } - else - ret=0; + pctx=ptr; + *pctx=ctx; + b->init = 1; break; case BIO_C_DO_STATE_MACHINE: BIO_clear_retry_flags(b); |