if ((nak->data[i] >= PW_EAP_MAX_TYPES) ||
!inst->methods[nak->data[i]]) {
RDEBUG2("Peer NAK'd asking for "
- "unsupported type %s (%d), skipping...",
+ "unsupported EAP type %s (%d), skipping...",
eap_type2name(nak->data[i]),
nak->data[i]);
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 EAP type %s (%d)",
+ eap_type2name(next), next);
return EAP_INVALID;
}
* We haven't configured it, it doesn't exit.
*/
if (!inst->methods[type->num]) {
- REDEBUG2("Client asked for unsupported method %s (%d)",
+ REDEBUG2("Client asked for unsupported EAP type %s (%d)",
eap_type2name(type->num),
type->num);
if ((eap_packet->data[7] == 0) ||
(eap_packet->data[7] >= PW_EAP_MAX_TYPES)) {
- RAUTH("Unsupported Expanded EAP type %u: ignoring the packet", eap_packet->data[7]);
+ RAUTH("Unsupported Expanded EAP type %s (%u): ignoring the packet",
+ eap_type2name(eap_packet->data[7]), eap_packet->data[7]);
return EAP_INVALID;
}
p = talloc_realloc(talloc_parent(eap_packet), eap_packet, uint8_t, len - 7);
if (!p) {
- RAUTH("Unsupported EAP type %u: ignoring the packet", eap_packet->data[0]);
+ RAUTH("Unsupported EAP type %s (%u): ignoring the packet",
+ eap_type2name(eap_packet->data[0]), eap_packet->data[0]);
return EAP_INVALID;
}
return EAP_VALID;
}
- RAUTH("Unsupported EAP type %u: ignoring the packet", eap_packet->data[0]);
+ RAUTH("Unsupported EAP type %s (%u): ignoring the packet",
+ eap_type2name(eap_packet->data[0]), eap_packet->data[0]);
return EAP_INVALID;
}