aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
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;