Steve Holme
e10a26a9d6
tests: Added IMAP DIGEST-MD5 authentication test
2013-11-10 16:53:58 +00:00
Steve Holme
7b68b58bc0
tests: Added IMAP NTLM authentication test
2013-11-10 16:44:19 +00:00
Steve Holme
2d5455feac
tests: Added IMAP CRAM-MD5 authentication test
2013-11-10 16:42:21 +00:00
Steve Holme
ac05c80f19
test819: Fixed expected authentication text from commit 76f924131c
2013-11-10 16:24:38 +00:00
Steve Holme
460adfef93
ftpserver.pl: Reworked custom reply handling code
...
1) To fix issues with IMAP custom replies
2) So initial space is not required in IMAP display text
3) To be more readable and understandable
2013-11-10 15:18:04 +00:00
Steve Holme
c876f6ae6d
ftpserver.pl: Reworked unrecognised command responses
...
As the IMAP regex could fail and $1 would not contain the command id
updated the unrecognised command response to be more generic and
realistic (like those used in the command handlers).
Additionally updated the POP3, SMTP and FTP responses.
2013-11-10 10:20:50 +00:00
Steve Holme
f49276bfcb
ftpserver.pl: Fixed processing of IMAP authentication strings
2013-11-10 10:08:32 +00:00
Steve Holme
cf7008670b
Revert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"
...
This reverts commit 558034ab70
as it appears to break the auto
builds. More thought is required for this!
2013-11-06 12:31:46 +00:00
Steve Holme
558034ab70
ftpserver.pl: Corrected logic from commit 27b7b1062f
2013-11-06 09:52:24 +00:00
Steve Holme
27b7b1062f
ftpserver.pl: Fixed IMAP cmdid being sent on custom responses
2013-11-06 07:19:01 +00:00
Steve Holme
af82661dbd
tests: Added IMAP login authentication test
2013-11-05 23:48:16 +00:00
Steve Holme
76f924131c
tests: Added IMAP plain authentication test
2013-11-05 23:48:01 +00:00
Steve Holme
aa61e14dc1
tests: Added test for IMAP NOOP command
2013-11-03 21:36:46 +00:00
Steve Holme
a84a09ad0b
tests: Added test for IMAP COPY command
2013-11-03 21:36:11 +00:00
Steve Holme
66b8557aff
tests: Disable IMAP CLOSE and EXPUNGE command tests
...
This is temporary until curl supports either multiple custom commands
or post-quote commands in IMAP.
2013-11-03 20:39:21 +00:00
Steve Holme
63cac69c2a
tests: Added tests for IMAP CLOSE and EXPUNGE commands
2013-11-03 20:37:34 +00:00
Steve Holme
5b315a273e
base64: Fixed compilation warnings when using Curl_base64_decode()
...
curl_sasl.c:294: warning: dereferencing type-punned pointer will break
strict-aliasing rules
getpart.c:201: warning: dereferencing type-punned pointer will break
strict-aliasing rules
2013-11-03 12:25:07 +00:00
Steve Holme
9a1755264f
getpart: Fixed base64 encoded parts following commit e17c1b25bc
2013-11-02 17:00:00 +00:00
Kamil Dudka
8179354c2f
tests: use proper padding in NTLM responses
2013-10-30 20:38:01 +00:00
Steve Holme
e17c1b25bc
base64: Added basic validation to base64 input string when decoding
...
A base64 string should be a multiple of 4 characters in length, not
contain any more than 2 padding characters and only contain padding
characters at the end of string. For example: Y3VybA==
Strings such as the following are considered invalid:
Y= - Invalid length
Y== - Invalid length
Y=== - More than two padding characters
Y=x= - Padding character contained within string
2013-10-30 07:31:22 +00:00
Daniel Stenberg
d44b014271
FTP: make the data connection work when going through proxy
...
This is a regression since the switch to always-multi internally
c43127414d
.
Test 1316 was modified since we now clearly call the Curl_client_write()
function when doing the LIST transfer part and then the
handler->protocol says FTP and ftpc.transfertype is 'A' which implies
text converting even though that the response is initially a HTTP
CONNECT response in this case.
2013-10-26 23:33:06 +02:00
Steve Holme
e4670a1029
tests: Tidy up of SMTP and POP3 tests
...
Corrected line endings, RFC references and standardised on user names
and passwords used in the tests.
2013-10-26 13:50:08 +01:00
Steve Holme
6e3613e6e6
test907: Corrected DIGEST-MD5 response given in commit 820ed48a00
...
As the URI, which is contained within the DIGEST-MD5 response, is
constructed from the service and realm, the encoded message differs
from that generated under POP3.
2013-10-26 00:24:45 +01:00
Steve Holme
d24b7953c2
tests: Added SMTP OAUTH2 authentication with initial response test
2013-10-25 19:44:03 +01:00
Steve Holme
13db74ffc3
tests: Added SMTP NTLM authentication with initial response test
2013-10-25 19:40:23 +01:00
Steve Holme
98905aa2c5
tests: Added SMTP OAUTH2 authentication test
2013-10-25 19:34:05 +01:00
Steve Holme
820ed48a00
tests: Added SMTP DIGEST-MD5 authentication test
2013-10-25 19:31:51 +01:00
Steve Holme
973cc22529
tests: Regrouped SMTP authentication tests
2013-10-25 19:30:52 +01:00
Steve Holme
78aee26be6
ftpserver.pl: Added support for empty pop3 authentication data
2013-10-23 22:19:42 +01:00
Steve Holme
58bd0148fb
tests: Added POP3 OAUTH2 authentication test
2013-10-23 22:12:04 +01:00
Steve Holme
ca5c5be3e4
tests: Added empty response support to custom replies
...
...and fixed up test869 as DIGEST-MD transcript is as follows:
S: Challenge
C: Authentication String
S: Continue Response
C: Empty String
2013-10-23 22:05:22 +01:00
Steve Holme
1be69159f3
tests: Added POP3 DIGEST-MD5 authentication test
2013-10-23 18:30:00 +01:00
Daniel Stenberg
626f8a85f0
test1240: verify 867b52a7ac
(glob ranges with text to the right)
2013-10-22 00:10:16 +02:00
Steve Holme
dead10b1b8
ftpserver.pl: Fixed syntax error from commit 5b31b38c27
2013-10-20 00:30:03 +01:00
Steve Holme
41d820d2c3
test866: Fixed user response from commit 7f7fbe7fbd
2013-10-19 21:43:20 +01:00
Steve Holme
5b31b38c27
ftpserver.pl: Fixed processing of POP3 authentication strings
...
...and corrected response when check fails from 500 to -ERR.
2013-10-19 20:39:18 +01:00
Steve Holme
39f4e4fafa
tests: Added POP3 NTLM authentication test
2013-10-19 13:17:25 +01:00
Steve Holme
587811c0a6
tests: Added POP3 CRAM-MD5 authentication test
2013-10-19 12:57:25 +01:00
Steve Holme
7f7fbe7fbd
tests: Added POP3 login authentication test
2013-10-19 12:42:25 +01:00
Steve Holme
9b1eb2b421
tests: Added POP3 plain authentication test
2013-10-19 12:31:55 +01:00
Steve Holme
1034aa6680
tests: Added POP3 APOP authentication test
2013-10-19 12:20:00 +01:00
Steve Holme
4be0af7f74
ftpserver.pl: Added support for APOP POP3 authentication
2013-10-19 10:38:19 +01:00
Steve Holme
72f850571d
tests: Added POP3 RSET test
2013-10-19 00:10:29 +01:00
Steve Holme
4d49ffe165
test906: Fixed failing test on some platforms
...
Bug: http://sourceforge.net/p/curl/bugs/1291
Reported-by: David Walser
2013-10-15 21:31:14 +01:00
Daniel Stenberg
f0f95c97f7
test1239: verify 4cd444e01a
and the simulated 304 response
2013-10-07 14:42:21 +02:00
Steve Holme
ca995010d0
tests: Fixed typos from commit 25a0c96a49
2013-09-29 20:32:23 +01:00
Steve Holme
25a0c96a49
tests: Updated email addresses in SMTP tests following recent changes
2013-09-29 16:48:02 +01:00
Steve Holme
a8b606b1a6
test909: Removed custom EHLO response after recent changes
...
...as it is no longer required following capability and authentication
changes and is now causing problems following commit 49341628b5
as
the test number is obtained from the client address in the EHLO.
2013-09-29 16:25:11 +01:00
Steve Holme
20a99a45c0
ftpserver.pl: Fixed compilation error from commit 49341628b5
2013-09-29 13:13:13 +01:00
Steve Holme
49341628b5
ftpserver.pl: Moved specifying the test number from the RCPT address
...
...to the client address as this frees the RCPT strings to contain
just an email address and by passing the test number into curl as the
client address remains consistent with POP3 and IMAP tests as they are
specified in the URL.
2013-09-29 10:02:00 +01:00
Steve Holme
ab7e6afd44
ftpserver.pl: Added unwanted argument check to SMTP DATA command handler
2013-09-29 09:25:23 +01:00
Steve Holme
14d8209adc
test906: Fixed type-2 response
2013-09-23 07:10:25 +01:00
Steve Holme
a942d8ff5b
test915: Corrected test number from commit 22bccb0eda
2013-09-23 00:19:56 +01:00
Steve Holme
1695c67818
test906: Fixed type-1 message not handled error
...
...from commit f81d1e1666
due to copy paste error.
2013-09-23 00:15:37 +01:00
Steve Holme
f81d1e1666
tests: Added SMTP AUTH NTLM test
2013-09-22 20:53:29 +01:00
Steve Holme
b71ed1fb3d
tests: Added SMTP multiple and invalid --mail-rcpt test
2013-09-22 20:25:32 +01:00
Steve Holme
86ccfaa3fd
tests: Added SMTP multiple --mail-rcpt test
2013-09-22 20:23:27 +01:00
Steve Holme
3b69462fc0
tests: Added SMTP invalid --mail-rcpt test
2013-09-22 20:12:20 +01:00
Steve Holme
22bccb0eda
tests: Regrouping of SMTP tests
2013-09-22 20:09:57 +01:00
Benoit Sigoure
4f591b9148
test1112: Increase the timeout from 7s to 16s
...
As someone reported on the mailing list a while back, the hard-coded
arbitrary timeout of 7s in test 1112 is not sufficient in some build
environments. At Arista Networks we build and test curl as part of our
automated build system, and we've run into this timeout 170 times so
far. Our build servers are typically quite busy building and testing a
lot of code in parallel, so despite being beefy machines with 32 cores
and 128GB of RAM we still hit this 7s timeout regularly.
URL: http://curl.haxx.se/mail/lib-2010-02/0200.html
2013-09-22 18:23:09 +02:00
Steve Holme
52cefc8cd7
tests: Fixed smtp rcpt to addresses
2013-09-22 15:14:26 +01:00
Steve Holme
8880f84e1a
ftpserver.pl: Expanded the SMTP RCPT handler to validate TO addresses
...
RCPT_smtp() will now check for a correctly formatted TO address which
allows for invalid recipient addresses to be added.
2013-09-22 15:05:43 +01:00
Steve Holme
9d4a8c7936
ftpserver.pl: Added cURL SMTP server detection to HELO command handler
...
As curl will send a HELO command after an negative EHLO response, added
the same detection from commit b07709f741
to the HELO handler to
ensure the test server is identified correctly and an upload isn't
performed.
2013-09-22 13:21:15 +01:00
Steve Holme
fd8dc21fd0
ftpserver.pl: Corrected response code for successful RCPT command
2013-09-22 12:59:28 +01:00
Steve Holme
8ec6486d05
ftpserver.pl: Moved invalid RCPT TO: address detection to RCPT handler
...
Rather than detecting the TO address as missing in the DATA handler,
moved the detection to the RCPT command handler where an error response
can be generated.
2013-09-22 11:03:18 +01:00
Steve Holme
b07709f741
ftpserver.pl: Moved cURL SMTP server detection into EHLO command handler
...
Moved the special SMTP server detection code from the DATA command
handler, which happens further down the operation chain after EHLO,
MAIL and RCPT commands, to the EHLO command as it is the first command
to be generated by a SMTP operation as well as containing the special
"verifiedserver" string from the URL.
This not only makes it easier and quicker to detect but also means that
cURL doesn't need to specify "verifiedserver" as --mail-from and
--mail-rcpt arguments.
More importantly, this also makes the upcoming verification changes to
the RCPT handler easier to implement.
2013-09-21 20:49:23 +01:00
Daniel Stenberg
34df869f99
test1415: adjusted to work for 32bit time_t
...
The libcurl date parser returns INT_MAX for all dates > 2037 so this
test is now made to use 2037 instead of 2038 to work the same for both
32bit and 64bit time_t systems.
2013-09-21 13:46:42 -05:00
Steve Holme
3f04d48495
tests: Reworked existing SMTP tests to be single recipient based
...
...in preparation of upcoming multiple recipient tests.
2013-09-21 19:44:09 +01:00
Steve Holme
517b8e2290
ftpserver.pl: Corrected SMTP QUIT response to be more realistic
2013-09-20 23:08:28 +01:00
Steve Holme
eecb0e969f
ftpserver.pl: Moved SMTP RCPT response text into command handler
2013-09-20 21:25:48 +01:00
Steve Holme
bd7d56ec71
tests: Added SMTP invalid --mail-from test
2013-09-20 07:09:39 +01:00
Steve Holme
89d320c2fd
tests: Updated SMTP AUTH tests to use the new AUTH directive
...
...rather than specify a customised EHLO response.
2013-09-19 20:29:59 +01:00
Steve Holme
b809bafb0c
tests: Corrected test913 as the QUIT response is received
2013-09-19 20:13:08 +01:00
Steve Holme
3b6a1681dc
tests: Added SMTP large message SIZE test
2013-09-19 18:17:11 +01:00
Steve Holme
9300bb826d
ftpserver.pl: Updated email regex from commit 98f7ca7e97
...
...to not be as strict as it was rejecting valid numeric email
addresses.
2013-09-19 12:44:27 +01:00
Steve Holme
dfe7ee1429
tests: Fixed smtp mail from addresses
2013-09-19 07:19:25 +01:00
Steve Holme
841103c776
ftpserver.pl: Standardised CAPA and AUTH responses
2013-09-18 19:38:26 +01:00
Steve Holme
8d2335ca23
ftpserver.pl: Corrected POP3 QUIT reply to be more realistic
2013-09-18 19:37:03 +01:00
Steve Holme
04064e89c1
runtests.pl: Fixed syntax error in commit c873375123
...
Possible unintended interpolation in string at line 796
2013-09-18 19:32:20 +01:00
Steve Holme
c873375123
runtests.pl: Fixed smtp mail from address
...
Following changes to ftpserver.pl fixed the mail from address to be a
correctly formatted address otherwise the server response will be 501
Invalid address.
2013-09-18 18:04:26 +01:00
Steve Holme
62d232c131
ftpserver.pl: Fixed syntax error in commit 98f7ca7e97
...
Can't modify constant item in scalar assignment line 779, near "0;"
2013-09-18 12:58:34 +01:00
Steve Holme
98f7ca7e97
ftpserver.pl: Expanded the SMTP MAIL handler to validate messages
...
MAIl_smtp() will now check for a correctly formatted FROM address as
well as the optional SIZE parameter comparing it against the server
capability when specified.
2013-09-18 07:23:32 +01:00
YAMADA Yasuharu
4cfbb201c4
cookies: add expiration
...
Implement: Expired Cookies These following situation, curl removes
cookie(s) from struct CookieInfo if the cookie expired.
- Curl_cookie_add()
- Curl_cookie_getlist()
- cookie_output()
2013-09-17 23:25:56 +02:00
Steve Holme
dc016567ce
ftpserver.pl: Corrected response code for successful MAIL command
2013-09-17 22:10:17 +01:00
Steve Holme
96b68c57ce
ftpserver.pl: Moved SMTP MAIL handler into own function
2013-09-17 22:09:30 +01:00
Steve Holme
8f5336a2fa
tests: Fixed test 1406 following recent changes in ftpserver.pl
...
By default the mail server doesn't send the SIZE capability but instead
it has to be specified as a supported capability.
2013-09-16 00:24:46 +01:00
Steve Holme
f8a9dbd391
tests: Added test for SMTP SIZE capability
2013-09-16 00:24:30 +01:00
Steve Holme
016879d477
ftpserver.pl: Added the ability to include spaces in capabilities
...
For example:
CAPA "SIZE 1048576" 8BITMIME BINARYMIME
will populate the capabilities list with the following in:
SIZE 1048576
8BITMIME
BINARYMIME
2013-09-15 20:56:16 +01:00
Steve Holme
c03335ec68
ftpserver.pl: Corrected response code for successful SMTP QUIT command
2013-09-15 20:09:49 +01:00
Steve Holme
894585784c
ftpserver.pl: Fixed syntax error in commit 33c1f2876b
...
Can't modify constant item in postincrement line 727, near "i++"
2013-09-15 20:07:43 +01:00
Steve Holme
33c1f2876b
ftpserver.pl: Added CAPA & AUTH directive support to the SMTP EHLO handler
2013-09-15 16:53:20 +01:00
Steve Holme
00ee5c5cf1
ftpserver.pl: Fixed SMTP QUIT handler from dadc495540
2013-09-15 12:47:36 +01:00
Steve Holme
dadc495540
ftpserver.pl: Moved SMTP EHLO and QUIT handlers in own functions
2013-09-15 09:20:53 +01:00
Steve Holme
eae86ba62d
ftpserver.pl: Added support for SMTP HELO command
...
...and updated test902 as explicit HELO response is no longer required.
2013-09-15 09:10:11 +01:00
Steve Holme
e9cca79dd1
ftpserver.pl: Added mailbox check to IMAP SELECT handler
2013-09-15 09:00:13 +01:00
Steve Holme
4ba3b6c05a
ftpserver.pl: Corrected invalid user details check
...
...in both the IMAP LOGIN and POP3 PASS handlers introduced in commit
187ac69374
and 84ad1569e5
respectively.
2013-09-15 00:31:55 +01:00
Steve Holme
187ac69374
ftpserver.pl: Moved IMAP LOGIN handler into own function
2013-09-14 20:52:29 +01:00
Steve Holme
84ad1569e5
ftpserver.pl: Moved POP3 USER and PASS handlers into own functions
2013-09-14 20:46:45 +01:00
Steve Holme
45e0a661ce
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
...
...which was accidentally introduced in commit 4d6ef6297a
.
2013-09-14 16:18:47 +01:00
Steve Holme
4d6ef6297a
ftpserver.pl: Added capability prerequisite for extended POP3 commands
2013-09-14 15:04:26 +01:00