]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/asn1pars.c
Don't try and parse boolean type.
[thirdparty/openssl.git] / apps / asn1pars.c
index 3c9da5c03628fd91483d12097160b12ead4f39e8..e3751f42353d6fbebe41bfb0c52854e617ea1c13 100644 (file)
@@ -313,9 +313,9 @@ int MAIN(int argc, char **argv)
             }
             typ = ASN1_TYPE_get(at);
             if ((typ == V_ASN1_OBJECT)
+                || (typ == V_ASN1_BOOLEAN)
                 || (typ == V_ASN1_NULL)) {
-                BIO_printf(bio_err, "Can't parse %s type\n",
-                           typ == V_ASN1_NULL ? "NULL" : "OBJECT");
+                BIO_printf(bio_err, "Can't parse %s type\n", ASN1_tag2str(typ));
                 ERR_print_errors(bio_err);
                 goto end;
             }