DEBUG2(" rlm_eap: WARNING: Tunnelling TLS inside of a TLS will probably not work.");
}
+ if ((default_eap_type == PW_EAP_TNC) &&
+ !handler->request->parent) {
+ DEBUG2(" rlm_eap: ERROR: EAP-TNC must be run inside of a TLS method.");
+ return EAP_INVALID;
+ }
+
if (eaptype_call(inst->types[default_eap_type],
handler) == 0) {
DEBUG2(" rlm_eap: Default EAP type %s failed in initiate",
*/
static int tnc_initiate(void *type_data, EAP_HANDLER *handler)
{
+ if (!handler->request || !handler->request->parent) {
+ DEBUG2("rlm_eap_tnc: Must be run inside of a TLS method");
+ return 0;
+ }
+
DEBUG("tnc_initiate: %ld", handler->timestamp);
if(vlanAccess==0 || vlanIsolate==0 || pathToSO==0){
init();