[pisa-src] r2916 - trunk/community-operator/client/pisa-cert-info.c

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 12 Mar 2012 20:02:02 +0100

Author: biurrun
Date: Mon Mar 12 20:02:02 2012
New Revision: 2916

Log:
pisa-cert-info: improve one more variable name

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:52:13 
2012        (r2915)
+++ trunk/community-operator/client/pisa-cert-info.c    Mon Mar 12 20:02:02 
2012        (r2916)
@@ -51,7 +51,7 @@
 int print_cert_info(BIO *bp, X509 *x)
 {
     long version, serial;
-    int ret = 0, id, i, j, n;
+    int ret = 0, id, number_ext, i, j, n;
     char *s;
     X509_CINF *ci;
     ASN1_INTEGER *bs;
@@ -184,8 +184,8 @@
     BIO_printf(bp, "</table>\n");
     EVP_PKEY_free(publickey);
 
-    n = X509_get_ext_count(x);
-    if (n > 0) {
+    number_ext = X509_get_ext_count(x);
+    if (number_ext > 0) {
         BIO_printf(bp, "<h3><strong>@TR<<X509v3 extensions>></strong></h3>\n");
         BIO_printf(bp, "<table style=\"width: 90%%; margin-left: 2.5em; ");
         BIO_printf(bp, "text-align: left; font-size: 1em;\" border=\"0\" ");
@@ -194,7 +194,7 @@
         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++) {
+        for (i = 0; i < number_ext; i++) {
             ASN1_OBJECT *obj;
             ex  = X509_get_ext(x, i);
             topen(bp);
-- 
This is the pisa developer mailing list. Please also subscribe to the main pisa 
list at:
//www.freelists.org/list/pisa

Other related posts:

  • » [pisa-src] r2916 - trunk/community-operator/client/pisa-cert-info.c - Diego Biurrun