tls: Add C API for TLS openssl to set engine
[vpp.git] / src / plugins / tlsopenssl / tls_openssl.api
1 /* Define TLS OpenSSL binary API to control the feature */
2
3 option version = "2.0.0";
4
5 define tls_openssl_set_engine {
6     /* Client identifier, set from api_main.my_client_index */
7     u32 client_index;
8
9     /* Arbitrary context, so client can match reply to request */
10     u32 context;
11
12     /* if async is enabled */
13     u32 async;
14
15     /* engine name */
16     u8 engine[64];
17
18     /* algorithm */
19     u8 algorithm[64];
20
21     /* cipher */
22     u8 ciphers[64];
23 };
24
25 define tls_openssl_set_engine_reply {
26     /* From the request */
27     u32 context;
28
29     /* Return value, zero means all OK */
30     i32 retval;
31 };