X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fplugins%2Ftlsopenssl%2Ftls_openssl_test.c;h=aa64fb86bbb61f695ed646651323ce769f671e3b;hp=1c810c9a7f8643a435382934b25db4da832c33ad;hb=dd0cc9ec3;hpb=be2c2a82d817decc3b8e58239e8c6828f349b97b 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);