conftest: Fix build with DEBUG_LEVEL < 1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user