swanctl: Report the use of a PPK in --list-sas

If we later decide the PPK_ID would be helpful, printing this on a
separate line would probably make sense.
This commit is contained in:
Tobias Brunner 2018-07-27 13:14:40 +02:00
parent c4d2fdd915
commit 755985867e
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ CALLBACK(ike_sa, int,
}
printf("/%s", ike->get(ike, "prf-alg"));
printf("/%s", ike->get(ike, "dh-group"));
if (streq(ike->get(ike, "ppk"), "yes"))
{
printf("/PPK");
}
printf("\n");
}