swanctl: Add support for PPKs

This commit is contained in:
Tobias Brunner
2018-09-10 18:03:01 +02:00
parent 1ec9382880
commit 3703dff2aa
+2 -1
View File
@@ -665,6 +665,7 @@ static bool load_secret(load_ctx_t *ctx, char *section)
"xauth", "xauth",
"ntlm", "ntlm",
"ike", "ike",
"ppk",
"private", "private",
"rsa", "rsa",
"ecdsa", "ecdsa",
@@ -688,7 +689,7 @@ static bool load_secret(load_ctx_t *ctx, char *section)
return FALSE; return FALSE;
} }
if (!streq(type, "eap") && !streq(type, "xauth") && !streq(type, "ntlm") && if (!streq(type, "eap") && !streq(type, "xauth") && !streq(type, "ntlm") &&
!streq(type, "ike")) !streq(type, "ike") && !streq(type, "ppk"))
{ /* skip non-shared secrets */ { /* skip non-shared secrets */
return TRUE; return TRUE;
} }