mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
Add TKM_CTX_ISA (IKE SA context)
This commit is contained in:
parent
fa22fc2419
commit
7fb3e5ed10
@ -75,8 +75,7 @@ bool tkm_init()
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* only nonce and DH context limits are currently needed */
|
||||
const tkm_limits_t limits = {nc, dh};
|
||||
const tkm_limits_t limits = {nc, dh, isa};
|
||||
|
||||
INIT(this,
|
||||
.public = {
|
||||
|
@ -22,10 +22,11 @@
|
||||
|
||||
#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",
|
||||
"DH_CONTEXT");
|
||||
ENUM_END(tkm_context_kind_names, TKM_CTX_DH);
|
||||
"DH_CONTEXT",
|
||||
"ISA_CONTEXT");
|
||||
ENUM_END(tkm_context_kind_names, TKM_CTX_ISA);
|
||||
|
||||
typedef struct private_tkm_id_manager_t private_tkm_id_manager_t;
|
||||
|
||||
|
@ -30,6 +30,8 @@ enum tkm_context_kind_t {
|
||||
TKM_CTX_NONCE,
|
||||
/** Diffie-Hellman context */
|
||||
TKM_CTX_DH,
|
||||
/** IKE SA context */
|
||||
TKM_CTX_ISA,
|
||||
|
||||
/** helper to determine the number of elements in this enum */
|
||||
TKM_CTX_MAX,
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user