From: Nikos Mavrogiannopoulos Date: Mon, 19 Nov 2012 23:58:23 +0000 (+0100) Subject: print header only on the first policy X-Git-Tag: gnutls_3_1_5~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb0c78137d11a396caee206f7d453b2c75364cc6;p=thirdparty%2Fgnutls.git print header only on the first policy --- diff --git a/lib/x509/output.c b/lib/x509/output.c index 47945a9244..6ac7c47949 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -976,7 +976,8 @@ print_extensions (gnutls_buffer_st * str, const char *prefix, int type, break; } - addf (str, "%s\t\tCertificate Policies (%s):\n", prefix, critical ? _("critical") : _("not critical")); + if (x==0) addf (str, "%s\t\tCertificate Policies (%s):\n", prefix, critical ? _("critical") : _("not critical")); + addf (str, "%s\t\t\t%s\n", prefix, policy.oid); for (j=0;j