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

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

Author: biurrun
Date: Mon Mar 12 15:48:06 2012
New Revision: 2907

Log:
pisa-cert-info: Remove commented-out code.

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 15:47:05 
2012        (r2906)
+++ trunk/community-operator/client/pisa-cert-info.c    Mon Mar 12 15:48:06 
2012        (r2907)
@@ -32,7 +32,6 @@
 
 if ((b=BIO_new(BIO_s_file())) == NULL)
         {
-//              X509err(X509_F_X509_PRINT_FP,ERR_R_BUF_LIB);
         return(0);
         }
 BIO_set_fp(b,fp,BIO_NOCLOSE);
@@ -44,7 +43,6 @@
 {
 long l;
 int ret=0,i,j,n;
-//      char *m=NULL;
 char *s;
 X509_CINF *ci;
         ASN1_INTEGER *bs;
@@ -54,8 +52,6 @@
 ASN1_STRING *str=NULL;
 
 ci=x->cert_info;
-//if (BIO_write(bp,"Certificate:<br>\n<table>\n",25) <= 0) goto err;
-//if (BIO_write(bp,"    Data:\n",10) <= 0) goto err;
 BIO_printf(bp,"<h3><strong>@TR<<Certification Data>></strong></h3>\n");
 BIO_printf(bp,"<table style=\"width: 90%%; margin-left: 2.5em; text-align: 
left; font-size: 0.8em;\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" 
summary=\"@TR<<Certification>>\">\n");
 
@@ -108,7 +104,6 @@
 t3(bp);
 
 t1(bp);
-//if (BIO_write(bp,"\n        Validity\n",18) <= 0) goto err;
 if (BIO_write(bp,"Valid Not Before",16) <= 0) goto err;
 t2(bp);
 if (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err;
@@ -126,8 +121,6 @@
 if (!X509_NAME_print(bp,X509_get_subject_name(x),16)) goto err;
 t3(bp);
 
-//if (BIO_write(bp,"\n        Subject Public Key Info:\n",34) <= 0)
-//      goto err;
 i=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) goto err;
@@ -136,7 +129,6 @@
 if (pkey == NULL)
 {
 BIO_printf(bp,"%12sUnable to load Public Key\n","");
-//              ERR_print_errors(bp);
 }
 else
 #ifndef NO_RSA
@@ -173,18 +165,11 @@
                 ASN1_OBJECT *obj;
                 ex=X509_get_ext(x,i);
                 t1(bp);
-                //if (BIO_printf(bp,"%12s","") <= 0) goto err;
                 obj=X509_EXTENSION_get_object(ex);
                 i2a_ASN1_OBJECT(bp,obj);
                 j=X509_EXTENSION_get_critical(ex);
                 t2(bp);
                 if (BIO_printf(bp,"%1s",j?"critical":"") <= 0) goto err;
-        //      if(!X509V3_EXT_print(bp, ex, 0,0))
-        //              {
-        //                      //BIO_printf(bp, "%16s", "");
-        //              M_ASN1_OCTET_STRING_print(bp,ex->value);
-        //              }
-                //if (BIO_write(bp,"\n",1) <= 0) goto err;
                 t3(bp);
                 }
         }
@@ -207,7 +192,6 @@
         ret=1;
 err:
         if (str != NULL) ASN1_STRING_free(str);
-//      if (m != NULL) Free(m);
 t3(bp);
 BIO_write(bp,"\n</table>",9);
         return(ret);
-- 
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] r2907 - trunk/community-operator/client/pisa-cert-info.c - Diego Biurrun