Add TKM_CTX_CC (Certificate chain context id)
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Tue, 25 Sep 2012 15:13:19 +0000 (17:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Mar 2013 14:23:48 +0000 (15:23 +0100)
src/charon-tkm/src/tkm/tkm.c
src/charon-tkm/src/tkm/tkm_id_manager.c
src/charon-tkm/src/tkm/tkm_id_manager.h
src/charon-tkm/tests/id_manager_tests.c

index 6e27586..ce4cedc 100644 (file)
@@ -91,7 +91,7 @@ bool tkm_init()
                return FALSE;
        }
 
-       const tkm_limits_t limits = {nc, dh, isa, ae, esa};
+       const tkm_limits_t limits = {nc, dh, cc, isa, ae, esa};
 
        INIT(this,
                .public = {
index 24513eb..63377e6 100644 (file)
@@ -25,6 +25,7 @@
 ENUM_BEGIN(tkm_context_kind_names, TKM_CTX_NONCE, TKM_CTX_ESA,
        "NONCE_CONTEXT",
        "DH_CONTEXT",
+       "CC_CONTEXT"
        "ISA_CONTEXT",
        "AE_CONTEXT",
        "ESA_CONTEXT");
index 716e91d..b1c1160 100644 (file)
@@ -30,6 +30,8 @@ enum tkm_context_kind_t {
        TKM_CTX_NONCE,
        /** Diffie-Hellman context */
        TKM_CTX_DH,
+       /** Certificate chain context */
+       TKM_CTX_CC,
        /** IKE SA context */
        TKM_CTX_ISA,
        /** Authenticated Endpoint context */
index fd34bf9..15522f1 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "tkm_id_manager.h"
 
-static const tkm_limits_t limits = {125, 100, 30, 200, 42};
+static const tkm_limits_t limits = {125, 100, 55, 30, 200, 42};
 
 START_TEST(test_id_mgr_creation)
 {