diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-07-14 21:35:45 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-22 18:02:08 +0200 |
commit | 62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37 (patch) | |
tree | 22fa11910c9c5a6060eb95c73081ed6f7aabb7d5 /crypto_openssl.c | |
parent | 0d4ec3d8bbf39e4802781e1b3c881d76e068217f (diff) | |
download | openvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.tar.gz openvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.tar.xz openvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.zip |
Moved HMAC prints back to main crypto module
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto_openssl.c')
-rw-r--r-- | crypto_openssl.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/crypto_openssl.c b/crypto_openssl.c index b94451a..7250782 100644 --- a/crypto_openssl.c +++ b/crypto_openssl.c @@ -745,10 +745,8 @@ md_ctx_final (EVP_MD_CTX *ctx, uint8_t *dst) void hmac_ctx_init (HMAC_CTX *ctx, const uint8_t *key, int key_len, - const EVP_MD *kt, const char *prefix) + const EVP_MD *kt) { - struct gc_arena gc = gc_new (); - ASSERT(NULL != kt && NULL != ctx); CLEAR(*ctx); @@ -756,24 +754,8 @@ hmac_ctx_init (HMAC_CTX *ctx, const uint8_t *key, int key_len, HMAC_CTX_init (ctx); HMAC_Init_ex (ctx, key, key_len, kt, NULL); - if (prefix) - msg (D_HANDSHAKE, - "%s: Using %d bit message hash '%s' for HMAC authentication", - prefix, HMAC_size (ctx) * 8, OBJ_nid2sn (EVP_MD_type (kt))); - /* make sure we used a big enough key */ ASSERT (HMAC_size (ctx) <= key_len); - - if (prefix) - dmsg (D_SHOW_KEYS, "%s: HMAC KEY: %s", prefix, - format_hex (key, key_len, 0, &gc)); - if (prefix) - dmsg (D_CRYPTO_DEBUG, "%s: HMAC size=%d block_size=%d", - prefix, - EVP_MD_size (kt), - EVP_MD_block_size (kt)); - - gc_free (&gc); } void |