diff --git a/daemon/crypto.c b/daemon/crypto.c index d878c3fe2..85c9bf577 100644 --- a/daemon/crypto.c +++ b/daemon/crypto.c @@ -424,7 +424,7 @@ int crypto_gen_session_key(struct crypto_context *c, str *out, unsigned char lab prf_n(out, c->params.master_key, c->params.crypto_suite->lib_cipher_ptr, x); - ilogs(internals, LOG_DEBUG, "Generated session key: master key " + ilogs(srtp, LOG_DEBUG, "Generated session key: master key " "%02x%02x%02x%02x..., " "master salt " "%02x%02x%02x%02x..., " diff --git a/daemon/main.c b/daemon/main.c index 6101ee3cc..afbd6a0a4 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -389,7 +389,7 @@ static void options(int *argc, char ***argv) { AUTO_CLEANUP_GBUF(dtls_sig); double silence_detect = 0; AUTO_CLEANUP_GVBUF(cn_payload); - int debug_srtp; + int debug_srtp = 0; GOptionEntry e[] = { { "table", 't', 0, G_OPTION_ARG_INT, &rtpe_config.kernel_table, "Kernel table to use", "INT" }, diff --git a/include/crypto.h b/include/crypto.h index d47eef0c1..0c50725e8 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -211,7 +211,7 @@ INLINE void crypto_params_sdes_queue_clear(GQueue *q) { INLINE void crypto_debug_init(int flag) { - if (rtpe_config.common.log_levels[log_level_index_srtp] < LOG_NOTICE) + if (rtpe_config.common.log_levels[log_level_index_srtp] < LOG_DEBUG) return; if (crypto_debug_string) g_string_free(crypto_debug_string, TRUE);