summaryrefslogtreecommitdiffstats
path: root/src/plugins/hs_apps/sapi/vpp_echo_common.c
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-09-13 10:20:15 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-10-09 01:11:11 +0000
commit82fc5fd447ec2b140f1d6a8641106361176f1b80 (patch)
tree5d3db8efde8dd0330df90a64e4f165364ad34ef6 /src/plugins/hs_apps/sapi/vpp_echo_common.c
parent79f89537c6fd3baeac03354a3381f42895fe2ca8 (diff)
hsa: use crypto_engine_type_t for TLS
Type: refactor This patch does the following conversions TLS_ENGINE_X -> CRYPTO_ENGINE_X tls_engine_type_t -> crypto_engine_t It does not change numbering of engines Change-Id: I872dfaec3a6713bf4229c84d1ffd98b8b2419995 Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/plugins/hs_apps/sapi/vpp_echo_common.c')
-rw-r--r--src/plugins/hs_apps/sapi/vpp_echo_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/hs_apps/sapi/vpp_echo_common.c b/src/plugins/hs_apps/sapi/vpp_echo_common.c
index dbe8d92661f..06ce45c66c9 100644
--- a/src/plugins/hs_apps/sapi/vpp_echo_common.c
+++ b/src/plugins/hs_apps/sapi/vpp_echo_common.c
@@ -487,9 +487,9 @@ u8 *
echo_format_crypto_engine (u8 * s, va_list * args)
{
u32 state = va_arg (*args, u32);
- if (state == TLS_ENGINE_MBEDTLS)
+ if (state == CRYPTO_ENGINE_MBEDTLS)
return format (s, "mbedtls");
- if (state == TLS_ENGINE_OPENSSL)
+ if (state == CRYPTO_ENGINE_OPENSSL)
return format (s, "openssl");
if (state == CRYPTO_ENGINE_PICOTLS)
return format (s, "picotls");
@@ -504,9 +504,9 @@ echo_unformat_crypto_engine (unformat_input_t * input, va_list * args)
{
u8 *a = va_arg (*args, u8 *);
if (unformat (input, "mbedtls"))
- *a = TLS_ENGINE_MBEDTLS;
+ *a = CRYPTO_ENGINE_MBEDTLS;
else if (unformat (input, "openssl"))
- *a = TLS_ENGINE_OPENSSL;
+ *a = CRYPTO_ENGINE_OPENSSL;
else if (unformat (input, "picotls"))
*a = CRYPTO_ENGINE_PICOTLS;
else if (unformat (input, "vpp"))