diff options
author | Florin Coras <fcoras@cisco.com> | 2021-08-11 14:55:49 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-08-12 14:47:31 +0000 |
commit | e191d76d248ebbb022533d518b447b7df4efd371 (patch) | |
tree | d4953f922582e078aadf7148f7e4300e40d85001 /src/vcl/vppcom.c | |
parent | 8c7f5c809fecec80cdfdcae6cab1592defddc931 (diff) |
session vcl: cert key add/del with socket api
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I70791285cbf427479d2dcbf70ffdce2253add2fb
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 62aeff636b8..c718c2fcc97 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -4388,22 +4388,18 @@ int vppcom_add_cert_key_pair (vppcom_cert_key_pair_t *ckpair) { if (vcm->cfg.vpp_app_socket_api) - { - clib_warning ("not supported"); - return VPPCOM_EINVAL; - } - return vcl_bapi_add_cert_key_pair (ckpair); + return vcl_sapi_add_cert_key_pair (ckpair); + else + return vcl_bapi_add_cert_key_pair (ckpair); } int vppcom_del_cert_key_pair (uint32_t ckpair_index) { if (vcm->cfg.vpp_app_socket_api) - { - clib_warning ("not supported"); - return VPPCOM_EINVAL; - } - return vcl_bapi_del_cert_key_pair (ckpair_index); + return vcl_sapi_del_cert_key_pair (ckpair_index); + else + return vcl_bapi_del_cert_key_pair (ckpair_index); } /* |