summaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/tls_openssl.api
diff options
context:
space:
mode:
authorPing Yu <ping.yu@intel.com>2019-08-19 07:01:17 -0400
committerPing Yu <ping.yu@intel.com>2019-08-20 13:36:17 +0000
commitbe4d1aa2c58efa8287bca8795bc4a83cb448993a (patch)
treec726b2c3ce5ee0e98f88aa8db1d16ce1d6b9ee32 /src/plugins/tlsopenssl/tls_openssl.api
parente71748291171e53158e2d36d8f413fed1a137013 (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.api')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.api31
1 files changed, 31 insertions, 0 deletions
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;
+};