Initial support for Certificate Policies extension: print out works but setting
[oweals/openssl.git] / crypto / asn1 / t_crl.c
index d36b0c23afc782322e4bf51ee900a189e0d042bf..eb0ab2e323339c5e9c7e04f778d515c7401ef03b 100644 (file)
@@ -167,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);
 }