conftest: Fix build with DEBUG_LEVEL < 1

This commit is contained in:
Tobias Brunner
2023-05-08 17:32:18 +02:00
parent 3804b2adf9
commit 16c2def3ae
4 changed files with 15 additions and 2 deletions
+3 -2
View File
@@ -48,12 +48,13 @@ METHOD(listener_t, message, bool,
if (payload->get_type(payload) == PLV2_NOTIFY)
{
notify_payload_t *notify = (notify_payload_t*)payload;
chunk_t data;
if (notify->get_notify_type(notify) == COOKIE)
{
data = notify->get_notification_data(notify);
#if DEBUG_LEVEL >= 1
chunk_t data = notify->get_notification_data(notify);
DBG1(DBG_CFG, "received COOKIE: %#B", &data);
#endif
has_cookie = TRUE;
break;
}
+4
View File
@@ -35,6 +35,7 @@ METHOD(listener_t, message, bool,
private_log_id_t *this, ike_sa_t *ike_sa, message_t *message,
bool incoming, bool plain)
{
#if DEBUG_LEVEL >= 1
if (incoming && plain)
{
enumerator_t *enumerator;
@@ -62,6 +63,9 @@ METHOD(listener_t, message, bool,
enumerator->destroy(enumerator);
}
return TRUE;
#else
return FALSE;
#endif
}
METHOD(hook_t, destroy, void,
+4
View File
@@ -35,6 +35,7 @@ METHOD(listener_t, message, bool,
private_log_ke_t *this, ike_sa_t *ike_sa, message_t *message,
bool incoming, bool plain)
{
#if DEBUG_LEVEL >= 1
if (incoming && plain)
{
enumerator_t *enumerator;
@@ -54,6 +55,9 @@ METHOD(listener_t, message, bool,
enumerator->destroy(enumerator);
}
return TRUE;
#else
return FALSE;
#endif
}
METHOD(hook_t, destroy, void,
+4
View File
@@ -35,6 +35,7 @@ METHOD(listener_t, message, bool,
private_log_ts_t *this, ike_sa_t *ike_sa, message_t *message,
bool incoming, bool plain)
{
#if DEBUG_LEVEL >= 1
if (incoming && plain)
{
enumerator_t *enumerator;
@@ -77,6 +78,9 @@ METHOD(listener_t, message, bool,
enumerator->destroy(enumerator);
}
return TRUE;
#else
return FALSE;
#endif
}
METHOD(hook_t, destroy, void,