Add TKM_CTX_ISA (IKE SA context)

This commit is contained in:
Reto Buerki
2013-03-19 15:23:46 +01:00
committed by Tobias Brunner
parent fa22fc2419
commit 7fb3e5ed10
4 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -75,8 +75,7 @@ bool tkm_init()
return FALSE; return FALSE;
} }
/* only nonce and DH context limits are currently needed */ const tkm_limits_t limits = {nc, dh, isa};
const tkm_limits_t limits = {nc, dh};
INIT(this, INIT(this,
.public = { .public = {
+4 -3
View File
@@ -22,10 +22,11 @@
#define TKM_LIMIT 100 #define TKM_LIMIT 100
ENUM_BEGIN(tkm_context_kind_names, TKM_CTX_NONCE, TKM_CTX_DH, ENUM_BEGIN(tkm_context_kind_names, TKM_CTX_NONCE, TKM_CTX_ISA,
"NONCE_CONTEXT", "NONCE_CONTEXT",
"DH_CONTEXT"); "DH_CONTEXT",
ENUM_END(tkm_context_kind_names, TKM_CTX_DH); "ISA_CONTEXT");
ENUM_END(tkm_context_kind_names, TKM_CTX_ISA);
typedef struct private_tkm_id_manager_t private_tkm_id_manager_t; typedef struct private_tkm_id_manager_t private_tkm_id_manager_t;
+2
View File
@@ -30,6 +30,8 @@ enum tkm_context_kind_t {
TKM_CTX_NONCE, TKM_CTX_NONCE,
/** Diffie-Hellman context */ /** Diffie-Hellman context */
TKM_CTX_DH, TKM_CTX_DH,
/** IKE SA context */
TKM_CTX_ISA,
/** helper to determine the number of elements in this enum */ /** helper to determine the number of elements in this enum */
TKM_CTX_MAX, TKM_CTX_MAX,
+1 -1
View File
@@ -18,7 +18,7 @@
#include "tkm_id_manager.h" #include "tkm_id_manager.h"
static const tkm_limits_t limits = {125, 100}; static const tkm_limits_t limits = {125, 100, 30};
START_TEST(test_id_mgr_creation) START_TEST(test_id_mgr_creation)
{ {