aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/crypto/crypto.h
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-03-25 09:04:41 -0700
committerDamjan Marion <dmarion@me.com>2019-03-26 12:37:49 +0000
commit1469d54fcfe2d78fa45d40fd0c850955a2c29da7 (patch)
tree8490d9b1ae7c06042515a7fb89b852a4b9edf163 /src/vnet/crypto/crypto.h
parent7297f47088274b0759dbef5d2c19d564d32521e6 (diff)
crypto: add set crypto handler CLI
Change-Id: I40124f8d6e529256b1ccc6eb78dda9c5119b8951 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/crypto/crypto.h')
-rw-r--r--src/vnet/crypto/crypto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/crypto/crypto.h b/src/vnet/crypto/crypto.h
index 4ce4d254725..ad6286ccfcb 100644
--- a/src/vnet/crypto/crypto.h
+++ b/src/vnet/crypto/crypto.h
@@ -140,6 +140,8 @@ typedef struct
vnet_crypto_ops_handler_t **ops_handlers;
vnet_crypto_op_type_data_t opt_data[VNET_CRYPTO_N_OP_TYPES];
vnet_crypto_engine_t *engines;
+ uword *engine_index_by_name;
+ uword *ops_handler_index_by_name;
} vnet_crypto_main_t;
extern vnet_crypto_main_t crypto_main;
@@ -150,6 +152,9 @@ u32 vnet_crypto_submit_ops (vlib_main_t * vm, vnet_crypto_op_t ** jobs,
u32 vnet_crypto_process_ops (vlib_main_t * vm, vnet_crypto_op_t ops[],
u32 n_ops);
+
+int vnet_crypto_set_handler (char *ops_handler_name, char *engine);
+
format_function_t format_vnet_crypto_alg;
format_function_t format_vnet_crypto_engine;
format_function_t format_vnet_crypto_op;