From: Tobias Brunner Date: Fri, 27 Jul 2018 11:14:40 +0000 (+0200) Subject: swanctl: Report the use of a PPK in --list-sas X-Git-Tag: 5.7.0rc1~19^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755985867e8d3b808361bf2eedcffdc1fef597c5;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/swanctl/commands/list_sas.c b/src/swanctl/commands/list_sas.c index 28602fc659..232f03cc2a 100644 --- a/src/swanctl/commands/list_sas.c +++ b/src/swanctl/commands/list_sas.c @@ -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"); }