swanctl: Add support for PPKs
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user