f0c334f7efc53c571c79fc1d59e418191faf49bd
2 * Copyright (C) 2016-2018 Tobias Brunner
3 * Copyright (C) 2015 Andreas Steffen
4 * HSR Hochschule fuer Technik Rapperswil
6 * Copyright (C) 2014 Martin Willi
7 * Copyright (C) 2014 revosec AG
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * @defgroup swanctl swanctl
28 #include <settings/settings.h>
31 * Base directory for credentials and config
36 * Configuration file for connections, etc.
38 #define SWANCTL_CONF "swanctl.conf"
41 * Directory for X.509 end entity certs
43 #define SWANCTL_X509DIR "x509"
46 * Directory for X.509 CA certs
48 #define SWANCTL_X509CADIR "x509ca"
51 * Directory for X.509 Attribute Authority certs
53 #define SWANCTL_X509AADIR "x509aa"
56 * Directory for X.509 OCSP Signer certs
58 #define SWANCTL_X509OCSPDIR "x509ocsp"
61 * Directory for X.509 CRLs
63 #define SWANCTL_X509CRLDIR "x509crl"
66 * Directory for X.509 Attribute certificates
68 #define SWANCTL_X509ACDIR "x509ac"
71 * Directory for raw public keys
73 #define SWANCTL_PUBKEYDIR "pubkey"
76 * Directory for private keys
78 #define SWANCTL_PRIVATEDIR "private"
81 * Directory for RSA private keys
83 #define SWANCTL_RSADIR "rsa"
86 * Directory for ECDSA private keys
88 #define SWANCTL_ECDSADIR "ecdsa"
91 * Directory for BLISS private keys
93 #define SWANCTL_BLISSDIR "bliss"
96 * Directory for PKCS#8 encoded private keys
98 #define SWANCTL_PKCS8DIR "pkcs8"
101 * Directory for PKCS#12 containers
103 #define SWANCTL_PKCS12DIR "pkcs12"
106 * Load swanctl.conf, optionally from a custom path. Sets the base dir relative
109 * @param file optional custom path to swanctl.conf, NULL to use default
110 * @return settings, or NULL if loading failed
112 settings_t
*load_swanctl_conf(char *file
);
114 #endif /** SWANCTL_H_ @}*/