]> git.ipfire.org Git - thirdparty/openssl.git/commit
apps/asn1parse: improve RFC7462 compliance
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Wed, 26 Sep 2018 06:37:01 +0000 (08:37 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 9 Jun 2023 07:47:34 +0000 (09:47 +0200)
commit34df960a75aeb85b97e5ac70465275c2057ee1a3
tree8ae3ce275585e7f79563dd8faac4605c221705da
parentca857d7332d042142ced23b37fdd1d52dbf152b9
apps/asn1parse: improve RFC7462 compliance

The asn1parse command now supports three different input formats:

     openssl asn1parse -inform PEM|DER|B64

       PEM: base64 encoded data enclosed by PEM markers (RFC7462)
       DER: der encoded binary data
       B64: raw base64 encoded data

The PEM input format is the default format. It is equivalent
to the former `-strictpem` option which is now marked obsolete
and kept for backward compatibility only.

The B64 is equivalent to the former default input format of the
asn1parse command (without `-strictpem`)

Fixes #7317

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7320)
apps/asn1parse.c
apps/include/opt.h
doc/man1/openssl-asn1parse.pod.in