Author: biurrun Date: Mon Mar 12 19:52:13 2012 New Revision: 2915 Log: pisa-cert-info: Rename one more variable; break another long line. 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:28:14 2012 (r2914) +++ trunk/community-operator/client/pisa-cert-info.c Mon Mar 12 19:52:13 2012 (r2915) @@ -51,7 +51,7 @@ int print_cert_info(BIO *bp, X509 *x) { long version, serial; - int ret = 0, i, j, n; + int ret = 0, id, i, j, n; char *s; X509_CINF *ci; ASN1_INTEGER *bs; @@ -109,9 +109,9 @@ } tclose(bp); - i = OBJ_obj2nid(ci->signature->algorithm); + id = OBJ_obj2nid(ci->signature->algorithm); if (BIO_printf(bp, "<tr><td>Signature Algorithm</td><td> %s</td></tr>\n", - (i == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(i)) <= 0) { + (id == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(id)) <= 0) { goto err; } @@ -155,9 +155,9 @@ } tclose(bp); - i = OBJ_obj2nid(ci->key->algor->algorithm); + id = OBJ_obj2nid(ci->key->algor->algorithm); if (BIO_printf(bp, "<tr><td>Public Key Algorithm</td><td>%s<br>\n", - (i == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(i)) <= 0) { + (id == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(id)) <= 0) { goto err; } @@ -187,8 +187,13 @@ n = X509_get_ext_count(x); if (n > 0) { BIO_printf(bp, "<h3><strong>@TR<<X509v3 extensions>></strong></h3>\n"); - BIO_printf(bp, "<table style=\"width: 90%%; margin-left: 2.5em; text-align: left; font-size: 1em;\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" summary=\"@TR<<Certification>>\">" ); - BIO_printf(bp, "<tr><td><table style=\"margin-left: 0.2em; text-align: left;\" border=\"0\" cellpadding=\"1\" cellspacing=\"8\" summary=\"@TR<<Certification>>\">\n "); + BIO_printf(bp, "<table style=\"width: 90%%; margin-left: 2.5em; "); + BIO_printf(bp, "text-align: left; font-size: 1em;\" border=\"0\" "); + BIO_printf(bp, "cellpadding=\"2\" cellspacing=\"1\" "); + BIO_printf(bp, "summary=\"@TR<<Certification>>\">" ); + 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 "); for (i = 0; i < n; i++) { ASN1_OBJECT *obj; ex = X509_get_ext(x, i); @@ -204,9 +209,9 @@ } } - i = OBJ_obj2nid(x->sig_alg->algorithm); + id = OBJ_obj2nid(x->sig_alg->algorithm); if (BIO_printf(bp, "<tr><td>Signature Algorithm</td><td>%s<br>\n", - (i == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(i)) <= 0) { + (id == NID_undef) ? "UNKNOWN" : OBJ_nid2ln(id)) <= 0) { goto err; } -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa