[openssl/openssl] ca857d: apps/opt: refactor input format parsing
Matthias St. Pierre
noreply at github.com
Fri Jun 9 07:52:10 UTC 2023
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: ca857d7332d042142ced23b37fdd1d52dbf152b9
https://github.com/openssl/openssl/commit/ca857d7332d042142ced23b37fdd1d52dbf152b9
Author: Dr. Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M apps/include/opt.h
M apps/lib/opt.c
Log Message:
-----------
apps/opt: refactor input format parsing
- split OPT_FMT_PEMDER flag into OPT_FMT_PEM and OPT_FMT_DER
- add OPT_FMT_B64 option (`-inform b64`)
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7320)
Commit: 34df960a75aeb85b97e5ac70465275c2057ee1a3
https://github.com/openssl/openssl/commit/34df960a75aeb85b97e5ac70465275c2057ee1a3
Author: Dr. Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M apps/asn1parse.c
M apps/include/opt.h
M doc/man1/openssl-asn1parse.pod.in
Log Message:
-----------
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 at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7320)
Commit: 0ef024a492212b6cac30d62485a3b29632af2ee2
https://github.com/openssl/openssl/commit/0ef024a492212b6cac30d62485a3b29632af2ee2
Author: Matthias St. Pierre <matthias.st.pierre at ncp-e.com>
Date: 2023-06-09 (Fri, 09 Jun 2023)
Changed paths:
M util/find-doc-nits
Log Message:
-----------
util/find-doc-nits: extend regex to match new OPT_INFORM A
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7320)
Compare: https://github.com/openssl/openssl/compare/dc19f2f6223d...0ef024a49221
More information about the openssl-commits
mailing list