diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-07-14 21:19:12 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-22 18:00:34 +0200 |
commit | 0d4ec3d8bbf39e4802781e1b3c881d76e068217f (patch) | |
tree | 2f2e10ad9cd2032d035c5412e43cbe2c896bfa44 /crypto_polarssl.c | |
parent | 1271be60c88e6d7e0208fdb893f1e553c2b5f0cf (diff) | |
download | openvpn-0d4ec3d8bbf39e4802781e1b3c881d76e068217f.tar.gz openvpn-0d4ec3d8bbf39e4802781e1b3c881d76e068217f.tar.xz openvpn-0d4ec3d8bbf39e4802781e1b3c881d76e068217f.zip |
Moved print messages back to generic crypto.c from cipher backends
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_polarssl.c')
-rw-r--r-- | crypto_polarssl.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/crypto_polarssl.c b/crypto_polarssl.c index 9c36478..368e8f8 100644 --- a/crypto_polarssl.c +++ b/crypto_polarssl.c @@ -329,10 +329,8 @@ cipher_kt_mode (const cipher_info_t *cipher_kt) void cipher_ctx_init (cipher_context_t *ctx, uint8_t *key, int key_len, - const cipher_info_t *kt, int enc, const char *prefix) + const cipher_info_t *kt, int enc) { - struct gc_arena gc = gc_new (); - ASSERT(NULL != kt && NULL != ctx); CLEAR (*ctx); @@ -343,22 +341,8 @@ cipher_ctx_init (cipher_context_t *ctx, uint8_t *key, int key_len, if (0 != cipher_setkey(ctx, key, key_len*8, enc)) msg (M_FATAL, "PolarSSL cipher set key"); - msg (D_HANDSHAKE, "%s: Cipher '%s' initialized with %d bit key", - prefix, - cipher_kt_name(kt), - cipher_get_key_size(ctx)); - /* make sure we used a big enough key */ ASSERT (ctx->key_length <= key_len*8); - - dmsg (D_SHOW_KEYS, "%s: CIPHER KEY: %s", prefix, - format_hex (key, key_len, 0, &gc)); - dmsg (D_CRYPTO_DEBUG, "%s: CIPHER block_size=%d iv_size=%d", - prefix, - cipher_get_block_size(ctx), - cipher_get_iv_size(ctx)); - - gc_free (&gc); } void cipher_ctx_cleanup (cipher_context_t *ctx) |