]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
encoding: Define a private use CGA certificate payload
authorMartin Willi <martin@revosec.ch>
Wed, 28 Jan 2015 16:16:56 +0000 (17:16 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 24 Feb 2015 16:13:57 +0000 (17:13 +0100)
src/libcharon/encoding/payloads/cert_payload.c
src/libcharon/encoding/payloads/cert_payload.h

index 43993ae48e73dd627ad959a2d4da3260d547666d..63f4210f0ddbb7caf89a827e1913ad2109d17cca 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "cert_payload.h"
 
-ENUM(cert_encoding_names, ENC_PKCS7_WRAPPED_X509, ENC_OCSP_CONTENT,
+ENUM_BEGIN(cert_encoding_names, ENC_PKCS7_WRAPPED_X509, ENC_OCSP_CONTENT,
        "ENC_PKCS7_WRAPPED_X509",
        "ENC_PGP",
        "ENC_DNS_SIGNED_KEY",
@@ -39,6 +39,10 @@ ENUM(cert_encoding_names, ENC_PKCS7_WRAPPED_X509, ENC_OCSP_CONTENT,
        "ENC_X509_HASH_AND_URL_BUNDLE",
        "ENC_OCSP_CONTENT",
 );
+ENUM_NEXT(cert_encoding_names, ENC_CGA_PARAMS, ENC_CGA_PARAMS, ENC_OCSP_CONTENT,
+       "ENC_CGA_PARAMS",
+);
+ENUM_END(cert_encoding_names, ENC_CGA_PARAMS);
 
 typedef struct private_cert_payload_t private_cert_payload_t;
 
index 834f35d60503fc4ec712b218c4099816307979ae..af2a04a145aa6fdc9794824120fd65c79f15d426 100644 (file)
@@ -48,6 +48,8 @@ enum cert_encoding_t {
        ENC_X509_HASH_AND_URL =                 12,
        ENC_X509_HASH_AND_URL_BUNDLE =  13,
        ENC_OCSP_CONTENT =                              14,  /* from RFC 4806 */
+       /* private use */
+       ENC_CGA_PARAMS =                           201,
 };
 
 /**