Return to xauth_generic.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libcharon / plugins / xauth_generic |
1.1 misho 1: /* 2: * Copyright (C) 2011 Tobias Brunner 3: * HSR Hochschule fuer Technik Rapperswil 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 xauth_generic_i xauth_generic 18: * @{ @ingroup xauth_generic 19: */ 20: 21: #ifndef XAUTH_GENERIC_H_ 22: #define XAUTH_GENERIC_H_ 23: 24: typedef struct xauth_generic_t xauth_generic_t; 25: 26: #include <sa/xauth/xauth_method.h> 27: 28: /** 29: * Implementation of the xauth_method_t interface using cleartext secrets 30: * from any credential set. 31: */ 32: struct xauth_generic_t { 33: 34: /** 35: * Implemented xauth_method_t interface. 36: */ 37: xauth_method_t xauth_method; 38: }; 39: 40: /** 41: * Creates the generic XAuth method, acting as server. 42: * 43: * @param server ID of the XAuth server 44: * @param peer ID of the XAuth client 45: * @param profile configuration string 46: * @return xauth_generic_t object 47: */ 48: xauth_generic_t *xauth_generic_create_server(identification_t *server, 49: identification_t *peer, 50: char *profile); 51: 52: /** 53: * Creates the generic XAuth method, acting as peer. 54: * 55: * @param server ID of the XAuth server 56: * @param peer ID of the XAuth client 57: * @param profile configuration string 58: * @return xauth_generic_t object 59: */ 60: xauth_generic_t *xauth_generic_create_peer(identification_t *server, 61: identification_t *peer, 62: char *profile); 63: 64: #endif /** XAUTH_GENERIC_H_ @}*/