added EAP_SUCCESS/FAILURE message to RADIUS Accept/Reject
This commit is contained in:
@@ -250,17 +250,22 @@ static void process_eap(private_tnc_pdp_t *this, radius_message_t *request,
|
|||||||
break;
|
break;
|
||||||
case SUCCESS:
|
case SUCCESS:
|
||||||
code = RMC_ACCESS_ACCEPT;
|
code = RMC_ACCESS_ACCEPT;
|
||||||
|
DESTROY_IF(out);
|
||||||
|
out = eap_payload_create_code(EAP_SUCCESS,
|
||||||
|
in->get_identifier(in));
|
||||||
break;
|
break;
|
||||||
case FAILED:
|
case FAILED:
|
||||||
default:
|
default:
|
||||||
code = RMC_ACCESS_REJECT;
|
code = RMC_ACCESS_REJECT;
|
||||||
|
DESTROY_IF(out);
|
||||||
|
out = eap_payload_create_code(EAP_FAILURE,
|
||||||
|
in->get_identifier(in));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
send_response(this, request, code, out, source);
|
send_response(this, request, code, out, source);
|
||||||
|
|
||||||
in->destroy(in);
|
in->destroy(in);
|
||||||
DESTROY_IF(out);
|
out->destroy(out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user