From: Simon Josefsson Date: Thu, 22 Feb 2007 16:32:17 +0000 (+0000) Subject: Minor tweaks to proxy output. X-Git-Tag: gnutls_1_7_8~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=faae9c1b81ded1d904988c92b916d003c623f5cf;p=thirdparty%2Fgnutls.git Minor tweaks to proxy output. --- diff --git a/lib/x509/output.c b/lib/x509/output.c index 0f99aa36cd..f262e8a5f8 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -110,15 +110,21 @@ print_proxy (gnutls_string * str, gnutls_x509_crt_t cert) if (pathlen >= 0) addf (str, _("\t\t\tPath Length Constraint: %d\n"), pathlen); - adds (str, _("\t\t\tPolicy Language: ")); + addf (str, _("\t\t\tPolicy Language: %s"), policyLanguage); if (strcmp (policyLanguage, "1.3.6.1.5.5.7.21.1") == 0) - addf (str, "id-ppl-inheritALL\n"); + adds (str, " (id-ppl-inheritALL)\n"); else if (strcmp (policyLanguage, "1.3.6.1.5.5.7.21.2") == 0) - addf (str, "id-ppl-independent\n"); + adds (str, " (id-ppl-independent)\n"); else - addf (str, "%s\n", policyLanguage); + adds (str, "\n"); if (npolicy) - addf (str, _("\t\t\tPolicy Language: %.*s\n"), npolicy, policy); + { + adds (str, _("\t\t\tPolicy:\n\t\t\t\tASCII: ")); + asciiprint (str, policy, npolicy); + adds (str, _("\n\t\t\t\tHexdump: ")); + hexprint (str, policy, npolicy); + adds (str, "\n"); + } } static void @@ -811,7 +817,6 @@ print_cert (gnutls_string * str, gnutls_x509_crt_t cert, int notsigned) { char *buffer; size_t extlen = 0; - size_t j; addf (str, _("\t\tUnknown extension %s (%s):\n"), oid, critical ? _("critical") : _("not critical")); @@ -1247,7 +1252,6 @@ print_crl (gnutls_string *str, char s[42]; size_t max = sizeof (s); struct tm t; - size_t i; addf (str, _("\t\tSerial Number (hex): ")); hexprint (str, serial, serial_size);