Allow asn1parse to print out VISIBLESTRING and some code needed for certificate
[openssl.git] / crypto / asn1 / t_req.c
index 7df749a48fdf5e3e6d970940ebcff61de306f261..bc05ff6c0ee2f831864104d57322ae900e4c0058 100644 (file)
@@ -89,7 +89,8 @@ X509_REQ *x;
        {
        unsigned long l;
        int i,n;
-       char *s,*neg;
+       char *s;
+       const char *neg;
        X509_REQ_INFO *ri;
        EVP_PKEY *pkey;
        STACK *sk;
@@ -138,6 +139,8 @@ X509_REQ *x;
 #endif
                BIO_printf(bp,"%12sUnknown Public Key:\n","");
 
+       EVP_PKEY_free(pkey);
+
        /* may not be */
        sprintf(str,"%8sAttributes:\n","");
        if (BIO_puts(bp,str) <= 0) goto err;
@@ -165,7 +168,7 @@ X509_REQ *x;
                        sprintf(str,"%12s","");
                        if (BIO_puts(bp,str) <= 0) goto err;
                        if ((j=i2a_ASN1_OBJECT(bp,a->object)) > 0)
-
+                       {
                        if (a->set)
                                {
                                ii=0;
@@ -181,6 +184,7 @@ get_next:
                                type=t->type;
                                bs=t->value.bit_string;
                                }
+                       }
                        for (j=25-j; j>0; j--)
                                if (BIO_write(bp," ",1) != 1) goto err;
                        if (BIO_puts(bp,":") <= 0) goto err;