From 45ec9f49bc7ee0bd3ac4f2a07ecb1d0b9280c036 Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Wed, 6 Nov 2019 14:47:40 +0100 Subject: 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 --- src/vnet/session/session_api.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/vnet/session/session_api.c') 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 ### */ -- cgit 1.2.3-korg