Implement TKM-specific credential set
[strongswan.git] / src / charon-tkm / src / tkm / tkm_cred.h
1 /*
2 * Copyright (C) 2012 Reto Buerki
3 * Copyright (C) 2012 Adrian-Ken Rueegsegger
4 * Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #ifndef TKM_CRED_H_
18 #define TKM_CRED_H_
19
20 typedef struct tkm_cred_t tkm_cred_t;
21
22 #include <credentials/credential_set.h>
23
24 /**
25 * TKM in-memory credential set.
26 */
27 struct tkm_cred_t {
28
29 /**
30 * Implements credential_set_t.
31 */
32 credential_set_t set;
33
34 /**
35 * Destroy a tkm_cred_t.
36 */
37 void (*destroy)(tkm_cred_t *this);
38
39 };
40
41 /**
42 * Create a tkm_cred instance.
43 */
44 tkm_cred_t *tkm_cred_create();
45
46 #endif /** TKM_CRED_H_ */