[openssl] master update

Dr. Paul Dale pauli at openssl.org
Tue Oct 20 07:28:12 UTC 2020


The branch master has been updated
       via  6be235a0927473a2fddad83dd30ce4474ae53880 (commit)
      from  1dc5128577ed983fab8d5b3e65c06dd7e12cf4dc (commit)


- Log -----------------------------------------------------------------
commit 6be235a0927473a2fddad83dd30ce4474ae53880
Author: Jacob Hoffman-Andrews <github at hoffman-andrews.com>
Date:   Mon Jul 13 15:04:04 2020 -0700

    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 at gmail.com>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/12434)

-----------------------------------------------------------------------

Summary of changes:
 apps/crl.c | 1 +
 1 file changed, 1 insertion(+)

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


More information about the openssl-commits mailing list