diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 14:11:00 +0000 |
commit | af754e596a8dbb05ed8580c342e7fe02e08b28e0 (patch) | |
tree | b2f334c2b55ede42081aa6710a72da784547d8ea /src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h | |
parent | Initial commit. (diff) | |
download | freeradius-b95e0cd7685e6bbc2465b1f4efe1884df2f4ef01.tar.xz freeradius-b95e0cd7685e6bbc2465b1f4efe1884df2f4ef01.zip |
Adding upstream version 3.2.3+dfsg.upstream/3.2.3+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h')
-rw-r--r-- | src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h b/src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h new file mode 100644 index 0000000..ff9a814 --- /dev/null +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h @@ -0,0 +1,46 @@ +/* + * eap_ttls.h + * + * Version: $Id$ + * + * 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 + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + * Copyright 2003 Alan DeKok <aland@freeradius.org> + * Copyright 2006 The FreeRADIUS server project + */ +#ifndef _EAP_TTLS_H +#define _EAP_TTLS_H + +RCSIDH(eap_ttls_h, "$Id$") + +#include "eap_tls.h" + +typedef struct ttls_tunnel_t { + VALUE_PAIR *username; + VALUE_PAIR *state; + VALUE_PAIR *accept_vps; + bool authenticated; + int default_method; + bool copy_request_to_tunnel; + bool use_tunneled_reply; + char const *virtual_server; +} ttls_tunnel_t; + +/* + * Process the TTLS portion of an EAP-TTLS request. + */ +int eapttls_process(eap_handler_t *handler, tls_session_t *tls_session) CC_HINT(nonnull); + +#endif /* _EAP_TTLS_H */ |