lookup of private key based on keyid of public key
[strongswan.git] / src / charon / config / policies / local_policy_store.h
1 /**
2 * @file local_policy_store.h
3 *
4 * @brief Interface of local_policy_store_t.
5 *
6 */
7
8 /*
9 * Copyright (C) 2006 Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23 #ifndef LOCAL_POLICY_STORE_H_
24 #define LOCAL_POLICY_STORE_H_
25
26 #include <types.h>
27 #include <config/policies/policy_store.h>
28
29
30 typedef struct local_policy_store_t local_policy_store_t;
31
32 /**
33 * @brief A policy_store_t implementation using a simple policy lists.
34 *
35 * The local_policy_store_t class implements the policy_store_t interface
36 * as simple as possible. The policies are stored in a in-memory list.
37 *
38 * @b Constructors:
39 * - local_policy_store_create()
40 *
41 * @ingroup config
42 */
43 struct local_policy_store_t {
44
45 /**
46 * Implements policy_store_t interface
47 */
48 policy_store_t policy_store;
49 };
50
51 /**
52 * @brief Creates a local_policy_store_t instance.
53 *
54 * @return policy store instance.
55 *
56 * @ingroup config
57 */
58 local_policy_store_t *local_policy_store_create(void);
59
60 #endif /* LOCAL_POLICY_STORE_H_ */