identification_t *peer;
/**
- * Outer phase 1 EAP method
+ * Outer phase 1 EAP method
*/
eap_method_t *ph1_method;
/**
- * Current phase 2 EAP method
+ * Current phase 2 EAP method
*/
eap_method_t *ph2_method;
/**
- * Pending outbound EAP message
+ * Pending outbound EAP message
*/
eap_payload_t *out;
if (code == EAP_REQUEST || code == EAP_RESPONSE)
{
received_type = in->get_type(in, &received_vendor);
- DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N/%N]",
- eap_code_short_names, code,
- eap_type_short_names, received_type);
+ DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
+ eap_code_short_names, code, eap_type_short_names, received_type);
if (code != EAP_REQUEST)
{
DBG1(DBG_IKE, "%N expected", eap_code_names, EAP_REQUEST);
}
else
{
- DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N]",
- eap_code_short_names, code);
+ DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N ]",
+ eap_code_short_names, code);
this->out = eap_payload_create_code(code, in->get_identifier(in));
in->destroy(in);
return NEED_MORE;
if (received_vendor)
{
DBG1(DBG_IKE, "server requested vendor specific EAP method %d-%d "
- "(id 0x%02X", received_type, received_vendor,
- in->get_identifier(in));
+ "(id 0x%02X", received_type, received_vendor,
+ in->get_identifier(in));
}
else
{
if (vendor)
{
DBG1(DBG_IKE, "vendor specific EAP method %d-%d failed",
- type, vendor);
+ type, vendor);
}
else
{
type = this->out->get_type(this->out, &vendor);
if (code == EAP_REQUEST || code == EAP_RESPONSE)
{
- DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [EAP/%N/%N]",
+ DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
eap_code_short_names, code, eap_type_short_names, type);
}
else
{
- DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [EAP/%N]",
+ DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [ EAP/%N ]",
eap_code_short_names, code);
}
eap_code_t phase2_result;
/**
- * Outer phase 1 EAP method
+ * Outer phase 1 EAP method
*/
eap_method_t *ph1_method;
/**
- * Current phase 2 EAP method
+ * Current phase 2 EAP method
*/
eap_method_t *ph2_method;
/**
- * Pending outbound EAP message
+ * Pending outbound EAP message
*/
eap_payload_t *out;
else
{
DBG1(DBG_IKE, "%N method failed", eap_type_names, type);
- return FAILED;
+ return FAILED;
}
}
if (code == EAP_REQUEST || code == EAP_RESPONSE)
{
received_type = in->get_type(in, &received_vendor);
- DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N/%N]",
+ DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
eap_code_short_names, code,
eap_type_short_names, received_type);
if (code != EAP_RESPONSE)
}
else
{
- DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N]",
+ DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N ]",
eap_code_short_names, code);
/* if EAP_SUCCESS check if to continue phase2 with EAP-TNC */