rad_assert(module != NULL);
- RDEBUG2("Calling %s to process EAP data", module->type->name);
+ RDEBUG2("Calling EAP submodule %s to process data", module->type->name);
request->module = module->type->name;
default:
/* Should never enter here */
- RDEBUG("Internal sanity check failed on eap");
+ RDEBUG("Internal sanity check failed on EAP");
rcode = 0;
break;
}
return EAP_INVALID;
}
- RDEBUG2("Peer sent EAP method \"%s\" (%d)", eap_type2name(type->num), type->num);
+ RDEBUG2("Peer sent EAP %s (%d) request", eap_type2name(type->num), type->num);
/*
* Figure out what to do.
*/
if ((next < PW_EAP_MD5) ||
(next >= PW_EAP_MAX_TYPES) ||
(!inst->methods[next])) {
- REDEBUG2("Tried to start unsupported method (%d)",
- next);
+ REDEBUG2("Tried to start unsupported method (%d)", next);
return EAP_INVALID;
}
handler->type = next;
if (eap_module_call(inst->methods[next], handler) == 0) {
- REDEBUG2("Failed starting EAP %s (%d) session. "
- "EAP sub-module failed",
- eap_type2name(next),
- next);
+ REDEBUG2("Failed starting EAP %s (%d) session. EAP sub-module failed",
+ eap_type2name(next), next);
return EAP_INVALID;
}
* Key off of the configured sub-modules.
*/
default:
- RDEBUG2("EAP %s (%d)",
- eap_type2name(type->num),
- type->num);
-
/*
* We haven't configured it, it doesn't exit.
*/
if (!inst->methods[type->num]) {
- REDEBUG2("Client asked for unsupported "
- "type %s (%d)",
+ REDEBUG2("Client asked for unsupported method %s (%d)",
eap_type2name(type->num),
type->num);
handler->type = type->num;
if (eap_module_call(inst->methods[type->num],
handler) == 0) {
- REDEBUG2("Failed continuing EAP %s (%d) session. "
- "EAP sub-module failed",
+ REDEBUG2("Failed continuing EAP %s (%d) session. EAP sub-module failed",
eap_type2name(type->num),
type->num);
default:
++reply->id;
}
+ RDEBUG2("Sending response, EAP ID %d", reply->id);
} else {
- RDEBUG2("Underlying EAP-Type set EAP ID to %d",
- reply->id);
+ RDEBUG2("Sending response, EAP ID %d (set by EAP method handler)", reply->id);
}
/*
}
/* Should never enter here */
- ERROR("rlm_eap: reply code %d is unknown, Rejecting the request.", reply->code);
+ REDEBUG("Reply code %d is unknown, rejecting the request", reply->code);
request->reply->code = PW_CODE_ACCESS_REJECT;
reply->code = PW_EAP_FAILURE;
rcode = RLM_MODULE_REJECT;
(eap_msg->vp_octets[0] >= PW_EAP_MAX_CODES)) {
RDEBUG2("Unknown EAP packet");
} else {
- RDEBUG2("Peer sent code %s (%i) ID %d length %zu",
+ RDEBUG2("Peer sent EAP %s (code %i) ID %d length %zu",
eap_codes[eap_msg->vp_octets[0]],
eap_msg->vp_octets[0],
eap_msg->vp_octets[1],