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.api | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/plugins/tlsopenssl/tls_openssl.api (limited to 'src/plugins/tlsopenssl/tls_openssl.api') diff --git a/src/plugins/tlsopenssl/tls_openssl.api b/src/plugins/tlsopenssl/tls_openssl.api new file mode 100644 index 00000000000..7de77522c9c --- /dev/null +++ b/src/plugins/tlsopenssl/tls_openssl.api @@ -0,0 +1,31 @@ +/* Define TLS OpenSSL binary API to control the feature */ + +option version = "2.0.0"; + +define tls_openssl_set_engine { + /* Client identifier, set from api_main.my_client_index */ + u32 client_index; + + /* Arbitrary context, so client can match reply to request */ + u32 context; + + /* if async is enabled */ + u32 async; + + /* engine name */ + u8 engine[64]; + + /* algorithm */ + u8 algorithm[64]; + + /* cipher */ + u8 ciphers[64]; +}; + +define tls_openssl_set_engine_reply { + /* From the request */ + u32 context; + + /* Return value, zero means all OK */ + i32 retval; +}; -- cgit 1.2.3-korg