From: Dr. Stephen Henson Date: Tue, 6 Oct 2015 13:15:14 +0000 (+0100) Subject: Don't try and parse boolean type. X-Git-Tag: OpenSSL_1_0_1q~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0ba92ccde949582e498cb42bced205ec1c95a3c;p=oweals%2Fopenssl.git Don't try and parse boolean type. Reviewed-by: Rich Salz (cherry picked from commit e58c4d3cdde7a0a01df2884bfeec31a2b07be22d) --- diff --git a/apps/asn1pars.c b/apps/asn1pars.c index 11b0787594..0a6b990b50 100644 --- a/apps/asn1pars.c +++ b/apps/asn1pars.c @@ -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; }