session: fix typos & cert_key store init 31/22631/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Wed, 9 Oct 2019 14:23:26 +0000 (16:23 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 10 Oct 2019 20:08:21 +0000 (20:08 +0000)
Type: fix

Change-Id: I865534de9f16bff586106e0850f131de1e9cbf24
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/vnet/session/application.c
src/vnet/session/application_interface.h

index 82c890f..396470a 100644 (file)
@@ -1593,7 +1593,7 @@ vnet_app_add_cert_key_pair (vnet_app_add_cert_key_pair_args_t * a)
 }
 
 int
-vent_app_add_cert_key_interest (u32 index, u32 app_index)
+vnet_app_add_cert_key_interest (u32 index, u32 app_index)
 {
   app_cert_key_pair_t *ckpair;
   if (!(ckpair = app_cert_key_pair_get_if_valid (index)))
@@ -1634,10 +1634,7 @@ cert_key_pair_store_init (vlib_main_t * vm)
 }
 
 /* *INDENT-OFF* */
-VLIB_INIT_FUNCTION (cert_key_pair_store_init) =
-{
-  .runs_after = VLIB_INITS("unix_physmem_init"),
-};
+VLIB_INIT_FUNCTION (cert_key_pair_store_init);
 
 VLIB_CLI_COMMAND (show_app_command, static) =
 {
index 1786402..e5e36b8 100644 (file)
@@ -256,7 +256,8 @@ clib_error_t *vnet_app_add_tls_cert (vnet_app_add_tls_cert_args_t * a);
 clib_error_t *vnet_app_add_tls_key (vnet_app_add_tls_key_args_t * a);
 int vnet_app_add_cert_key_pair (vnet_app_add_cert_key_pair_args_t * a);
 int vnet_app_del_cert_key_pair (u32 index);
-int vent_app_add_cert_key_interest (u32 index, u32 app_index); /* Ask for app cb on pair deletion */
+/** Ask for app cb on pair deletion */
+int vnet_app_add_cert_key_interest (u32 index, u32 app_index);
 
 typedef struct app_session_transport_
 {