summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2019-11-15 11:19:05 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2019-11-15 11:24:46 +0000
commited1c2748fe762dead160d6c951493808b53934d2 (patch)
treec8d92af4e33f116c69e792a5d1b98a95d45a1238 /test/runtest
parente4307860d847c4679adb4735698a31065a392752 (diff)
Testsuite: fix Recieved: header munging for TLS info
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/runtest b/test/runtest
index 82105abe8..1215e6165 100755
--- a/test/runtest
+++ b/test/runtest
@@ -554,8 +554,8 @@ RESET_AFTER_EXTRA_LINE_READ:
# element (and no _WITH); insert a spurious "RSA".
# Also in $tls_X_cipher_std reporting.
- s/^\s+by .+ with .+ \K tls TLS_.*?([^_]+)_WITH.+$/(TLS1.x:ke-$1-AES256-SHAnnn:xxx)/;
- s/^\s+by .+ with .+ \K tls TLS_.+$/(TLS1.x:ke-RSA-AES256-SHAnnn:xxx)/;
+ s/^\s+by \S+ with .+ \K \(TLS1(?:\.[0-3])?\) tls TLS_.*?([^_]+)_WITH.+$/(TLS1.x:ke-$1-AES256-SHAnnn:xxx)/;
+ s/^\s+by \S+ with .+ \K \(TLS1(?:\.[0-3])?\) tls TLS_.+$/(TLS1.x:ke-RSA-AES256-SHAnnn:xxx)/;
s/ cipher_ TLS_.*?([^_]+)_WITH.+$/ cipher_ TLS1.x:ke_$1_WITH_ci_mac/;
s/ cipher_ TLS_.*$/ cipher_ TLS1.x:ke_RSA_WITH_ci_mac/;
@@ -655,8 +655,8 @@ RESET_AFTER_EXTRA_LINE_READ:
s/\b(ECDHE-(RSA|ECDSA)-AES256-SHA|DHE-RSA-AES256-SHA256)\b/ke-$2-AES256-SHAnnn/g;
# Separate reporting of TLS version
- s/ver: TLS1(\.[123])?$/ver: TLS1.x/;
- s/ \(TLS1(\.[123])?\) / (TLS1.x) /;
+ s/ver: TLS1(\.[0-3])?$/ver: TLS1.x/;
+ s/ \(TLS1(\.[0-3])?\) / (TLS1.x) /;
# GnuTLS library error message changes
s/(No certificate was found|Certificate is required)/The peer did not send any certificate/g;
@@ -1769,9 +1769,6 @@ $munges =
s! DN="[^,"]*\K,!/!;
',
'rejectlog' => 's/ X=TLS\S+ / X=TLS_proto_and_cipher /',
- 'mail' => 's/^\s+by .+ with .+ \K tls TLS_.+$/(TLS_proto_and_cipher)/;
- s/ \(TLS[^)]*\)/ (TLS_proto_and_cipher)/;
- ',
},
'debug_pid' =>