diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-10-06 14:15:14 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-10-06 15:14:55 +0100 |
commit | e58c4d3cdde7a0a01df2884bfeec31a2b07be22d (patch) | |
tree | 3f9712a528f94d60143fb29a5fed920fbc2a7435 /apps | |
parent | f4bd5de54459cc5f873807c7ed1f1b04b6e8d7e3 (diff) | |
download | openssl-e58c4d3cdde7a0a01df2884bfeec31a2b07be22d.tar.gz |
Don't try and parse boolean type.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/asn1pars.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/asn1pars.c b/apps/asn1pars.c index 89afd5b15b..574b03f559 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -279,9 +279,9 @@ int asn1parse_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; } |