mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Change x509 not_before/not_after to not be based on local timezone
Not the not_before/not_after fields output GMT based times. Also adds a new btest diff canonifier which only removes the first timestamp in a line. Fixes GH-4521
This commit is contained in:
parent
19f2621f7b
commit
e797e15d38
5 changed files with 16 additions and 5 deletions
5
testing/scripts/diff-remove-first-timestamp
Executable file
5
testing/scripts/diff-remove-first-timestamp
Executable file
|
@ -0,0 +1,5 @@
|
|||
#! /usr/bin/env bash
|
||||
#
|
||||
# Replace the first timestamp in a line with XXXs (including the #start/end markers in logs).
|
||||
|
||||
sed -E -e 's/(^|[^0-9])([0-9]{9,10}\.[0-9]{1,8})/\1XXXXXXXXXX.XXXXXX/' -e 's/^ *#(open|close).(19|20)..-..-..-..-..-..$/#\1 XXXX-XX-XX-XX-XX-XX/'
|
Loading…
Add table
Add a link
Reference in a new issue