added CERT_ROOF
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 23 Mar 2007 22:01:40 +0000 (22:01 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 23 Mar 2007 22:01:40 +0000 (22:01 -0000)
src/charon/encoding/payloads/cert_payload.c
src/charon/encoding/payloads/cert_payload.h

index 6ac43a5..c456f49 100644 (file)
@@ -129,7 +129,7 @@ encoding_rule_t cert_payload_encodings[] = {
 static status_t verify(private_cert_payload_t *this)
 {
        if ((this->cert_encoding == 0) ||
-               ((this->cert_encoding >= 15) && (this->cert_encoding <= 200)))
+               ((this->cert_encoding >= CERT_ROOF) && (this->cert_encoding <= 200)))
        {
                /* reserved IDs */
                return FAILED;
index 64e9110..bcb9613 100644 (file)
@@ -57,7 +57,8 @@ enum cert_encoding_t {
        CERT_RAW_RSA_KEY =                              11,
        CERT_X509_HASH_AND_URL =                12,
        CERT_X509_HASH_AND_URL_BUNDLE = 13,
-       CERT_OCSP_CONTENT =                             14  /* from RFC 4806 */
+       CERT_OCSP_CONTENT =                             14,  /* from RFC 4806 */
+       CERT_ROOF =                                             15
 };
 
 /**