"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c" between
freeradius-server-3.0.22.tar.bz2 and freeradius-server-3.0.23.tar.bz2

About: FreeRADIUS Server Project - a high performance and highly configurable RADIUS server.

rlm_eap_peap.c  (freeradius-server-3.0.22.tar.bz2):rlm_eap_peap.c  (freeradius-server-3.0.23.tar.bz2)
/* /*
* rlm_eap_peap.c contains the interfaces that are called from eap * rlm_eap_peap.c contains the interfaces that are called from eap
* *
* Version: $Id: a389361f6d2c85ea8b70e5d054c999c38a0e66cf $ * Version: $Id: 4bbf57330fb1d802f26d7637715f70ec19e2d7a6 $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* *
* Copyright 2003 Alan DeKok <aland@freeradius.org> * Copyright 2003 Alan DeKok <aland@freeradius.org>
* Copyright 2006 The FreeRADIUS server project * Copyright 2006 The FreeRADIUS server project
*/ */
RCSID("$Id: a389361f6d2c85ea8b70e5d054c999c38a0e66cf $") RCSID("$Id: 4bbf57330fb1d802f26d7637715f70ec19e2d7a6 $")
#include "eap_peap.h" #include "eap_peap.h"
typedef struct rlm_eap_peap_t { typedef struct rlm_eap_peap_t {
char const *tls_conf_name; //!< TLS configuration. char const *tls_conf_name; //!< TLS configuration.
fr_tls_server_conf_t *tls_conf; fr_tls_server_conf_t *tls_conf;
char const *default_method_name; //!< Default tunneled EAP type. char const *default_method_name; //!< Default tunneled EAP type.
int default_method; int default_method;
char const *inner_eap_module; //!< module name for inner EAP char const *inner_eap_module; //!< module name for inner EAP
skipping to change at line 142 skipping to change at line 142
} else { } else {
inst->auth_type_eap = dv->value; inst->auth_type_eap = dv->value;
} }
#ifdef TLS1_3_VERSION #ifdef TLS1_3_VERSION
if ((inst->tls_conf->min_version == TLS1_3_VERSION) && !inst->tls_conf->t ls13_enable_magic) { if ((inst->tls_conf->min_version == TLS1_3_VERSION) && !inst->tls_conf->t ls13_enable_magic) {
ERROR("There are no standards for using TLS 1.3 with PEAP."); ERROR("There are no standards for using TLS 1.3 with PEAP.");
ERROR("You MUST enable TLS 1.2 for PEAP to work."); ERROR("You MUST enable TLS 1.2 for PEAP to work.");
return -1; return -1;
} }
if ((inst->tls_conf->max_version == TLS1_3_VERSION) ||
(inst->tls_conf->min_version == TLS1_3_VERSION)) {
WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!");
WARN("!! There is no standard for using PEAP with TLS 1.3");
WARN("!! Please set tls_max_version = \"1.2\"");
WARN("!! FreeRADIUS only supports TLS 1.3 for special builds of w
pa_supplicant and Windows");
WARN("!! This limitation is likely to change in late 2021.");
WARN("!! If you are using this version of FreeRADIUS after 2021,
you will probably need to upgrade");
WARN("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!");
}
#endif #endif
return 0; return 0;
} }
/* /*
* Allocate the PEAP per-session data * Allocate the PEAP per-session data
*/ */
static peap_tunnel_t *peap_alloc(TALLOC_CTX *ctx, rlm_eap_peap_t *inst) static peap_tunnel_t *peap_alloc(TALLOC_CTX *ctx, rlm_eap_peap_t *inst)
{ {
 End of changes. 3 change blocks. 
2 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)