From be4d1aa2c58efa8287bca8795bc4a83cb448993a Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Mon, 19 Aug 2019 07:01:17 -0400 Subject: tls: Add C API for TLS openssl to set engine Type: feature Parameters of the engine can be set by C API. After this patch, it is easier to integrate TLS into CSIT test. Change-Id: I063cabf613aabbfad831727551579328705afb41 Signed-off-by: Ping Yu --- src/plugins/tlsopenssl/tls_openssl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/tlsopenssl/tls_openssl.h') diff --git a/src/plugins/tlsopenssl/tls_openssl.h b/src/plugins/tlsopenssl/tls_openssl.h index 66e0b364cba..e392b9ae4f2 100644 --- a/src/plugins/tlsopenssl/tls_openssl.h +++ b/src/plugins/tlsopenssl/tls_openssl.h @@ -45,6 +45,9 @@ typedef struct openssl_main_ openssl_ctx_t ***ctx_pool; openssl_listen_ctx_t *lctx_pool; + /* API message ID base */ + u16 msg_id_base; + X509_STORE *cert_store; u8 *ciphers; int engine_init; @@ -69,6 +72,8 @@ int tls_async_openssl_callback (SSL * s, void *evt); void openssl_polling_start (ENGINE * engine); int openssl_engine_register (char *engine, char *alg); void openssl_async_node_enable_disable (u8 is_en); +clib_error_t *tls_openssl_api_init (vlib_main_t * vm); +int tls_openssl_set_ciphers (char *ciphers); /* * fd.io coding-style-patch-verification: ON -- cgit 1.2.3-korg