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:
Johanna Amann 2016-04-26 12:30:28 -07:00
parent d93186881d
commit e9a87566ef
4 changed files with 18 additions and 1 deletions

View 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