Latest openssl-0.9.7a:

A call of 'openssl x509 -text -in blah.pem' gets an
unsightly print of the X509v3 extensions.
Name and value of a v3 extension puts in the same
column without indent.
I made a cosmetic change in crypto/x509v3/v3_prn.c:

Index: v3_prn.c
===================================================================
RCS file: /home/cvs/CVS/openssl/crypto/x509v3/v3_prn.c,v
retrieving revision 1.3
diff -c -w -r1.3 v3_prn.c
*** v3_prn.c    4 Feb 2003 12:50:19 -0000       1.3
--- v3_prn.c    3 Mar 2003 12:49:43 -0000
***************
*** 184,190 ****
                j=X509_EXTENSION_get_critical(ex);
                if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
                        return 0;
!               if(!X509V3_EXT_print(bp, ex, flag, 12))
                        {
                        BIO_printf(bp, "%*s", indent + 4, "");
                        M_ASN1_OCTET_STRING_print(bp,ex->value);
--- 184,190 ----
                j=X509_EXTENSION_get_critical(ex);
                if (BIO_printf(bp,": %s\n",j?"critical":"","") <= 0)
                        return 0;
!               if(!X509V3_EXT_print(bp, ex, flag, indent + 4))
                        {
                        BIO_printf(bp, "%*s", indent + 4, "");
                        M_ASN1_OCTET_STRING_print(bp,ex->value);

with kind regards
-- 
Bernd Matthes                   Gemplus mids GmbH --
Senior Software Engineer           formerly Celo Communications GmbH
Dipl.-Ing.(FH)                  R&D Center Germany
--------------------------------------------------------------------
Real programmers don't comment their code. It was hard to
write, it should be hard to read. (L. Kimmeringer in dtj)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to