aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-27sigpipe: factor out sigpipe_reset from easy.cJeff King
Commit 7d80ed64e43515 introduced some helpers to handle sigpipe in easy.c. However, that fix was incomplete, and we need to add more callers in other files. The first step is making the helpers globally accessible. Since the functions are small and should generally end up inlined anyway, we simply define them in the header as static functions. Signed-off-by: Jeff King <peff@peff.net>
2013-11-27connect: Try next ip directly after immediate connect failBjörn Stenberg
This fixes a rare Happy Eyeballs bug where if the first IP family runs out of addresses before the second-family-timer fires, and the second IP family's first connect fails immediately, no further IPs of the second family are attempted.
2013-11-25hostip: don't prune DNS cache entries that are in useDaniel Stenberg
When adding entries to the DNS cache with CURLOPT_RESOLVE, they are marked 'inuse' forever to prevent them from ever being removed in normal operations. Still, the code that pruned out-of-date DNS entries didn't care for the 'inuse' struct field and pruned it anyway! Reported-by: Romulo A. Ceccon Bug: http://curl.haxx.se/bug/view.cgi?id=1303
2013-11-24RELEASE-NOTES: Synced with 35e476a3f6cdd5Steve Holme
2013-11-24tests: Re-ordered test arguments to match other IMAP testsSteve Holme
2013-11-24tests: Corrected login "username" authentication responsesSteve Holme
2013-11-24tests: Added error code explanation commentsSteve Holme
2013-11-24tests: Removed expected QUIT response from graceful cancellation testsSteve Holme
A failure during authentication, which is performed as part of the CONNECT phrase (for IMAP, POP3 and SMTP) is considered by the multi- interface as being closed prematurely (aka a dead connection). As such these protocols cannot issue the relevant QUIT or LOGOUT command. Temporarily fixed the test cases until we can fix this properly.
2013-11-24tests: Added SMTP graceful authentication cancellation testsSteve Holme
2013-11-24tests: Added POP3 graceful authentication cancellation testsSteve Holme
2013-11-23ftpserver.pl: Reworked fix from commit 7a36b2abc06862Steve Holme
2013-11-23ftpserver.pl: Fixed unknown IMAP command "*"Steve Holme
2013-11-23ftpserver.pl: Fixed servercmd REPLY with * detectionSteve Holme
2013-11-23tests: Added IMAP graceful authentication cancellation testsSteve Holme
2013-11-23tests: Moved CR LF in URL tests to their respective protocol groupsSteve Holme
2013-11-23smtp: Post SMTP command expansion tidy upSteve Holme
Removed unnecessary SMTP_STOP state changes on failure. Removed hard return on failure in smtp_state_data_resp().
2013-11-22symbols-in-versions: Added missing CURLSSLBACKEND_* symbolsSteve Holme
2013-11-22symbols-in-versions: Fixed missing CURLINFO_TLS_SESSIONSteve Holme
2013-11-21curl_easy_getinfo: Added CURLINFO_TLS_SESSION for accessing TLS internalsChristian Grothoff
Added new API for returning a SSL backend type and pointer, in order to allow access to the TLS internals, that may then be used to obtain X509 certificate information for example.
2013-11-17RELEASE-NOTES: Synced with 8191800a0c8ff7Steve Holme
2013-11-17smtp: Fixed space being sent in non --mail-rcpt based requestsSteve Holme
Commands such as NOOP, RSET and HELP would be sent with a space at the end of the command, for example: "NOOP ".
2013-11-17tests: Added SMTP NOOP and RSET testsSteve Holme
2013-11-17test928: Corrected typo in expected data from commit df58084695ce9bSteve Holme
2013-11-17tests: Added SMTP HELP testSteve Holme
2013-11-17smtp: Changed the default command to HELP when no options are specifiedSteve Holme
Otherwise a NOOP operation would be performed which a) only returns a single line response and not a multiline response where -I needs to be used, and b) provides an inconsistent user experience compared to that of the POP3 and IMAP protocols.
2013-11-17smtp:Fixed memory leak from commit dac01ff6d788b2Steve Holme
The buffer allocated by smtp_parse_custom_request() was not freed.
2013-11-17connect: Close open but unconnected socket in singleipconnect()Steve Holme
singleipconnect() could return the file descriptor of an open socket even though the function returned a CURLE_COULDNT_CONNECT error code from commit ed1662c374361a and 02fbc26d59c591. This could cause tests 19, 704 and 1233 to fail on FreeBSD, AIX and Solaris.
2013-11-17tests: Added SMTP EXPN command testSteve Holme
2013-11-16test926: Corrected unknown user reply from commit 0d735c29f92748Steve Holme
The error code should not be sent as data as it isn't passed onto the client as body data, so cannot be compared in the test suite against expected data.
2013-11-16tests: Corrected missing data reply sections from 3d50e91aeef8ccSteve Holme
2013-11-16tests: Added SMTP VRFY command testsSteve Holme
2013-11-16ftpserver.pl: Added support for new SMTP commandsSteve Holme
2013-11-15smtp: Fixed broken RCPT TO from commit 0ea4a80bb23666Steve Holme
2013-11-15smtp_state_mail_resp: removed unused variable 'smtp'Daniel Stenberg
2013-11-15DOCS: Updated curl_easy_setopt.3 following recent SMTP changesSteve Holme
* Added information about the verify and expand commands to CURLOPT_MAIL_RCPT. * Reworked CURLOPT_CUSTOMREQUEST section, adding information about IMAP and SMTP custom commands.
2013-11-15DOCS: Updated manpage following recent SMTP modificationsSteve Holme
* Added SMTP section to --request * Expanded --mail-rcpt to describe the usage when using the verify and expand commands.
2013-11-15smtp: Simplified the next RCPT TO logicSteve Holme
2013-11-15lib1507.c: Added missing set of CURLOPT_UPLOAD optionSteve Holme
Although this option should have already been set, the SMTP module can now download information from and send instructional commands to, an SMTP server, requiring the option to be set in order to perform a mail transfer.
2013-11-15smtp.c: Fixed trailing whitespaceSteve Holme
2013-11-15smtp: Added support for VRFY and EXPN commandsSteve Holme
2013-11-15smtp: Added support for NOOP and RSET commandsSteve Holme
2013-11-15smtp: Fixed handling of multiline server greeting responsesSteve Holme
Incorrectly processed multiline server greeting responses as "wanted" continue responses in smtp_endofresp(), from commit f16c0de4e9bbe3, which in turn broke the SMTP server detection in the test suite, because the EHLO command would not be sent.
2013-11-15smtp.c: Fixed compilation error from commit f16c0de4e9bbe3Steve Holme
warning: unused variable 'smtpc'
2013-11-15smtp: Fixed processing of more than one response when sent in same packetSteve Holme
Added a loop to smtp_statemach_act() in which Curl_pp_readresp() is called until the cache is drained. Without this multiple responses received in a single packet could result in a hang or delay.
2013-11-15smtp: Moved EHLO response handling to smtp_state_ehlo_resp()Steve Holme
Similar to the processing of untagged CAPABILITY responses in IMAP moved the processing of multiline EHLO responses to smtp_state_ehlo_resp() and introduced an internal response code of one to differentiate a multiline continuation from the end of command. This also allows for the separate processing of multiline responses from commands such as VRFY and EXPN.
2013-11-14connect: Forgot to correct line endings before push in commit ed1662c374361aSteve Holme
2013-11-14connect: Return the socket descriptor even on failBjörn Stenberg
singleipconnect() did not return the open socket descriptor on some errors, thereby sometimes causing a socket leak. This patch ensures the socket is always returned.
2013-11-13configure: Fix test with -Werror=implicit-function-declarationDaniel Stenberg
The ipv6 auto-detect test in configure returns a false negative when CFLAGS contains -Werror=implicit-function-declaration. (I have been using this flag to detect code issues that would result in SEGVs on x86_64-cygwin.) Patch-by: Yaakov Selkowitz Bug: http://curl.haxx.se/bug/view.cgi?id=1304
2013-11-13test825: Corrected typo from commit b29217d0d682d4Steve Holme
2013-11-13RELEASE-NOTES: Synced with bde901ad89a6f1Steve Holme