summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-01-28 14:21:19 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-01-28 14:21:19 +0000
commit2a27d0e4e61c2eecbb9557e8ad5d0a55077ee4ff (patch)
tree541499460deec89410ad8f28f59935e1d5331329
parentdcd037631f32cdaed817d40ac086f4d933f51bd0 (diff)
Testsuite: testcase for DKIM bug 2029
l---------test/confs/45061
-rw-r--r--test/confs/4520 (renamed from test/confs/4503)2
l---------test/confs/4521 (renamed from test/confs/4509)0
l---------test/confs/4522 (renamed from test/confs/4510)0
-rw-r--r--test/log/45069
-rw-r--r--test/log/4520 (renamed from test/log/4503)0
-rw-r--r--test/log/4521 (renamed from test/log/4509)0
-rw-r--r--test/log/4522 (renamed from test/log/4510)0
-rw-r--r--test/scripts/4500-DKIM/4506105
-rw-r--r--test/scripts/4500-DKIM/4520 (renamed from test/scripts/4500-DKIM/4503)0
-rw-r--r--test/scripts/4500-DKIM/4521 (renamed from test/scripts/4500-DKIM/4509)2
-rw-r--r--test/scripts/4500-DKIM/4522 (renamed from test/scripts/4500-DKIM/4510)2
-rw-r--r--test/src/client.c2
-rw-r--r--test/stderr/4520 (renamed from test/stderr/4503)0
-rw-r--r--test/stderr/4521 (renamed from test/stderr/4509)0
-rw-r--r--test/stderr/4522 (renamed from test/stderr/4510)0
-rw-r--r--test/stdout/4522 (renamed from test/stdout/4510)0
17 files changed, 119 insertions, 4 deletions
diff --git a/test/confs/4506 b/test/confs/4506
new file mode 120000
index 000000000..c4f73bacd
--- /dev/null
+++ b/test/confs/4506
@@ -0,0 +1 @@
+4500 \ No newline at end of file
diff --git a/test/confs/4503 b/test/confs/4520
index cbd82d8f5..70454c33c 100644
--- a/test/confs/4503
+++ b/test/confs/4520
@@ -1,4 +1,4 @@
-# Exim test configuration 4503
+# Exim test configuration 4520
SERVER=
OPT=
diff --git a/test/confs/4509 b/test/confs/4521
index 1bb987150..1bb987150 120000
--- a/test/confs/4509
+++ b/test/confs/4521
diff --git a/test/confs/4510 b/test/confs/4522
index 1bb987150..1bb987150 120000
--- a/test/confs/4510
+++ b/test/confs/4522
diff --git a/test/log/4506 b/test/log/4506
new file mode 100644
index 000000000..d50bbe1f4
--- /dev/null
+++ b/test/log/4506
@@ -0,0 +1,9 @@
+
+******** SERVER ********
+1999-03-02 09:44:33 exim x.yz daemon started: pid=pppp, no queue runs, listening for SMTP on port 1225
+1999-03-02 09:44:33 10HmaX-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=0 [invalid - signature tag missing or invalid]
+1999-03-02 09:44:33 10HmaX-0005vi-00 signer: test.ex bits: 0
+1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss id=qwerty1234@disco-zombie.net
+1999-03-02 09:44:33 10HmaY-0005vi-00 DKIM: d=test.ex s=sel c=simple/simple a=rsa-sha1 b=1024 [verification failed - body hash mismatch (body probably modified in transit)]
+1999-03-02 09:44:33 10HmaY-0005vi-00 signer: test.ex bits: 1024
+1999-03-02 09:44:33 10HmaY-0005vi-00 <= CALLER@bloggs.com H=(xxx) [127.0.0.1] P=smtp S=sss id=qwerty1234@disco-zombie.net
diff --git a/test/log/4503 b/test/log/4520
index e9736fd6f..e9736fd6f 100644
--- a/test/log/4503
+++ b/test/log/4520
diff --git a/test/log/4509 b/test/log/4521
index 052569fa9..052569fa9 100644
--- a/test/log/4509
+++ b/test/log/4521
diff --git a/test/log/4510 b/test/log/4522
index c0b414b02..c0b414b02 100644
--- a/test/log/4510
+++ b/test/log/4522
diff --git a/test/scripts/4500-DKIM/4506 b/test/scripts/4500-DKIM/4506
new file mode 100644
index 000000000..b2d53e8fc
--- /dev/null
+++ b/test/scripts/4500-DKIM/4506
@@ -0,0 +1,105 @@
+# DKIM verify, errors
+#
+exim -d-all+acl -DSERVER=server -bd -oX PORT_D
+****
+#
+# This should fail verify (missing header hash in sig header)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=;
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+
+This is a simple test.
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+# This should fail verify (missing body hash in sig header)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; b=
+ PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
+ 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
+ 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+
+This is a simple test.
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+# This should fail verify (missing body)
+# - sha1, 1024b
+# Mail original in aux-fixed/4500.msg1.txt
+# Sig generated by: perl aux-fixed/dkim/sign.pl --method=simple/simple < aux-fixed/4500.msg1.txt
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@bloggs.com>
+??? 250
+RCPT TO:<a@test.ex>
+??? 250
+DATA
+??? 354
+DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=test.ex; h=from:to
+ :date:message-id:subject; s=sel; bh=OB9dZVu7+5/ufs3TH9leIcEpXSo=; b=
+ PeUA8iBGfStWv+9/BBKkvCEYj/AVMl4e9k+AqWOXKyuEUfHxqAnV+sPnOejpmvT8
+ 41kuM4u0bICvK371YvB/yO61vtliRhyqU76Y2e55p2uvMADb3UyDhLyzpco4+yBo
+ 1w0AuIxu0VU4TK8UmOLyCw/1hxrh1DcEInbEMEKJ7kI=
+From: mrgus@text.ex
+To: bakawolf@yahoo.com
+Date: Thu, 19 Nov 2015 17:00:07 -0700
+Message-ID: <qwerty1234@disco-zombie.net>
+Subject: simple test
+.
+??? 250
+QUIT
+??? 221
+****
+#
+#
+#
+#
+#
+killdaemon
+no_stdout_check
+no_msglog_check
diff --git a/test/scripts/4500-DKIM/4503 b/test/scripts/4500-DKIM/4520
index 6efe3545a..6efe3545a 100644
--- a/test/scripts/4500-DKIM/4503
+++ b/test/scripts/4500-DKIM/4520
diff --git a/test/scripts/4500-DKIM/4509 b/test/scripts/4500-DKIM/4521
index 3447fa10b..7b341521f 100644
--- a/test/scripts/4500-DKIM/4509
+++ b/test/scripts/4500-DKIM/4521
@@ -1,4 +1,4 @@
-# DKIM signing, with CHUNKING
+# DKIM signing, with CHUNKING, stdin
#
exim -bd -DSERVER=server -oX PORT_S
****
diff --git a/test/scripts/4500-DKIM/4510 b/test/scripts/4500-DKIM/4522
index 938b10e61..e8924b84e 100644
--- a/test/scripts/4500-DKIM/4510
+++ b/test/scripts/4500-DKIM/4522
@@ -1,4 +1,4 @@
-# DKIM signing, with CHUNKING
+# DKIM signing, with CHUNKING, smtp/tcp
#
exim -bd -DSERVER=server -oX PORT_S
****
diff --git a/test/src/client.c b/test/src/client.c
index c1ac6b7f1..f34cf784c 100644
--- a/test/src/client.c
+++ b/test/src/client.c
@@ -939,7 +939,7 @@ while (fgets(CS outbuffer, sizeof(outbuffer), stdin) != NULL)
}
else
{
- printf("Enexpected EOF read\n");
+ printf("Unexpected EOF read\n");
close(sock);
exit(80);
}
diff --git a/test/stderr/4503 b/test/stderr/4520
index c2a856bb1..c2a856bb1 100644
--- a/test/stderr/4503
+++ b/test/stderr/4520
diff --git a/test/stderr/4509 b/test/stderr/4521
index 045fadc9b..045fadc9b 100644
--- a/test/stderr/4509
+++ b/test/stderr/4521
diff --git a/test/stderr/4510 b/test/stderr/4522
index 49a0fd875..49a0fd875 100644
--- a/test/stderr/4510
+++ b/test/stderr/4522
diff --git a/test/stdout/4510 b/test/stdout/4522
index 0067c9ff0..0067c9ff0 100644
--- a/test/stdout/4510
+++ b/test/stdout/4522