aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tls-verify-peer
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-12-13 17:37:32 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-12-13 17:38:07 +0100
commitba9d8af01141a6d5d5b98a0e249c311814b844a6 (patch)
tree6b523c5b6361b56a67d7499b9b9fcf5e96d49b30 /tests/tls-verify-peer
parent6dcf633e6dde4c2af549f374de885038f90b7258 (diff)
test suite: ensure we haven't started speaking IMAP when the SSL/TLS handshake is aborted.
(Unless STARTTLS is used to upgrade the connection.)
Diffstat (limited to 'tests/tls-verify-peer')
-rw-r--r--tests/tls-verify-peer/t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tls-verify-peer/t b/tests/tls-verify-peer/t
index 17018a6..8cc098a 100644
--- a/tests/tls-verify-peer/t
+++ b/tests/tls-verify-peer/t
@@ -15,8 +15,9 @@ unverified_peer() {
[ -s "$TMPDIR/preverify" ] || error
! grep -Fvx "preverify=0" <"$TMPDIR/preverify" || error
- # make sure we didn't send any credentials
+ # make sure we didn't send any credentials or started speaking IMAP
! grep -E "^remote: C: .* (AUTHENTICATE|LOGIN) " <"$STDERR" || error
+ grep -Fx "remote: IMAP traffic (bytes): recv 0 sent 0" <"$STDERR" || error
}
verified_peer() {
local i u