x509: Replace the comma separated string AC group builder with a list based one
[strongswan.git] / src / libstrongswan / credentials / builder.c
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
16 #include "builder.h"
17
18 ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
19 "BUILD_FROM_FILE",
20 "BUILD_AGENT_SOCKET",
21 "BUILD_BLOB",
22 "BUILD_BLOB_ASN1_DER",
23 "BUILD_BLOB_PEM",
24 "BUILD_BLOB_PGP",
25 "BUILD_BLOB_DNSKEY",
26 "BUILD_BLOB_SSHKEY",
27 "BUILD_BLOB_ALGID_PARAMS",
28 "BUILD_KEY_SIZE",
29 "BUILD_SIGNING_KEY",
30 "BUILD_SIGNING_CERT",
31 "BUILD_PUBLIC_KEY",
32 "BUILD_SUBJECT",
33 "BUILD_SUBJECT_ALTNAMES",
34 "BUILD_ISSUER",
35 "BUILD_ISSUER_ALTNAMES",
36 "BUILD_NOT_BEFORE_TIME",
37 "BUILD_NOT_AFTER_TIME",
38 "BUILD_SERIAL",
39 "BUILD_DIGEST_ALG",
40 "BUILD_ENCRYPTION_ALG",
41 "BUILD_AC_GROUP_STRINGS",
42 "BUILD_CA_CERT",
43 "BUILD_CERT",
44 "BUILD_CRL_DISTRIBUTION_POINTS",
45 "BUILD_OCSP_ACCESS_LOCATIONS",
46 "BUILD_PATHLEN",
47 "BUILD_PERMITTED_NAME_CONSTRAINTS",
48 "BUILD_EXCLUDED_NAME_CONSTRAINTS",
49 "BUILD_CERTIFICATE_POLICIES",
50 "BUILD_POLICY_MAPPINGS",
51 "BUILD_POLICY_REQUIRE_EXPLICIT",
52 "BUILD_POLICY_INHIBIT_MAPPING",
53 "BUILD_POLICY_INHIBIT_ANY",
54 "BUILD_X509_FLAG",
55 "BUILD_REVOKED_ENUMERATOR",
56 "BUILD_BASE_CRL",
57 "BUILD_CHALLENGE_PWD",
58 "BUILD_PKCS7_ATTRIBUTE",
59 "BUILD_PKCS11_MODULE",
60 "BUILD_PKCS11_SLOT",
61 "BUILD_PKCS11_KEYID",
62 "BUILD_RSA_MODULUS",
63 "BUILD_RSA_PUB_EXP",
64 "BUILD_RSA_PRIV_EXP",
65 "BUILD_RSA_PRIME1",
66 "BUILD_RSA_PRIME2",
67 "BUILD_RSA_EXP1",
68 "BUILD_RSA_EXP2",
69 "BUILD_RSA_COEFF",
70 "BUILD_SAFE_PRIMES",
71 "BUILD_SHARES",
72 "BUILD_THRESHOLD",
73 "BUILD_END",
74 );