swanctl: Add support for PPKs
authorTobias Brunner <tobias@strongswan.org>
Thu, 26 Jul 2018 15:44:12 +0000 (17:44 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 Sep 2018 16:03:01 +0000 (18:03 +0200)
src/swanctl/commands/load_creds.c

index 15ef2f1..63a3bdc 100644 (file)
@@ -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;
        }