mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Fix parsing of x509 pre-y2k dates
There was a bug in the new parsing code, introduced in
708ede22c6
which parses validity times
incorrectly if they are before the year 2000. What happens in this case
is that the 2-digit year will be interpreted to be in the 21st century
(1999 will be parsed as 2099, e.g.).
This commit is contained in:
parent
d93186881d
commit
e9a87566ef
4 changed files with 18 additions and 1 deletions
5
testing/btest/scripts/base/files/x509/1999.test
Normal file
5
testing/btest/scripts/base/files/x509/1999.test
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Test that the timestamp of a pre-y-2000 certificate is correctly parsed
|
||||
|
||||
# @TEST-EXEC: bro -r $TRACES/tls/telesec.pcap
|
||||
# @TEST-EXEC: btest-diff x509.log
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue