{
/* Add a certificate with index 0 to support legacy apis */
(void) app_cert_key_pair_alloc ();
+ app_main.last_crypto_engine = CRYPTO_ENGINE_LAST;
return 0;
}
};
/* *INDENT-ON* */
+crypto_engine_type_t
+app_crypto_engine_type_add (void)
+{
+ return (++app_main.last_crypto_engine);
+}
+
+u8
+app_crypto_engine_n_types (void)
+{
+ return (app_main.last_crypto_engine + 1);
+}
+
/*
* fd.io coding-style-patch-verification: ON
*
* Pool from which we allocate certificates (key, cert)
*/
app_cert_key_pair_t *cert_key_pair_store;
+
+ /*
+ * Last registered crypto engine type
+ */
+ crypto_engine_type_t last_crypto_engine;
} app_main_t;
typedef struct app_init_args_
void mq_send_unlisten_reply (app_worker_t * app_wrk, session_handle_t sh,
u32 context, int rv);
+crypto_engine_type_t app_crypto_engine_type_add (void);
+u8 app_crypto_engine_n_types (void);
+
#endif /* SRC_VNET_SESSION_APPLICATION_H_ */
/*