From 755985867e8d3b808361bf2eedcffdc1fef597c5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 27 Jul 2018 13:14:40 +0200 Subject: [PATCH] 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. --- src/swanctl/commands/list_sas.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); } -- 2.47.2