diff options
author | Ping Yu <ping.yu@intel.com> | 2019-08-19 07:01:17 -0400 |
---|---|---|
committer | Ping Yu <ping.yu@intel.com> | 2019-08-20 13:36:17 +0000 |
commit | be4d1aa2c58efa8287bca8795bc4a83cb448993a (patch) | |
tree | c726b2c3ce5ee0e98f88aa8db1d16ce1d6b9ee32 /src/plugins/tlsopenssl/tls_openssl.h | |
parent | e71748291171e53158e2d36d8f413fed1a137013 (diff) |
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 <ping.yu@intel.com>
Diffstat (limited to 'src/plugins/tlsopenssl/tls_openssl.h')
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |