summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-09-13 23:15:56 -0700
committerMatus Fabian <matfabia@cisco.com>2016-09-13 23:15:56 -0700
commit698b952c310caf95ca9040a435a42a9e339e2a9f (patch)
tree2029a964a8f318c5c063d52ea5a8940934489bb2 /vnet
parentdd9310389d96be94aa48f3169fd307c01168a7ec (diff)
VPP-404: IKEv2 profile auth rsa-sig cert-file fixed
Change-Id: Iaeca4a86eb96096d6840d38c16d60641e9179662 Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ipsec/ikev2.c1
-rw-r--r--vnet/vnet/ipsec/ikev2_cli.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/vnet/vnet/ipsec/ikev2.c b/vnet/vnet/ipsec/ikev2.c
index af9d99dc44c..5a6c3674477 100644
--- a/vnet/vnet/ipsec/ikev2.c
+++ b/vnet/vnet/ipsec/ikev2.c
@@ -2055,6 +2055,7 @@ ikev2_set_profile_auth (vlib_main_t * vm, u8 * name, u8 auth_method,
if (auth_method == IKEV2_AUTH_METHOD_RSA_SIG)
{
+ vec_add1 (p->auth.data, 0);
if (p->auth.key)
EVP_PKEY_free (p->auth.key);
p->auth.key = ikev2_load_cert_file (auth_data);
diff --git a/vnet/vnet/ipsec/ikev2_cli.c b/vnet/vnet/ipsec/ikev2_cli.c
index 6b2937fb3c2..1369c187775 100644
--- a/vnet/vnet/ipsec/ikev2_cli.c
+++ b/vnet/vnet/ipsec/ikev2_cli.c
@@ -435,7 +435,7 @@ set_ikev2_local_key_command_fn (vlib_main_t * vm,
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
- if (unformat (line_input, "%v", &data))
+ if (unformat (line_input, "%s", &data))
{
r = ikev2_set_local_key (vm, data);
goto done;