diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2007-05-22 14:58:39 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2007-05-22 14:58:39 +0200 |
commit | 7b8b7973750f65ecce161af012f004b9c7be45f9 (patch) | |
tree | e99b760a4b1f3f8f50d93455ff790ae1998bb7c5 /crypto/hmac | |
parent | SHA256 for ARMv4. (diff) | |
download | openssl-7b8b7973750f65ecce161af012f004b9c7be45f9.tar.xz openssl-7b8b7973750f65ecce161af012f004b9c7be45f9.zip |
Revert broken change to ccgost.
Initialize context properly for HMAC pkey method.
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/hm_pmeth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/hmac/hm_pmeth.c b/crypto/hmac/hm_pmeth.c index 53a3f00f2f..27a5c8ea57 100644 --- a/crypto/hmac/hm_pmeth.c +++ b/crypto/hmac/hm_pmeth.c @@ -80,11 +80,14 @@ static int pkey_hmac_init(EVP_PKEY_CTX *ctx) return 0; hctx->md = NULL; hctx->ktmp.data = NULL; + hctx->ktmp.length = 0; + hctx->ktmp.flags = 0; + hctx->ktmp.type = V_ASN1_OCTET_STRING; HMAC_CTX_init(&hctx->ctx); ctx->data = hctx; ctx->keygen_info_count = 0; - + return 1; } |