summaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/tls_openssl_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tlsopenssl/tls_openssl_test.c')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl_test.c10
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);