builder: Add builder option to pass signature scheme and params
authorTobias Brunner <tobias@strongswan.org>
Fri, 27 Oct 2017 09:06:14 +0000 (11:06 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Nov 2017 15:48:10 +0000 (16:48 +0100)
src/libstrongswan/credentials/builder.c
src/libstrongswan/credentials/builder.h

index baa17c4..0239ee1 100644 (file)
@@ -37,6 +37,7 @@ ENUM(builder_part_names, BUILD_FROM_FILE, BUILD_END,
        "BUILD_NOT_BEFORE_TIME",
        "BUILD_NOT_AFTER_TIME",
        "BUILD_SERIAL",
+       "BUILD_SIGNATURE_SCHEME",
        "BUILD_DIGEST_ALG",
        "BUILD_ENCRYPTION_ALG",
        "BUILD_AC_GROUP_STRINGS",
index 1c6f500..7928ef4 100644 (file)
@@ -56,7 +56,7 @@ enum builder_part_t {
        BUILD_BLOB_PEM,
        /** OpenPGP key blob, chunk_t */
        BUILD_BLOB_PGP,
-       /** DNS public key blob (RFC 4034, RSA specifc RFC 3110), chunk_t */
+       /** DNS public key blob (RFC 4034, RSA specific RFC 3110), chunk_t */
        BUILD_BLOB_DNSKEY,
        /** SSH public key blob (RFC 4253), chunk_t */
        BUILD_BLOB_SSHKEY,
@@ -84,6 +84,8 @@ enum builder_part_t {
        BUILD_NOT_AFTER_TIME,
        /** a serial number in binary form, chunk_t */
        BUILD_SERIAL,
+       /** signature scheme and parameters for signature, signature_params_t* */
+       BUILD_SIGNATURE_SCHEME,
        /** digest algorithm to be used for signature, hash_algorithm_t */
        BUILD_DIGEST_ALG,
        /** encryption algorithm to use, encryption_algorithm_t */