summaryrefslogtreecommitdiffstats
path: root/crypto/hmac
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-26 14:29:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-26 14:29:06 +0000
commite92f9f45e87fb1ceae7cefa5d3d7fbb40dadf1f1 (patch)
tree0cd91016733248f5fb0368cd2ba0f7366a5ed9b1 /crypto/hmac
parent8c02119e391a6b723da94ade51a7bf085130fc55 (diff)
Add flags functions which were added to 0.9.8 for fips but not 1.0.0 and
later.
Diffstat (limited to 'crypto/hmac')
-rw-r--r--crypto/hmac/hmac.c6
-rw-r--r--crypto/hmac/hmac.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index 8c2e36ee7c..45015fe754 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -209,3 +209,9 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
return NULL;
}
+void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags)
+ {
+ EVP_MD_CTX_set_flags(&ctx->i_ctx, flags);
+ EVP_MD_CTX_set_flags(&ctx->o_ctx, flags);
+ EVP_MD_CTX_set_flags(&ctx->md_ctx, flags);
+ }
diff --git a/crypto/hmac/hmac.h b/crypto/hmac/hmac.h
index bbb340f209..eedf0a574d 100644
--- a/crypto/hmac/hmac.h
+++ b/crypto/hmac/hmac.h
@@ -101,6 +101,7 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
unsigned int *md_len);
__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
+void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
#ifdef __cplusplus
}