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)
|
if (payload->get_type(payload) == PLV2_NOTIFY)
|
||||||
{
|
{
|
||||||
notify_payload_t *notify = (notify_payload_t*)payload;
|
notify_payload_t *notify = (notify_payload_t*)payload;
|
||||||
chunk_t data;
|
|
||||||
|
|
||||||
if (notify->get_notify_type(notify) == COOKIE)
|
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);
|
DBG1(DBG_CFG, "received COOKIE: %#B", &data);
|
||||||
|
#endif
|
||||||
has_cookie = TRUE;
|
has_cookie = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ METHOD(listener_t, message, bool,
|
|||||||
private_log_id_t *this, ike_sa_t *ike_sa, message_t *message,
|
private_log_id_t *this, ike_sa_t *ike_sa, message_t *message,
|
||||||
bool incoming, bool plain)
|
bool incoming, bool plain)
|
||||||
{
|
{
|
||||||
|
#if DEBUG_LEVEL >= 1
|
||||||
if (incoming && plain)
|
if (incoming && plain)
|
||||||
{
|
{
|
||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
@@ -62,6 +63,9 @@ METHOD(listener_t, message, bool,
|
|||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(hook_t, destroy, void,
|
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,
|
private_log_ke_t *this, ike_sa_t *ike_sa, message_t *message,
|
||||||
bool incoming, bool plain)
|
bool incoming, bool plain)
|
||||||
{
|
{
|
||||||
|
#if DEBUG_LEVEL >= 1
|
||||||
if (incoming && plain)
|
if (incoming && plain)
|
||||||
{
|
{
|
||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
@@ -54,6 +55,9 @@ METHOD(listener_t, message, bool,
|
|||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(hook_t, destroy, void,
|
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,
|
private_log_ts_t *this, ike_sa_t *ike_sa, message_t *message,
|
||||||
bool incoming, bool plain)
|
bool incoming, bool plain)
|
||||||
{
|
{
|
||||||
|
#if DEBUG_LEVEL >= 1
|
||||||
if (incoming && plain)
|
if (incoming && plain)
|
||||||
{
|
{
|
||||||
enumerator_t *enumerator;
|
enumerator_t *enumerator;
|
||||||
@@ -77,6 +78,9 @@ METHOD(listener_t, message, bool,
|
|||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#else
|
||||||
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
METHOD(hook_t, destroy, void,
|
METHOD(hook_t, destroy, void,
|
||||||
|
|||||||
Reference in New Issue
Block a user