From: Andreas Steffen Date: Wed, 22 Jul 2015 15:46:15 +0000 (+0200) Subject: Improved legibility of swanctl CRL listings X-Git-Tag: 5.3.3dr1^0 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=2096d54198141735cab76cd25f1a3bd062acc9e7 Improved legibility of swanctl CRL listings --- diff --git a/src/swanctl/commands/list_certs.c b/src/swanctl/commands/list_certs.c index ecb6528..167f8d8 100644 --- a/src/swanctl/commands/list_certs.c +++ b/src/swanctl/commands/list_certs.c @@ -2,6 +2,9 @@ * Copyright (C) 2014 Martin Willi * Copyright (C) 2014 revosec AG * + * Copyright (C) 2015 Andreas Steffen + * HSR Hochschule fuer Technik Rapperswil + * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your @@ -388,7 +391,7 @@ static void print_crl(crl_t *crl) chunk = chunk_skip_zero(chunk); localtime_r(&ts, &tm); strftime(buf, sizeof(buf), "%F %T", &tm); - printf(" %#B %N %s\n", &chunk, crl_reason_names, reason, buf); + printf(" %#B: %s, %N\n", &chunk, buf, crl_reason_names, reason); count++; } enumerator->destroy(enumerator);