Return to eap_radius_xauth.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libcharon / plugins / eap_radius |
1.1 misho 1: /* 2: * Copyright (C) 2013 Martin Willi 3: * Copyright (C) 2013 revosec AG 4: * 5: * This program is free software; you can redistribute it and/or modify it 6: * under the terms of the GNU General Public License as published by the 7: * Free Software Foundation; either version 2 of the License, or (at your 8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. 9: * 10: * This program is distributed in the hope that it will be useful, but 11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13: * for more details. 14: */ 15: 16: /** 17: * @defgroup eap_radius_xauth eap_radius_xauth 18: * @{ @ingroup eap_radius 19: */ 20: 21: #ifndef EAP_RADIUS_XAUTH_H_ 22: #define EAP_RADIUS_XAUTH_H_ 23: 24: #include <sa/xauth/xauth_method.h> 25: 26: typedef struct eap_radius_xauth_t eap_radius_xauth_t; 27: 28: /** 29: * XAuth backend using plain RADIUS authentication (no EAP involved). 30: */ 31: struct eap_radius_xauth_t { 32: 33: /** 34: * Implements XAuth module interface 35: */ 36: xauth_method_t xauth_method; 37: }; 38: 39: /** 40: * Creates the RADIUS XAuth method, acting as server. 41: * 42: * @param server ID of the XAuth server 43: * @param peer ID of the XAuth client 44: * @param profile configuration string 45: * @return xauth_generic_t object 46: */ 47: eap_radius_xauth_t *eap_radius_xauth_create_server(identification_t *server, 48: identification_t *peer, 49: char *profile); 50: 51: #endif /** EAP_RADIUS_XAUTH_H_ @}*/