diff options
author | tb <> | 2022-08-10 11:15:08 +0000 |
---|---|---|
committer | tb <> | 2022-08-10 11:15:08 +0000 |
commit | 01dc31478a68a6f6aa29ba0b9b0cc8e3ce64dba3 (patch) | |
tree | 08909fc6f12e70a0a853f695304765f6377ab7c3 /src/lib/libssl/tls_lib.c | |
parent | 3eee6c6c9c6bff990c7c1142c7a5e5e160a3cc0c (diff) | |
download | openbsd-01dc31478a68a6f6aa29ba0b9b0cc8e3ce64dba3.tar.gz openbsd-01dc31478a68a6f6aa29ba0b9b0cc8e3ce64dba3.tar.bz2 openbsd-01dc31478a68a6f6aa29ba0b9b0cc8e3ce64dba3.zip |
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
Diffstat (limited to 'src/lib/libssl/tls_lib.c')
0 files changed, 0 insertions, 0 deletions