]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
print header only on the first policy
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 19 Nov 2012 23:58:23 +0000 (00:58 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 19 Nov 2012 23:58:23 +0000 (00:58 +0100)
lib/x509/output.c

index 47945a9244c34b571ae800f7eac57d45b136c64c..6ac7c47949ee3a09cc0cc4071418f985f9893e11 100644 (file)
@@ -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<policy.qualifiers;j++)
                 {