From e66ec6f703df761bc972788b9fa3c9ec3b8f5b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 4 Jan 2006 03:00:49 +0000 Subject: [PATCH] (print_f): print if there is a friendly name and if there is a private key git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16454 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/hxtool.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/hx509/hxtool.c b/lib/hx509/hxtool.c index db3c3c13c..db368df6e 100644 --- a/lib/hx509/hxtool.c +++ b/lib/hx509/hxtool.c @@ -421,7 +421,16 @@ print_f(void *ctx, hx509_cert cert) char *str; int ret; - printf("cert: %d\n", s->counter++); + printf("cert: %d", s->counter++); + { + const char *fn = hx509_cert_get_friendly_name(cert); + if (fn) + printf(" friendly name: %s", fn); + if (_hx509_cert_private_key(cert)) + printf(" (have private key)"); + + } + printf("\n"); ret = hx509_cert_issuer(cert, &name); hx509_name_to_string(name, &str);