]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libstrongswan/credentials/builder.c
builder: Add builder option to pass signature scheme and params
[thirdparty/strongswan.git] / src / libstrongswan / credentials / builder.c
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Copyright (C) 2016 Andreas Steffen
4 * HSR Hochschule fuer Technik Rapperswil
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 #include "builder.h"
18
19 ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
20 "BUILD_FROM_FILE",
21 "BUILD_AGENT_SOCKET",
22 "BUILD_BLOB",
23 "BUILD_BLOB_ASN1_DER",
24 "BUILD_BLOB_PEM",
25 "BUILD_BLOB_PGP",
26 "BUILD_BLOB_DNSKEY",
27 "BUILD_BLOB_SSHKEY",
28 "BUILD_BLOB_ALGID_PARAMS",
29 "BUILD_KEY_SIZE",
30 "BUILD_SIGNING_KEY",
31 "BUILD_SIGNING_CERT",
32 "BUILD_PUBLIC_KEY",
33 "BUILD_SUBJECT",
34 "BUILD_SUBJECT_ALTNAMES",
35 "BUILD_ISSUER",
36 "BUILD_ISSUER_ALTNAMES",
37 "BUILD_NOT_BEFORE_TIME",
38 "BUILD_NOT_AFTER_TIME",
39 "BUILD_SERIAL",
40 "BUILD_SIGNATURE_SCHEME",
41 "BUILD_DIGEST_ALG",
42 "BUILD_ENCRYPTION_ALG",
43 "BUILD_AC_GROUP_STRINGS",
44 "BUILD_CA_CERT",
45 "BUILD_CERT",
46 "BUILD_CRL_DISTRIBUTION_POINTS",
47 "BUILD_OCSP_ACCESS_LOCATIONS",
48 "BUILD_PATHLEN",
49 "BUILD_ADDRBLOCKS",
50 "BUILD_PERMITTED_NAME_CONSTRAINTS",
51 "BUILD_EXCLUDED_NAME_CONSTRAINTS",
52 "BUILD_CERTIFICATE_POLICIES",
53 "BUILD_POLICY_MAPPINGS",
54 "BUILD_POLICY_REQUIRE_EXPLICIT",
55 "BUILD_POLICY_INHIBIT_MAPPING",
56 "BUILD_POLICY_INHIBIT_ANY",
57 "BUILD_X509_FLAG",
58 "BUILD_REVOKED_ENUMERATOR",
59 "BUILD_BASE_CRL",
60 "BUILD_CHALLENGE_PWD",
61 "BUILD_PKCS7_ATTRIBUTE",
62 "BUILD_PKCS11_MODULE",
63 "BUILD_PKCS11_SLOT",
64 "BUILD_PKCS11_KEYID",
65 "BUILD_RSA_MODULUS",
66 "BUILD_RSA_PUB_EXP",
67 "BUILD_RSA_PRIV_EXP",
68 "BUILD_RSA_PRIME1",
69 "BUILD_RSA_PRIME2",
70 "BUILD_RSA_EXP1",
71 "BUILD_RSA_EXP2",
72 "BUILD_RSA_COEFF",
73 "BUILD_SAFE_PRIMES",
74 "BUILD_SHARES",
75 "BUILD_THRESHOLD",
76 "BUILD_EDDSA_PRIV_ASN1_DER",
77 "BUILD_END",
78 );