- Oct 17, 2011
-
-
Kamil Dudka authored
... instead of nicknames, which are not unique.
-
- Oct 15, 2011
-
-
Daniel Stenberg authored
When doing a multipart formpost with a read callback, and that callback returns CURL_READFUNC_ABORT, that return code must be properly propagated back and handled accordingly. Previously it would be handled as a zero byte read which would cause a hang! Added test case 587 to verify. It uses the lib554.c source code with a small ifdef. Reported by: Anton Bychkov Bug: http://curl.haxx.se/mail/lib-2011-10/0097.html
-
Daniel Stenberg authored
Save the errno value immediately after a connect() failure so that it won't get reset to something else before we read it. Bug: http://curl.haxx.se/mail/lib-2011-10/0066.html Reported by: Frank Van Uffelen and Fabian Hiernaux
-
- Oct 14, 2011
- Oct 13, 2011
-
-
Yang Tse authored
-
Marcin Adamski authored
Set ACK timeout to 5 seconds. If we are waiting for block X and receive block Y that is the expected one, we should send ACK and increase X (which is already implemented). Otherwise drop the packet and don't increase retry counter.
-
Yang Tse authored
Prevent modification of easy handle being added with curl_multi_add_handle() unless this function actually suceeds. Run Curl_posttransfer() to allow restoring of SIGPIPE handler when Curl_connect() fails early in multi_runsingle().
- Oct 12, 2011
- Oct 11, 2011
-
-
Yang Tse authored
-
- Oct 07, 2011
- Oct 06, 2011
-
-
Yang Tse authored
-
- Oct 04, 2011
-
-
Daniel Stenberg authored
Move the variable declaration to within the #ifdef
-
Daniel Stenberg authored
It makes much nicer and less convuluted code everywhere if this struct member is always present even when libcurl is built without SSL support. This reverts parts of commit 15e3e451
-
Daniel Stenberg authored
-
- Oct 03, 2011
-
-
Daniel Stenberg authored
-
Daniel Stenberg authored
define away Curl_ntlm_sspi_cleanup() when no windows SSPI build
-
Steve Holme authored
Modified smtp_endofresp() to detect NTLM from the server specified list of supported authentication mechanisms. Modified smtp_authenticate() to start the sending of the NTLM data. Added smtp_auth_ntlm_type1_message() which creates a NTLM type-1 message. This function is used by authenticate() to start the sending of data and by smtp_state_auth_ntlm_resp() when the AUTH command doesn't contain the type-1 message as part of the initial response. This lack of initial response can happen if an OOM error occurs or the type-1 message is longer than 504 characters. As the main AUTH command is limited to 512 character the data has to be transmitted in two parts; one containing the AUTH NTLM and the second containing the type-1 message. Added smtp_state_auth_ntlm_type2msg_resp() which handles the incoming type-2 message and sends an outgoing type-3 message. This type-2 message is sent by the server in response to our type-1 message. Modified smtp_state_auth_resp() to handle the response to: the AUTH NTLM without the initial response and the type-2 response. Modified smtp_disconnect() to cleanup the NTLM SSPI stack.
-
Steve Holme authored
Added the output message length as a parameter to both Curl_ntlm_create_type1_message() and Curl_ntlm_create_type3_message() for use by future functions that require it. Updated curl_ntlm.c to cater for the extra parameter on these two functions.
-
Steve Holme authored
Changed the name of variable l, in several functions, which represents the length of strings being sent to the server, to len which is more meaningful and consistent with other code in smtp.c and elsewhere. Reworked smtp_authenticate() to be simpler and easier to follow. Variables and now initialised in their definitions and if no username and password are specified the function sets the state to SMTP_STOP and returns immediately, rather than being part of a huge if statement.
-
Steve Holme authored
... introduced in 7f304ab8
-
Daniel Stenberg authored
Don't even declare the struct members for disabled features Introducing the CURLSHE_NOT_BUILT_IN return code for the share interface when trying to set a sharing option that has been disabled (or not enabled) in the library.
-
- Oct 02, 2011
-
-
Daniel Stenberg authored
When the progress function returns to cancel the request, we must mark the connection to get closed and it must do to the DONE state. do_init() must be called as early as possible so that state variables for new connections are reset early. We could otherwise see that the old values were still there when a connection was to be disconnected very early and it would make it behave wrongly. Bug: http://curl.haxx.se/mail/lib-2011-10/0006.html Reported by: Vladimir Grishchenko
-
- Sep 30, 2011
-
-
Daniel Stenberg authored
Reported by: Marcin Adamski Bug: http://curl.haxx.se/mail/lib-2011-09/0329.html
-
Yang Tse authored
-
- Sep 29, 2011
-
-
Daniel Stenberg authored
... introduced in 7f304ab8
-
Steve Holme authored
The size of the email can now be set via CURLOPT_INFILESIZE. This allows the email to be rejected by the server, if supported, and the maximum size has been configured on the server.
-
- Sep 28, 2011
-
-
Alejandro Alvarez authored
With locking, plus test, plus documentation
-
- Sep 27, 2011
-
-
Guenter Knauf authored
-
- Sep 26, 2011
-
-
Yang Tse authored
-
- Sep 25, 2011
-
-
Steve Holme authored
-
Steve Holme authored
Removed the code that striped off the domain name when Curl_gethostname returned the fully qualified domain name as the function has been updated to return the un-qualified host name. Replaced the use of HOSTNAME_MAX as the size of the buffer in the call to Curl_gethostname with sizeof(host) as this is safer should the buffer size ever be changed.
-
Steve Holme authored
Moved HOSTNAME_MAX #define into curl_gethostname.h rather than being locally defined in curl_gethostname.c, curl_ntlm_msgs.c and smtp.c.
-
Yang Tse authored
-
Yang Tse authored
Allow (*curl_write_callback) write callbacks to return CURL_WRITEFUNC_OUT_OF_MEMORY to properly indicate libcurl of OOM conditions inside the callback itself.
-
Daniel Stenberg authored
If a socket is larger than FD_SETSIZE, avoid using FD_SET() on the platforms where this is possible. Bug: http://curl.haxx.se/bug/view.cgi?id=3413274 Reported by: Tim Starling
-
Guenter Knauf authored
-