Use VICI 2.0 protocol version for certificate queries
[strongswan.git] / src / libcharon / plugins / vici / vici_cert_info.h
1 /*
2 * Copyright (C) 2015 Andreas Steffen
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 /**
17 * @defgroup vici_cert_info vici_cert_info
18 * @{ @ingroup vici
19 */
20
21 #ifndef VICI_CERT_INFO_H_
22 #define VICI_CERT_INFO_H_
23
24 typedef struct vici_cert_info_t vici_cert_info_t;
25
26 #include <credentials/certificates/certificate.h>
27 #include <credentials/certificates/x509.h>
28
29 /**
30 * Information on vici certificate types
31 */
32 struct vici_cert_info_t {
33
34 /**
35 * Certificate type string used in vici messages
36 */
37 char *type_str;
38
39 /**
40 * Caption describing the certificate type
41 */
42 char *caption;
43
44 /**
45 * Base certificate type
46 */
47 certificate_type_t type;
48
49 /**
50 * X.509 flag
51 */
52 x509_flag_t flag;
53
54 };
55
56 /**
57 * Retrieve information on a given certificate type
58 *
59 * @param type_str Vici certificate type string
60 * @return Information record or NULL if not found
61 */
62 vici_cert_info_t* vici_cert_info_retrieve(char *type_str);
63
64 #endif /** VICI_CERT_INFO_H_ @}*/