diff options
author | Ping Yu <ping.yu@intel.com> | 2019-08-22 13:43:00 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-09-02 18:24:41 +0000 |
commit | dd0cc9ec3df81485f19fc6b1126d0b4307bf9fa4 (patch) | |
tree | 7f374e3107370595168683b2b53e0fa4eedd34d7 /src/plugins/tlsopenssl/tls_openssl_test.c | |
parent | be2c2a82d817decc3b8e58239e8c6828f349b97b (diff) |
tls: some rework based on TLS openssl C API
Type: fix
Change-Id: I5d0ac1fe6a6770ab8b3a9c366d10387718391199
Signed-off-by: Ping Yu <ping.yu@intel.com>
Diffstat (limited to 'src/plugins/tlsopenssl/tls_openssl_test.c')
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl_test.c b/src/plugins/tlsopenssl/tls_openssl_test.c index 1c810c9a7f8..aa64fb86bbb 100644 --- a/src/plugins/tlsopenssl/tls_openssl_test.c +++ b/src/plugins/tlsopenssl/tls_openssl_test.c @@ -127,24 +127,24 @@ api_tls_openssl_set_engine (vat_main_t * vam) engine_alg = format (0, "ALL"); else { - for (int i = 0; i < strnlen ((char *) engine_alg, 64); i++) + for (int i = 0; i < strnlen ((char *) engine_alg, 63); i++) engine_alg[i] = toupper (engine_alg[i]); } /* Construct the API message */ M (TLS_OPENSSL_SET_ENGINE, mp); - mp->async = async; + mp->async_enable = async; clib_memcpy_fast (mp->engine, engine_name, - strnlen ((const char *) engine_name, 64)); + strnlen ((const char *) engine_name, 63)); clib_memcpy_fast (mp->algorithm, engine_alg, - strnlen ((const char *) engine_alg, 64)); + strnlen ((const char *) engine_alg, 63)); if (ciphers) clib_memcpy_fast (mp->ciphers, ciphers, - strnlen ((const char *) ciphers, 64)); + strnlen ((const char *) ciphers, 63)); /* send it... */ S (mp); |