Added a stub for the EAP-AKA backend implementing the 3GPP2 functions in software
[strongswan.git] / src / charon / plugins / eap_aka_3gpp2 / eap_aka_3gpp2_functions.c
1 /*
2 * Copyright (C) 2008-2009 Martin Willi
3 * 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 #include "eap_aka_3gpp2_functions.h"
17
18 typedef struct private_eap_aka_3gpp2_functions_t private_eap_aka_3gpp2_functions_t;
19
20 /**
21 * Private data of an eap_aka_3gpp2_functions_t object.
22 */
23 struct private_eap_aka_3gpp2_functions_t {
24
25 /**
26 * Public eap_aka_3gpp2_functions_t interface.
27 */
28 eap_aka_3gpp2_functions_t public;
29 };
30
31 /**
32 * Implementation of eap_aka_3gpp2_functions_t.destroy.
33 */
34 static void destroy(private_eap_aka_3gpp2_functions_t *this)
35 {
36 free(this);
37 }
38
39 /**
40 * See header
41 */
42 eap_aka_3gpp2_functions_t *eap_aka_3gpp2_functions_create()
43 {
44 private_eap_aka_3gpp2_functions_t *this = malloc_thing(private_eap_aka_3gpp2_functions_t);
45
46 this->public.destroy = (void(*)(eap_aka_3gpp2_functions_t*))destroy;
47
48 return &this->public;
49 }
50