Initial support for Certificate Policies extension: print out works but setting
[oweals/openssl.git] / crypto / asn1 / t_crl.c
index 5eafa18e4739be9e22afbfee9d58f662e1f2c170..eb0ab2e323339c5e9c7e04f778d515c7401ef03b 100644 (file)
@@ -90,7 +90,7 @@ X509_CRL *x;
         }
 #endif
 
-void X509_CRL_print(out, x)
+int X509_CRL_print(out, x)
 BIO *out;
 X509_CRL *x;
 {
@@ -153,6 +153,7 @@ X509_CRL *x;
        }
        BIO_write(out,"\n",1);
 
+       return 1;
 
 }
 
@@ -166,8 +167,10 @@ X509_EXTENSION *ex;
        obj=X509_EXTENSION_get_object(ex);
        i2a_ASN1_OBJECT(out,obj);
        j=X509_EXTENSION_get_critical(ex);
-       BIO_printf(out, ": %s\n%16s", j ? "critical":"","");
-       if(!X509V3_EXT_print(out, ex, 0))
-                                ASN1_OCTET_STRING_print(out,ex->value);
+       BIO_printf(out, ": %s\n", j ? "critical":"","");
+       if(!X509V3_EXT_print(out, ex, 0, 16)) {
+               BIO_printf(out, "%16s", "");
+               ASN1_OCTET_STRING_print(out,ex->value);
+       }
        BIO_write(out,"\n",1);
 }