From 3703dff2aaa47660567d0ca1c29199ed32b07194 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 26 Jul 2018 17:44:12 +0200 Subject: [PATCH] swanctl: Add support for PPKs --- src/swanctl/commands/load_creds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/swanctl/commands/load_creds.c b/src/swanctl/commands/load_creds.c index 15ef2f151..63a3bdcf8 100644 --- a/src/swanctl/commands/load_creds.c +++ b/src/swanctl/commands/load_creds.c @@ -665,6 +665,7 @@ static bool load_secret(load_ctx_t *ctx, char *section) "xauth", "ntlm", "ike", + "ppk", "private", "rsa", "ecdsa", @@ -688,7 +689,7 @@ static bool load_secret(load_ctx_t *ctx, char *section) return FALSE; } if (!streq(type, "eap") && !streq(type, "xauth") && !streq(type, "ntlm") && - !streq(type, "ike")) + !streq(type, "ike") && !streq(type, "ppk")) { /* skip non-shared secrets */ return TRUE; }