#
98231557 |
| 25-Mar-2012 |
Steve Holme |
pop3.c: Corrected problem with state() introduced in 01690ed2bce5
|
#
9f96e6da |
| 25-Mar-2012 |
Steve Holme |
pop.c: Small code tidy up
|
#
01690ed2 |
| 25-Mar-2012 |
Steve Holme |
pop3: Removed the need for the single message LIST command handler Simplified the code to remove the need for a separate "LIST <msg id>" command handler and state machine and instead use
pop3: Removed the need for the single message LIST command handler Simplified the code to remove the need for a separate "LIST <msg id>" command handler and state machine and instead use the LIST command handler for both operations.
show more ...
|
#
2da89708 |
| 24-Mar-2012 |
Steve Holme |
pop3.c: Code policing and tidy up Corrected character and line spacing and re-ordered list and retr functions based on the order of their state machines.
|
#
5c62a551 |
| 24-Mar-2012 |
Steve Holme |
email: Moved server greeting responses into separate functions Moved the server greeting response handling code from the statemach_act functions to separate response functions. This make
email: Moved server greeting responses into separate functions Moved the server greeting response handling code from the statemach_act functions to separate response functions. This makes the code simpler to follow and provides consistency with the other responses that are handled here.
show more ...
|
#
602a8a56 |
| 24-Mar-2012 |
Steve Holme |
pop3.c: Fixed body data being written when CURLOPT_NOBODY is specified Body data would be forwarded to the client application in both the RETR and LIST commands even if CURLOPT_NOBODY wa
pop3.c: Fixed body data being written when CURLOPT_NOBODY is specified Body data would be forwarded to the client application in both the RETR and LIST commands even if CURLOPT_NOBODY was specified.
show more ...
|
Revision tags: curl-7_25_0 |
|
#
2764bf2c |
| 08-Mar-2012 |
Daniel Stenberg |
includes: remove inclusion of unused file http_proxy.h
|
#
41b02378 |
| 08-Mar-2012 |
Daniel Stenberg |
CONNECT: made generically not per-protocol Curl_protocol_connect() now does the tunneling through the HTTP proxy if requested instead of letting each protocol specific connection functio
CONNECT: made generically not per-protocol Curl_protocol_connect() now does the tunneling through the HTTP proxy if requested instead of letting each protocol specific connection function do it.
show more ...
|
#
035ef06b |
| 18-Feb-2012 |
Steve Holme |
pop3.c: Fixed drop of final CRLF in EOB checking Curl_pop3_write() would drop the final CRLF of a message as it was considered part of the EOB as opposed to part of the message. Whilst
pop3.c: Fixed drop of final CRLF in EOB checking Curl_pop3_write() would drop the final CRLF of a message as it was considered part of the EOB as opposed to part of the message. Whilst the EOB sequence needs to be searched for by the function only the final 3 characters should be removed as per RFC-1939 section 3. Reported by: Rich Gray Bug: http://curl.haxx.se/mail/lib-2012-02/0051.html
show more ...
|
Revision tags: curl-7_24_0 |
|
#
75ca568f |
| 23-Dec-2011 |
Daniel Stenberg |
URL sanitize: reject URLs containing bad data Protocols (IMAP, POP3 and SMTP) that use the path part of a URL in a decoded manner now use the new Curl_urldecode() function to reject URLs
URL sanitize: reject URLs containing bad data Protocols (IMAP, POP3 and SMTP) that use the path part of a URL in a decoded manner now use the new Curl_urldecode() function to reject URLs with embedded control codes (anything that is or decodes to a byte value less than 32). URLs containing such codes could easily otherwise be used to do harm and allow users to do unintended actions with otherwise innocent tools and applications. Like for example using a URL like pop3://pop3.example.com/1%0d%0aDELE%201 when the app wants a URL to get a mail and instead this would delete one. This flaw is considered a security vulnerability: CVE-2012-0036 Security advisory at: http://curl.haxx.se/docs/adv_20120124.html Reported by: Dan Fandrich
show more ...
|
#
db4f69ef |
| 03-Jan-2012 |
Steve Holme |
Fixed use of CURLUSESSL_TRY for POP3 and IMAP based connections. Fixed a problem in POP3 and IMAP where a connection would fail when CURLUSESSL_TRY was specified for a server that didn't
Fixed use of CURLUSESSL_TRY for POP3 and IMAP based connections. Fixed a problem in POP3 and IMAP where a connection would fail when CURLUSESSL_TRY was specified for a server that didn't support SSL/TLS connections rather than continuing.
show more ...
|
#
277022b2 |
| 03-Jan-2012 |
Steve Holme |
Fixed incorrect error code being returned in STARTTLS The STARTTLS response code in SMTP, POP3 and IMAP would return CURLE_LOGIN_DENIED rather than CURLE_USE_SSL_FAILED when SSL/TLS
Fixed incorrect error code being returned in STARTTLS The STARTTLS response code in SMTP, POP3 and IMAP would return CURLE_LOGIN_DENIED rather than CURLE_USE_SSL_FAILED when SSL/TLS was not available on the server. Reported by: Gokhan Sengun Bug: http://curl.haxx.se/mail/lib-2012-01/0018.html
show more ...
|
#
b9b772fe |
| 13-Dec-2011 |
Yang Tse |
pop3.c: fix compiler warning variable may be used uninitialized
|
#
bdb64781 |
| 30-Nov-2011 |
Steve Holme |
POP3: fixed escaped dot not being striped out Changed the eob detection to work across the whole of the buffer so that lines that begin with a dot (which the server will have escaped) ar
POP3: fixed escaped dot not being striped out Changed the eob detection to work across the whole of the buffer so that lines that begin with a dot (which the server will have escaped) are passed to the client application correctly.
show more ...
|
#
1038d0aa |
| 29-Nov-2011 |
Yang Tse |
pop3.c: fix compiler warning
|
#
af646664 |
| 29-Nov-2011 |
Daniel Stenberg |
POP3: detect when LIST returns no mails By making sure the function can detect an "end of body" sequence immediately on the first line, test 811 is now enabled.
|
#
dda815b7 |
| 28-Nov-2011 |
Daniel Stenberg |
POP3: fix end of body detection Curl_pop3_write() now has a state machine that scans for the end of a POP3 body so that the CR LF '.' CR LF sequence can come in everything from one u
POP3: fix end of body detection Curl_pop3_write() now has a state machine that scans for the end of a POP3 body so that the CR LF '.' CR LF sequence can come in everything from one up to five subsequent packets. Test case 810 is modified to use SLOWDOWN which makes the server pause between each single byte and thus makes the POP3 body get sent to curl basically one byte at a time.
show more ...
|
#
2c905fd1 |
| 24-Nov-2011 |
Jonas Schnelli |
query-part: ignore the URI part for given protocols By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the dat
query-part: ignore the URI part for given protocols By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the data is handled by the protocol-specific code. This makes libcurl adhere to RFC3986 section 2.2. Test 1220 is added to verify a file:// URL with query-part.
show more ...
|
Revision tags: curl-7_23_1, curl-7_23_0 |
|
#
93e57d06 |
| 03-Nov-2011 |
Daniel Stenberg |
rename ftp_ssl: the struct field is used for many protocols Now called 'use_ssl' instead, which better matches the current CURLOPT name and since the option is used for all pingpong prot
rename ftp_ssl: the struct field is used for many protocols Now called 'use_ssl' instead, which better matches the current CURLOPT name and since the option is used for all pingpong protocols (at least) it makes sense to not use 'ftp' in the name.
show more ...
|
#
d7934b8b |
| 21-Oct-2011 |
Daniel Stenberg |
curl_multi_fdset: correct fdset with FTP PORT use After a PORT has been issued, and the multi handle would switch to the CURLM_STATE_DO_MORE state (which is unique for FTP), libcurl woul
curl_multi_fdset: correct fdset with FTP PORT use After a PORT has been issued, and the multi handle would switch to the CURLM_STATE_DO_MORE state (which is unique for FTP), libcurl would return the wrong fdset to wait for when curl_multi_fdset() is called. The code would blindly assume that it was waiting for a connect of the second connection, while that isn't true immediately after the PORT command. Also, the function multi.c:domore_getsock() was highly FTP-centric and therefore ugly to keep in protocol-agnostic code. I solved this problem by introducing a new function pointer in the Curl_handler struct called domore_getsock() which is only called during the DOMORE state for protocols that set that pointer. The new ftp.c:ftp_domore_getsock() function now returns fdset info about the control connection's command/response handling while such a state is in use, and goes over to waiting for a writable second connection first once the commands are done. The original problem could be seen by running test 525 and checking the time stamps in the FTP server log. I can verify that this fix at least fixes this problem. Bug: http://curl.haxx.se/mail/lib-2011-10/0250.html Reported by: Gokhan Sengun
show more ...
|
Revision tags: curl-7_22_0 |
|
#
a5021071 |
| 05-Sep-2011 |
Yang Tse |
fix bool variables checking and assignment
|
#
6b75d2c2 |
| 03-Sep-2011 |
Yang Tse |
fix a bunch of MSVC compiler warnings
|
#
2d7c79af |
| 19-Aug-2011 |
Daniel Stenberg |
tcpconnect: follow-up commit after b998d95b As I modified conn->bits.tcpconnect to become an array that holds one bool for each potential connection all uses of that struct field must
tcpconnect: follow-up commit after b998d95b As I modified conn->bits.tcpconnect to become an array that holds one bool for each potential connection all uses of that struct field must index it correctly.
show more ...
|
#
f1586cb4 |
| 26-Jul-2011 |
Yang Tse |
stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h
|
Revision tags: curl-7_21_7 |
|
#
af6dcc92 |
| 20-Jun-2011 |
Ori Avtalion |
[pop3] remove extra space in LIST command Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
|