Steve Holme
cc7f6a2ddf
url: Added size_t cast to pointer based length calculations
2013-04-19 14:11:43 +01:00
Steve Holme
90fe59b829
url: Corrected minor typo in comment
2013-04-19 12:53:59 +01:00
Steve Holme
8763374f0e
url: Fix chksrc longer than 79 columns warning
2013-04-18 20:21:11 +01:00
Steve Holme
63388fe1f3
url: Fix incorrect variable type for result code
2013-04-18 19:18:02 +01:00
Steve Holme
b75a88aa72
url: Fix compiler warning
...
signed and unsigned type in conditional expression
2013-04-18 19:14:25 +01:00
Steve Holme
bb20989a63
url: Moved parsing of login details out of parse_url_login()
...
Separated the parsing of login details from the processing of them in
parse_url_login() ready for use by setstropt_userpwd().
2013-04-18 18:09:53 +01:00
Steve Holme
0d49e408a4
url: Re-factored set_userpass() and parse_url_userpass()
...
Re-factored these functions to reflect their new behaviour following the
addition of login options.
2013-04-18 17:36:15 +01:00
Steve Holme
90c87f311e
url: Reworked URL parsing to allow overriding by CURLOPT_USERPWD
2013-04-18 17:20:43 +01:00
Steve Holme
c306d2e42f
smtp: Re-factored all perform based functions
...
Standardised the naming of all perform based functions to be in the form
smtp_perform_something().
2013-04-16 19:48:20 +01:00
Steve Holme
f737e3a3dd
smtp: Added description comments to all perform based functions
2013-04-16 19:44:53 +01:00
Steve Holme
686586b0f9
smtp: Moved smtp_quit() to be with the other perform functions
2013-04-16 19:44:52 +01:00
Steve Holme
e621a5f6ea
smtp: Moved smtp_rcpt_to() to be with the other perform functions
2013-04-16 19:44:49 +01:00
Steve Holme
8093f9541e
smtp: Moved smtp_mail() to be with the other perform functions
2013-04-16 19:44:47 +01:00
Steve Holme
552ba67bb1
pop3: Added missing comment for pop3_state_apop_resp()
2013-04-15 20:27:49 +01:00
Steve Holme
651254dcc7
smtp: Updated the coding style of smtp_state_servergreet_resp()
...
Updated the coding style, in this function, to be consistant with other
response functions rather then performing a hard return on failure.
2013-04-15 20:27:47 +01:00
Steve Holme
26bdafcbf9
pop3: Updated the coding style of pop3_state_servergreet_resp()
...
Updated the coding style, in this function, to be consistent with other
response functions rather then performing a hard return on failure.
2013-04-15 20:27:45 +01:00
Steve Holme
02dc9e788f
pop3: Re-factored all perform based functions
...
Standardised the naming of all perform based functions to be in the form
pop3_perform_something() following the changes made to IMAP.
2013-04-14 10:06:10 +01:00
Steve Holme
e11c6e9961
pop3: Added description comments to all perform based functions
2013-04-14 10:06:08 +01:00
Steve Holme
e4eaa92728
pop3: Moved pop3_quit() to be with the other perform functions
2013-04-14 10:06:07 +01:00
Steve Holme
577f8e5ac6
pop3: Moved pop3_command() to be with the other perform functions
...
Started to apply the same tidy up to the POP3 code as applied to the
IMAP code in the 7.30.0 release.
2013-04-14 10:06:05 +01:00
Steve Holme
8723cade21
smtp: Added support for ;auth=<mech> in the URL
...
Added support for specifying the preferred authentication mechanism in
the URL as per Internet-Draft 'draft-earhart-url-smtp-00'.
2013-04-13 16:23:00 +01:00
Steve Holme
d956d9db47
pop3: Reworked authentication type constants
...
... to use left-shifted values, like those defined in curl.h, rather
than 16-bit hexadecimal values.
2013-04-13 16:20:48 +01:00
Steve Holme
ecf93ac986
pop3: Small consistency tidy up
2013-04-13 16:16:23 +01:00
Steve Holme
b3a01be2f3
pop3: Added support for ;auth=<mech> in the URL
...
Added support for specifying the preferred authentication type and SASL
mechanism in the URL as per RFC-2384.
2013-04-13 16:16:21 +01:00
Steve Holme
00045a3009
imap: Added support for ;auth=<mech> in the URL
...
Added support for specifying the preferred authentication mechanism in
the URL as per RFC-5092.
2013-04-13 16:11:27 +01:00
Steve Holme
3f7188dd94
sasl: Reworked SASL mechanism constants
...
... to use left-shifted values, like those defined in curl.h, rather
than 16-bit hexadecimal values.
2013-04-13 13:29:50 +01:00
Steve Holme
720218fea1
sasl: Added predefined preferred mechanism values
...
In preparation for the upcoming changes to IMAP, POP3 and SMTP added
preferred mechanism values.
2013-04-13 13:11:37 +01:00
Steve Holme
73aa95592f
url: Added support for parsing login options from the URL
...
As well as parsing the username and password from the URL, added support
for parsing the optional options part from the login details, to allow
the following supported URL format:
schema://username:password;options@example.com/path?q=foobar
This will only be used by IMAP, POP3 and SMTP at present but any
protocol that may be given login options in the URL will be able to
add support for them.
2013-04-13 10:49:42 +01:00
Steve Holme
ad3fdbc0a4
smtp: Fix compiler warning
...
warning: unused variable 'smtp' introduced in commit 73cbd21b5e
.
2013-04-13 00:06:19 +01:00
Steve Holme
73cbd21b5e
smtp: Moved parsing of url path into separate function
2013-04-12 23:15:51 +01:00
Daniel Stenberg
c5ba0c2f54
FTP: handle a 230 welcome response
...
...instead of the 220 we otherwise expect.
Made the ftpserver.pl support sending a custom "welcome" and then
created test 1219 to verify this fix with such a 230 welcome.
Bug: http://curl.haxx.se/mail/lib-2013-02/0102.html
Reported by: Anders Havn
2013-04-12 23:59:37 +02:00
Daniel Stenberg
61d259f950
FTP: access files in root dir correctly
...
Accessing a file with an absolute path in the root dir but with no
directory specified was not handled correctly. This fix comes with four
new test cases that verify it.
Bug: http://curl.haxx.se/mail/lib-2013-04/0142.html
Reported by: Sam Deane
2013-04-12 22:43:13 +02:00
Steve Holme
c01735865f
pop3: Reworked the function description for Curl_pop3_write()
2013-04-12 20:22:14 +01:00
Steve Holme
ca46c5dbe2
pop3: Added function description to pop3_parse_custom_request()
2013-04-12 20:22:12 +01:00
Steve Holme
2da127abb5
pop3: Moved utility functions to end of pop3.c
2013-04-12 20:22:10 +01:00
Nick Zitzmann
bc33f2200d
darwinssl: add TLS session resumption
...
This ought to speed up additional TLS handshakes, at least in theory.
2013-04-12 12:20:10 -06:00
Steve Holme
fd399cde00
imap: Added function description to imap_parse_custom_request()
2013-04-12 18:27:51 +01:00
Steve Holme
00c74019f4
imap: Moved utility functions to end of imap.c (Part 3/3)
...
Moved imap_is_bchar() be with the other utility based functions.
2013-04-12 18:24:46 +01:00
Steve Holme
9d0063befa
imap: Moved utility functions to end of imap.c (Part 2/3)
...
Moved imap_parse_url_path() and imap_parse_custom_request() to the end of the
file allowing all utility functions to be grouped together.
2013-04-12 18:24:44 +01:00
Steve Holme
01e55ebb26
imap: Moved utility functions to end of imap.c (Part 1/3)
...
Moved imap_atom() and imap_sendf() to the end of the file allowing all
utility functions to be grouped together.
2013-04-12 18:24:43 +01:00
Steve Holme
4bbad1dac7
imap: Corrected function description for imap_connect()
2013-04-12 18:14:43 +01:00
YAMADA Yasuharu
2eb8dcf26c
cookie: fix tailmatching to prevent cross-domain leakage
...
Cookies set for 'example.com' could accidentaly also be sent by libcurl
to the 'bexample.com' (ie with a prefix to the first domain name).
This is a security vulnerabilty, CVE-2013-1944.
Bug: http://curl.haxx.se/docs/adv_20130412.html
2013-04-11 23:52:12 +02:00
Guenter Knauf
96ffe645fd
Enabled MinGW sync resolver builds.
2013-04-11 14:05:08 +02:00
Yang Tse
c86ea58304
if2ip.c: fix compiler warning
2013-04-10 16:44:54 +02:00
Guenter Knauf
577703495e
Fixed lost OpenSSL output with "-t" - followup.
...
The previously applied patch didnt work on Windows; we cant rely
on shell commands like 'echo' since they act diffently on each
platform and each shell.
In order to keep this script platform-independent the code must
only use pure Perl.
2013-04-10 00:20:37 +02:00
Bill Middlecamp
e0fb2d86c9
FTP: handle "rubbish" in front of directory name in 257 responses
...
When doing PWD, there's a 257 response which apparently some servers
prefix with a comment before the path instead of after it as is
otherwise the norm.
Failing to parse this, several otherwise legitimate use cases break.
Bug: http://curl.haxx.se/mail/lib-2013-04/0113.html
2013-04-09 22:18:33 +02:00
Guenter Knauf
658ec97055
Fixed ares-enabled builds with static makefiles.
2013-04-09 17:44:51 +02:00
Guenter Knauf
88535d593e
Fixed lost OpenSSL output with "-t".
...
The OpenSSL pipe wrote to the final CA bundle file, but the encoded PEM
output wrote to a temporary file. Consequently, the OpenSSL output was
lost when the temp file was renamed to the final file at script finish
(overwriting the final file written earlier by openssl).
Patch posted to the list by Richard Michael (rmichael edgeofthenet org).
2013-04-09 16:59:57 +02:00
Nick Zitzmann
d7f4c3772e
darwinssl: disable insecure ciphers by default
...
I noticed that aria2's SecureTransport code disables insecure ciphers such
as NULL, anonymous, IDEA, and weak-key ciphers used by SSLv3 and later.
That's a good idea, and now we do the same thing in order to prevent curl
from accessing a "secure" site that only negotiates insecure ciphersuites.
2013-04-08 17:07:20 -06:00
Robert Wruck
29fdb2700f
tcpkeepalive: Support CURLOPT_TCP_KEEPIDLE on OSX
...
MacOS X doesn't have TCP_KEEPIDLE/TCP_KEEPINTVL but only a single
TCP_KEEPALIVE (see
http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man4/tcp.4.html ).
Here is a patch for CURLOPT_TCP_KEEPIDLE on OSX platforms.
2013-04-08 23:13:05 +02:00