diff options
| author | djm <> | 2011-11-03 02:32:23 +0000 |
|---|---|---|
| committer | djm <> | 2011-11-03 02:32:23 +0000 |
| commit | 74b0536b0c8bdb29b77719d6789fdbe06f1fecc5 (patch) | |
| tree | d7ee8f9bcd8062ffa41dd1e250e04de24159ee80 /src/lib/libcrypto/hmac/hm_pmeth.c | |
| parent | eec14d8d3f7d92f0ebb0c75eee2dd01d652949d0 (diff) | |
| parent | 113f799ec7d1728f0a5d7ab5b0e3b42e3de56407 (diff) | |
| download | openbsd-74b0536b0c8bdb29b77719d6789fdbe06f1fecc5.tar.gz openbsd-74b0536b0c8bdb29b77719d6789fdbe06f1fecc5.tar.bz2 openbsd-74b0536b0c8bdb29b77719d6789fdbe06f1fecc5.zip | |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/hmac/hm_pmeth.c')
| -rw-r--r-- | src/lib/libcrypto/hmac/hm_pmeth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/libcrypto/hmac/hm_pmeth.c b/src/lib/libcrypto/hmac/hm_pmeth.c index 985921ca1a..71e8567a14 100644 --- a/src/lib/libcrypto/hmac/hm_pmeth.c +++ b/src/lib/libcrypto/hmac/hm_pmeth.c | |||
| @@ -147,6 +147,8 @@ static int int_update(EVP_MD_CTX *ctx,const void *data,size_t count) | |||
| 147 | 147 | ||
| 148 | static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) | 148 | static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) |
| 149 | { | 149 | { |
| 150 | HMAC_PKEY_CTX *hctx = ctx->data; | ||
| 151 | HMAC_CTX_set_flags(&hctx->ctx, mctx->flags & ~EVP_MD_CTX_FLAG_NO_INIT); | ||
| 150 | EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); | 152 | EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); |
| 151 | mctx->update = int_update; | 153 | mctx->update = int_update; |
| 152 | return 1; | 154 | return 1; |
