Add TKM_CTX_AE (Authenticated Endpoint context)
authorReto Buerki <reet@codelabs.ch>
Thu, 30 Aug 2012 13:07:21 +0000 (15:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Mar 2013 14:23:47 +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 31e01c6..f2ffd28 100644 (file)
@@ -75,7 +75,7 @@ bool tkm_init()
                return FALSE;
        }
 
-       const tkm_limits_t limits = {nc, dh, isa};
+       const tkm_limits_t limits = {nc, dh, isa, ae};
 
        INIT(this,
                .public = {
index 486a912..6120c32 100644 (file)
 
 #define TKM_LIMIT 100
 
-ENUM_BEGIN(tkm_context_kind_names, TKM_CTX_NONCE, TKM_CTX_ISA,
+ENUM_BEGIN(tkm_context_kind_names, TKM_CTX_NONCE, TKM_CTX_AE,
        "NONCE_CONTEXT",
        "DH_CONTEXT",
-       "ISA_CONTEXT");
-ENUM_END(tkm_context_kind_names, TKM_CTX_ISA);
+       "ISA_CONTEXT",
+       "AE_CONTEXT");
+ENUM_END(tkm_context_kind_names, TKM_CTX_AE);
 
 typedef struct private_tkm_id_manager_t private_tkm_id_manager_t;
 
index 8a9b6d4..17ca017 100644 (file)
@@ -32,6 +32,8 @@ enum tkm_context_kind_t {
        TKM_CTX_DH,
        /** IKE SA context */
        TKM_CTX_ISA,
+       /** Authenticated Endpoint context */
+       TKM_CTX_AE,
 
        /** helper to determine the number of elements in this enum */
        TKM_CTX_MAX,
index 59c82fe..c4d5366 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "tkm_id_manager.h"
 
-static const tkm_limits_t limits = {125, 100, 30};
+static const tkm_limits_t limits = {125, 100, 30, 200};
 
 START_TEST(test_id_mgr_creation)
 {