Author: biurrun Date: Mon Mar 12 19:28:14 2012 New Revision: 2914 Log: pisa-cert-info: Use more sensible variable names. Modified: trunk/community-operator/client/pisa-cert-info.c Modified: trunk/community-operator/client/pisa-cert-info.c ============================================================================== --- trunk/community-operator/client/pisa-cert-info.c Mon Mar 12 19:21:25 2012 (r2913) +++ trunk/community-operator/client/pisa-cert-info.c Mon Mar 12 19:28:14 2012 (r2914) @@ -50,7 +50,7 @@ int print_cert_info(BIO *bp, X509 *x) { - long l; + long version, serial; int ret = 0, i, j, n; char *s; X509_CINF *ci; @@ -69,9 +69,9 @@ BIO_printf(bp, "<tr><td><table style=\"margin-left: 0.2em; "); BIO_printf(bp, "text-align: left;\" border=\"0\" cellpadding=\"1\" "); BIO_printf(bp, "cellspacing= \"8\" summary=\"@TR<<Certification>>\">\n"); - l = X509_get_version(x); + version = X509_get_version(x); if (BIO_printf(bp, "<tr><td>Version</td><td>%lu (0x%lx)</td></tr>\n", - l + 1, l) <= 0) { + version + 1, version) <= 0) { goto err; } @@ -83,14 +83,15 @@ bs = X509_get_serialNumber(x); if (bs->length <= 4) { - l = ASN1_INTEGER_get(bs); - if (l < 0) { - l = -l; + serial = ASN1_INTEGER_get(bs); + if (serial < 0) { + serial = -serial; negative = "-"; } else { negative = ""; } - if (BIO_printf(bp, " %s%lu (%s0x%lx)", negative, l, negative, l) <= 0) { + if (BIO_printf(bp, " %s%lu (%s0x%lx)", + negative, serial, negative, serial) <= 0) { goto err; } } else { -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa