Annotation of embedaddon/strongswan/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_card.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2008-2009 Martin Willi
                      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:  * Copyright (C) 2015 Thomas Strangert
                     17:  * Polystar System AB, Sweden
                     18:  *
                     19:  * Permission is hereby granted, free of charge, to any person obtaining a copy
                     20:  * of this software and associated documentation files (the "Software"), to deal
                     21:  * in the Software without restriction, including without limitation the rights
                     22:  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                     23:  * copies of the Software, and to permit persons to whom the Software is
                     24:  * furnished to do so, subject to the following conditions:
                     25:  *
                     26:  * The above copyright notice and this permission notice shall be included in
                     27:  * all copies or substantial portions of the Software.
                     28:  *
                     29:  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                     30:  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                     31:  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                     32:  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                     33:  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                     34:  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
                     35:  * THE SOFTWARE.
                     36:  */
                     37: 
                     38: /**
                     39:  * @defgroup eap_aka_3gpp_card eap_aka_3gpp_card
                     40:  * @{ @ingroup eap_aka_3gpp
                     41:  */
                     42: 
                     43: #ifndef EAP_AKA_3GPP_CARD_H_
                     44: #define EAP_AKA_3GPP_CARD_H_
                     45: 
                     46: #include "eap_aka_3gpp_functions.h"
                     47: 
                     48: #include <simaka_card.h>
                     49: 
                     50: typedef struct eap_aka_3gpp_card_t eap_aka_3gpp_card_t;
                     51: 
                     52: /**
                     53:  * SIM card implementation using a set of AKA functions.
                     54:  */
                     55: struct eap_aka_3gpp_card_t {
                     56: 
                     57:        /**
                     58:         * Implements simaka_card_t interface
                     59:         */
                     60:        simaka_card_t card;
                     61: 
                     62:        /**
                     63:         * Destroy a eap_aka_3gpp_card_t.
                     64:         */
                     65:        void (*destroy)(eap_aka_3gpp_card_t *this);
                     66: };
                     67: 
                     68: /**
                     69:  * Create a eap_aka_3gpp_card instance.
                     70:  *
                     71:  * @param f            AKA functions
                     72:  */
                     73: eap_aka_3gpp_card_t *eap_aka_3gpp_card_create(eap_aka_3gpp_functions_t *f);
                     74: 
                     75: #endif /** EAP_AKA_3GPP_CARD_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>