diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2020-07-13 15:04:04 -0700 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-10-20 17:27:42 +1000 |
commit | 6be235a0927473a2fddad83dd30ce4474ae53880 (patch) | |
tree | 111ebd0a20555dd454a9f77323d060c656cf8d1a /apps | |
parent | 1dc5128577ed983fab8d5b3e65c06dd7e12cf4dc (diff) |
Prefix crlNumber output with 0x.
When the crlNumber field contains only 0-9 digits, the output is
ambiguous as to what base it's in, which can be confusing. Adding this
prefix makes it explicit that it's in hex.
CLA: trivial
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12434)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/crl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/crl.c b/apps/crl.c index d417642cce..4cb1bcc2c3 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -288,6 +288,7 @@ int crl_main(int argc, char **argv) crlnum = X509_CRL_get_ext_d2i(x, NID_crl_number, NULL, NULL); BIO_printf(bio_out, "crlNumber="); if (crlnum) { + BIO_puts(bio_out, "0x"); i2a_ASN1_INTEGER(bio_out, crlnum); ASN1_INTEGER_free(crlnum); } else |