summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_api.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-11-06 14:47:40 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-11-07 17:13:17 +0000
commit45ec9f49bc7ee0bd3ac4f2a07ecb1d0b9280c036 (patch)
treed6d255e1b8747de69af8e798d9e273e9ee7ec80e /src/vnet/session/session_api.c
parent9d3e1b433f394781a55a4c7c39b695d08dd2563f (diff)
session: ckpair store & crypto engine as mq params
Type: feature This patch adds the logic to pass to connect & listen msg in the mq the following parameters * ckpair index * crypto engine (for now only used in quic) Change-Id: I7213d8b581cb4532a9a6b18c4b3fe021287b7733 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rwxr-xr-xsrc/vnet/session/session_api.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index 0b610f3f313..add9370e3c8 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -1403,7 +1403,7 @@ done:
/* *INDENT-OFF* */
REPLY_MACRO2 (VL_API_APP_ADD_CERT_KEY_PAIR_REPLY, ({
if (!rv)
- rmp->index = a->index;
+ rmp->index = clib_host_to_net_u32 (a->index);
}));
/* *INDENT-ON* */
}
@@ -1412,16 +1412,18 @@ static void
vl_api_app_del_cert_key_pair_t_handler (vl_api_app_del_cert_key_pair_t * mp)
{
vl_api_app_del_cert_key_pair_reply_t *rmp;
+ u32 ckpair_index;
int rv = 0;
if (session_main_is_enabled () == 0)
{
rv = VNET_API_ERROR_FEATURE_DISABLED;
goto done;
}
- rv = vnet_app_del_cert_key_pair (mp->index);
+ ckpair_index = clib_net_to_host_u32 (mp->index);
+ rv = vnet_app_del_cert_key_pair (ckpair_index);
done:
- REPLY_MACRO (VL_API_APP_ADD_CERT_KEY_PAIR_REPLY);
+ REPLY_MACRO (VL_API_APP_DEL_CERT_KEY_PAIR_REPLY);
}
/* ### WILL BE DEPRECATED POST 20.01 ### */