return notify;
}
+#if DEBUG_LEVEL >= 1
/**
* get a string representation of the message
*/
snprintf(pos, len, " ]");
return buf;
}
+#endif
METHOD(message_t, disable_sort, void,
private_message_t *this)
enumerator_t *enumerator;
aead_t *aead = NULL;
chunk_t hash = chunk_empty;
- char str[BUF_LEN];
ike_header_t *ike_header;
payload_t *payload, *next;
bool encrypting = FALSE;
enumerator->destroy(enumerator);
}
+#if DEBUG_LEVEL >= 1
+ char str[BUF_LEN];
DBG1(DBG_ENC, "generating %s", get_string(this, str, sizeof(str)));
+#endif
if (keymat)
{
private_message_t *this, keymat_t *keymat)
{
status_t status = SUCCESS;
- char str[BUF_LEN];
DBG2(DBG_ENC, "parsing body of message, first payload is %N",
payload_type_names, this->first_payload);
return status;
}
+#if DEBUG_LEVEL >= 1
+ char str[BUF_LEN];
DBG1(DBG_ENC, "parsed %s", get_string(this, str, sizeof(str)));
+#endif
if (keymat && keymat->get_version(keymat) == IKEV1)
{
enumerator_t *enumerator;
chunk_t data;
uint16_t total, num;
- size_t len;
status_t status;
if (!this->frag)
/* we report the length of the complete IKE message when splitting, do the
* same here, so add the IKEv2 header len to the reassembled payload data */
- len = 28;
+#if DEBUG_LEVEL >= 1
+ size_t len = 28;
enumerator = create_payload_enumerator(this);
while (enumerator->enumerate(enumerator, &payload))
{
DBG1(DBG_ENC, "received fragment #%hu of %hu, reassembled fragmented IKE "
"message (%zu bytes)", num, total, len);
+#endif /* DEBUG_LEVEL */
+
return SUCCESS;
}