CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2022/08/10 05:15:08

Modified files:
        lib/libcrypto/asn1: t_x509.c 

Log message:
Only print versions we know about

The version field of an X.509 Certificate is an enum

Version  ::=  INTEGER  {  v1(0), v2(1), v3(2)  }

Printing the version as l + 1 only really makes sense with 0 <= l <= 2.
Otherwise print a naked l while also indicating that it is an unknown
version.

ok jsing

Reply via email to