From c66d58b1353f52f11e159f71618fdcbab2273706 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 18 Jan 2021 09:30:31 +0100 Subject: [PATCH] Filter for changing certificates of testssl.sh's server --- t/61_diff_testsslsh.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/61_diff_testsslsh.t b/t/61_diff_testsslsh.t index f7afe79..694feef 100755 --- a/t/61_diff_testsslsh.t +++ b/t/61_diff_testsslsh.t @@ -42,12 +42,16 @@ $diff = diff $socket_csv, $master_socket_csv; $socket_csv=`cat tmp.csv`; $master_socket_csv=`cat $master_socket_csv`; -# Filter, for now only HTTP_clock_skew +# Filter for changes that are allowed to occur $socket_csv=~ s/HTTP_clock_skew.*\n//g; $master_socket_csv=~ s/HTTP_clock_skew.*\n//g; +# DROWN +$socket_csv=~ s/censys.io.*\n//g; +$master_socket_csv=~ s/censys.io.*\n//g; + + # Compare the differences to the master file -- and print differences if there were detected. -# Filtering takes place later, so if there will be a difference detected it'll also show HTTP_clock_skew :-( # cmp_ok($socket_csv, "eq", $master_socket_csv, "Check whether CSV output matches master file from $uri") or diag ("\n%s\n", "$diff");