From: Alan T. DeKok Date: Thu, 13 Aug 2015 08:48:00 +0000 (+0200) Subject: Allow EAP sub-modules to be disabled via (e.g.) "disable peap" X-Git-Tag: release_3_0_10~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7803ef56a99b897cc988e8c8a482dea79e1e82fa;p=thirdparty%2Ffreeradius-server.git Allow EAP sub-modules to be disabled via (e.g.) "disable peap" --- diff --git a/src/modules/rlm_eap/rlm_eap.c b/src/modules/rlm_eap/rlm_eap.c index 1a2e614b0e2..24163653fd9 100644 --- a/src/modules/rlm_eap/rlm_eap.c +++ b/src/modules/rlm_eap/rlm_eap.c @@ -119,7 +119,6 @@ static int mod_instantiate(CONF_SECTION *cs, void *instance) for(scs = cf_subsection_find_next(cs, NULL, NULL); scs != NULL; scs = cf_subsection_find_next(cs, scs, NULL)) { - char const *name; name = cf_section_name1(scs); @@ -127,6 +126,12 @@ static int mod_instantiate(CONF_SECTION *cs, void *instance) if (!strcmp(name, TLS_CONFIG_SECTION)) continue; + /* + * Easier sometimes than commenting out blocks, + * or deleting blocks. + */ + if (!strcmp(name, "disable")) continue; + method = eap_name2type(name); if (method == PW_EAP_INVALID) { cf_log_err_cs(cs, "No dictionary definition for EAP method %s", name);