diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-01-26 14:33:52 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-01-26 14:33:52 +0000 |
commit | 704d33b347684aa15bcedc043116718b1386d5f4 (patch) | |
tree | 7663fef3f6eb32e7edee46743bad3f7bbe2d3ae7 /crypto/hmac | |
parent | b2a7515ee825b97848882e6c840b24850fd18d2c (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.c | 6 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 1 |
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 bf51476421..1be0022190 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); int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); +void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); #ifdef __cplusplus } |