splitted stroke plugin to several files:
[strongswan.git] / src / charon / plugins / stroke / stroke_ca.h
1 /*
2 * Copyright (C) 2008 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 * $Id$
16 */
17
18 /**
19 * @defgroup stroke_ca stroke_ca
20 * @{ @ingroup stroke
21 */
22
23 #ifndef STROKE_CA_H_
24 #define STROKE_CA_H_
25
26 #include <stroke_msg.h>
27
28 #include "stroke_cred.h"
29
30 typedef struct stroke_ca_t stroke_ca_t;
31
32 /**
33 * ipsec.conf ca section handling.
34 */
35 struct stroke_ca_t {
36
37 /**
38 * Implements credential_set_t
39 */
40 credential_set_t set;
41
42 /**
43 * Add a CA to the set using a stroke_msg_t.
44 *
45 * @param msg stroke message containing CA info
46 */
47 void (*add)(stroke_ca_t *this, stroke_msg_t *msg);
48
49 /**
50 * Remove a CA from the set using a stroke_msg_t.
51 *
52 * @param msg stroke message containing CA info
53 */
54 void (*del)(stroke_ca_t *this, stroke_msg_t *msg);
55
56 /**
57 * List CA sections to stroke console.
58 *
59 * @param msg stroke message
60 */
61 void (*list)(stroke_ca_t *this, stroke_msg_t *msg, FILE *out);
62
63 /**
64 * Destroy a stroke_ca instance.
65 */
66 void (*destroy)(stroke_ca_t *this);
67 };
68
69 /**
70 * Create a stroke_ca instance.
71 */
72 stroke_ca_t *stroke_ca_create(stroke_cred_t *cred);
73
74 #endif /* STROKE_CA_H_ @}*/