summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-07-12 12:31:30 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-07-12 12:31:30 +0000
commit29cf84c6925734b1a1e2b00bf688de76d1d18113 (patch)
tree4ac6482d67a50402492ed1c30747354c0fd4c323 /crypto/evp
parente45492955809127e7305329f14f2071e273320bf (diff)
New docs for EVP_Digest{Sign,Verify}*() function. Update existing docs.
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/bio_md.c10
-rw-r--r--crypto/evp/evp.h7
2 files changed, 5 insertions, 12 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);
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h
index be16b5ecee..dea6a40431 100644
--- a/crypto/evp/evp.h
+++ b/crypto/evp/evp.h
@@ -453,11 +453,8 @@ typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
#define EVP_VerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
#define EVP_OpenUpdate(a,b,c,d,e) EVP_DecryptUpdate(a,b,c,d,e)
#define EVP_SealUpdate(a,b,c,d,e) EVP_EncryptUpdate(a,b,c,d,e)
-#define EVP_SignDigestUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
-#define EVP_VerifyDigestUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
-
-#define EVP_DigestSignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
-#define EVP_DigestVerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
+#define EVP_DigestSignUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
+#define EVP_DigestVerifyUpdate(a,b,c) EVP_DigestUpdate(a,b,c)
#ifdef CONST_STRICT
void BIO_set_md(BIO *,const EVP_MD *md);