]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
TLS virtual-server option is part of tls config, not eap method
authorNick Porter <nick@portercomputing.co.uk>
Mon, 2 Dec 2024 08:34:09 +0000 (08:34 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 6 Dec 2024 12:04:32 +0000 (12:04 +0000)
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h

index 2259cc5d2b999c00646e5a1a0d8820ca038380f6..898b4e23acbd8503bc0780b9aa77bcd99c9e832e 100644 (file)
@@ -47,7 +47,6 @@ static conf_parser_t submodule_config[] = {
 
        { FR_CONF_OFFSET("require_client_cert", rlm_eap_tls_t, req_client_cert), .dflt = "yes" },
        { FR_CONF_OFFSET("include_length", rlm_eap_tls_t, include_length), .dflt = "yes" },
-       { FR_CONF_OFFSET("virtual_server", rlm_eap_tls_t, virtual_server) },
        CONF_PARSER_TERMINATOR
 };
 
@@ -262,11 +261,6 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
                return -1;
        }
 
-       if (inst->virtual_server && !virtual_server_find(inst->virtual_server)) {
-               cf_log_err_by_child(conf, "virtual_server", "Unknown virtual server '%s'", inst->virtual_server);
-               return -1;
-       }
-
        return 0;
 }
 
index 735057bf5680b2fd927aa92b64bcde43fe8b6704..65178c276b5abb019a84fd539b03d68fda8dc14c 100644 (file)
@@ -49,6 +49,4 @@ typedef struct {
                                                        //!< not mandatory, and there are some situations
                                                        //!< where it's useful to allow client access without
                                                        //!< a certificate.
-
-       char const              *virtual_server;        //!< Virtual server used for validating certificates.
 } rlm_eap_tls_t;