git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
193e3ac
)
Fix tls variables order, and testsuite case 5401 (cutthrough) for changes that went...
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 6 May 2012 17:53:34 +0000
(18:53 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Mon, 4 Jun 2012 13:57:03 +0000
(14:57 +0100)
src/src/expand.c
patch
|
blob
|
history
test/log/5401
patch
|
blob
|
history
test/scripts/5400-cutthrough/5401
patch
|
blob
|
history
test/stderr/5401
patch
|
blob
|
history
test/stdout/5401
patch
|
blob
|
history
diff --git
a/src/src/expand.c
b/src/src/expand.c
index f3bd3f162c2a6c8dd50d65e4fc9475797baae1cb..1642c67b708178757e9bda28e927275397b0194b 100644
(file)
--- a/
src/src/expand.c
+++ b/
src/src/expand.c
@@
-616,10
+616,6
@@
static var_entry var_table[] = {
{ "tls_bits", vtype_int, &tls_in.bits },
{ "tls_certificate_verified", vtype_int, &tls_in.certificate_verified },
{ "tls_cipher", vtype_stringptr, &tls_in.cipher },
{ "tls_bits", vtype_int, &tls_in.bits },
{ "tls_certificate_verified", vtype_int, &tls_in.certificate_verified },
{ "tls_cipher", vtype_stringptr, &tls_in.cipher },
- { "tls_peerdn", vtype_stringptr, &tls_in.peerdn },
-#if defined(SUPPORT_TLS) && !defined(USE_GNUTLS)
- { "tls_sni", vtype_stringptr, &tls_in.sni },
-#endif
{ "tls_out_bits", vtype_int, &tls_out.bits },
{ "tls_out_certificate_verified", vtype_int,&tls_out.certificate_verified },
{ "tls_out_cipher", vtype_stringptr, &tls_out.cipher },
{ "tls_out_bits", vtype_int, &tls_out.bits },
{ "tls_out_certificate_verified", vtype_int,&tls_out.certificate_verified },
{ "tls_out_cipher", vtype_stringptr, &tls_out.cipher },
@@
-627,6
+623,10
@@
static var_entry var_table[] = {
#if defined(SUPPORT_TLS) && !defined(USE_GNUTLS)
{ "tls_out_sni", vtype_stringptr, &tls_out.sni },
#endif
#if defined(SUPPORT_TLS) && !defined(USE_GNUTLS)
{ "tls_out_sni", vtype_stringptr, &tls_out.sni },
#endif
+ { "tls_peerdn", vtype_stringptr, &tls_in.peerdn }, /* mind the alphabetical order! */
+#if defined(SUPPORT_TLS) && !defined(USE_GNUTLS)
+ { "tls_sni", vtype_stringptr, &tls_in.sni }, /* mind the alphabetical order! */
+#endif
{ "tod_bsdinbox", vtype_todbsdin, NULL },
{ "tod_epoch", vtype_tode, NULL },
{ "tod_bsdinbox", vtype_todbsdin, NULL },
{ "tod_epoch", vtype_tode, NULL },
diff --git
a/test/log/5401
b/test/log/5401
index 6d38a372fcbd573470e8cc87f5cd955aed73fd97..0924678725a35aac6bc9ecc0da970ee0db816bdd 100644
(file)
--- a/
test/log/5401
+++ b/
test/log/5401
@@
-1,3
+1,3
@@
-1999-03-02 09:44:33 10HmaX-0005vi-00 >> userx@domain.com R=all T=smtp
+1999-03-02 09:44:33 10HmaX-0005vi-00 >> userx@domain.com R=all T=smtp
H=127.0.0.1 [127.0.0.1]
1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
1999-03-02 09:44:33 10HmaX-0005vi-00 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
1999-03-02 09:44:33 10HmaX-0005vi-00 Completed
diff --git
a/test/scripts/5400-cutthrough/5401
b/test/scripts/5400-cutthrough/5401
index 6104a7a7d99e0a8f384e4b265c2870a14ce9c1a4..42a90f4cb105cf8622f0039ffa9e953e1cf5659c 100644
(file)
--- a/
test/scripts/5400-cutthrough/5401
+++ b/
test/scripts/5400-cutthrough/5401
@@
-3,7
+3,7
@@
need_ipv4
#
server PORT_S
220 ESMTP
#
server PORT_S
220 ESMTP
-
HE
LO
+
EH
LO
250 OK
MAIL FROM:
250 Sender OK
250 OK
MAIL FROM:
250 Sender OK
diff --git
a/test/stderr/5401
b/test/stderr/5401
index dc02c054feff9c762c1a4a157b12878d62295ee6..5db13fc410085c20a0883bb337573c4fe361c085 100644
(file)
--- a/
test/stderr/5401
+++ b/
test/stderr/5401
@@
-12,7
+12,7
@@
accept: condition test succeeded in ACL "acl_rcpt"
----------- start cutthrough setup ------------
Connecting to 127.0.0.1 [127.0.0.1]:1224 from ip4.ip4.ip4.ip4 ... connected
SMTP<< 220 ESMTP
----------- start cutthrough setup ------------
Connecting to 127.0.0.1 [127.0.0.1]:1224 from ip4.ip4.ip4.ip4 ... connected
SMTP<< 220 ESMTP
- SMTP>>
HE
LO myhost.test.ex
+ SMTP>>
EH
LO myhost.test.ex
SMTP<< 250 OK
SMTP>> MAIL FROM:<CALLER@myhost.test.ex>
SMTP<< 250 Sender OK
SMTP<< 250 OK
SMTP>> MAIL FROM:<CALLER@myhost.test.ex>
SMTP<< 250 Sender OK
@@
-23,12
+23,14
@@
processing "accept"
accept: condition test succeeded in inline ACL
SMTP>> DATA
SMTP<< 354 Send data
accept: condition test succeeded in inline ACL
SMTP>> DATA
SMTP<< 354 Send data
+ SMTP>>(nl)
SMTP>> .
SMTP<< 250 OK
SMTP>> .
SMTP<< 250 OK
------------ cutthrough close ------------
LOG: MAIN
LOG: MAIN
- >> userx@domain.com R=all T=smtp
+ >> userx@domain.com R=all T=smtp
H=127.0.0.1 [127.0.0.1]
created log directory TESTSUITE/spool/log
created log directory TESTSUITE/spool/log
+ SMTP>> QUIT
+----------- cutthrough shutdown ------------
LOG: MAIN
<= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
LOG: MAIN
LOG: MAIN
<= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
LOG: MAIN
diff --git
a/test/stdout/5401
b/test/stdout/5401
index 79b7d73e278cb19274f748300fa2799fc9c044d5..2bfb3525918aac9f5e3dd64e2c45dd1a07027539 100644
(file)
--- a/
test/stdout/5401
+++ b/
test/stdout/5401
@@
-13,7
+13,7
@@
Listening on port 1224 ...
Connection request from [ip4.ip4.ip4.ip4]
220 ESMTP
Listening on port 1224 ...
Connection request from [ip4.ip4.ip4.ip4]
220 ESMTP
-
HE
LO myhost.test.ex
+
EH
LO myhost.test.ex
250 OK
MAIL FROM:<CALLER@myhost.test.ex>
250 Sender OK
250 OK
MAIL FROM:<CALLER@myhost.test.ex>
250 Sender OK
@@
-32,4
+32,6
@@
Date: Tue, 2 Mar 1999 09:44:33 +0000
.
250 OK
.
250 OK
-Unexpected EOF read from client
+QUIT
+250 OK
+End of script