- May 27, 2012
-
-
Daniel Stenberg authored
-
Steve Holme authored
Added support for detecting the supported SASL authentication mechanisms via the AUTH command. There are two ways of detecting them, either by using the AUTH command, that will return -ERR if not supported or by using the CAPA command which will return SASL and the list of mechanisms if supported, not include SASL if SASL authentication is not supported or -ERR if the CAPA command is not supported. As such it seems simpler to use the AUTH command and fallback to normal clear text authentication if the the command is not supported. Additionally updated the test cases to return -ERR when the AUTH command is encountered. Additional test cases will be added when support for the individual authentication mechanisms is added.
-
Daniel Stenberg authored
-
Steve Holme authored
Moved EOB definition into header file. Switched the logic around in pop3_endofresp() to allow for the introduction of auth-mechanism detection. Repositioned second and third function variables where they will fit within the 78 character line limit. Tidied up some comments.
-
Guenter Knauf authored
-
- May 25, 2012
-
-
Steve Holme authored
-
Steve Holme authored
Move the SMTP_AUTH constants into a separate header file in preparation for adding SASL based authentication to POP3 as the two protocols will need to share them.
-
Kamil Dudka authored
-
- May 22, 2012
-
-
Steve Holme authored
Due to the result code being reset to CURLE_OK when smtp_dophase_done() was called, postdata would incorrectly be sent to the server when the MAIL FROM or RCPT command was rejected. As such, libcurl would return the wrong result code from performing the operation and additionally set CURLINFO_RESPONSE_CODE to be that returned by the postdata command. Bug: http://curl.haxx.se/mail/lib-2012-05/0108.html Reported by: Gokhan Sengun
-
Tatsuhiro Tsujikawa authored
In nettle/md5.h, md5_init and md5_update are defined as macros to nettle_md5_init and nettle_md5_update respectively. This causes error when using MD5_params.md5_init and md5_update. This patch renames these members as md5_init_func and md5_update_func to avoid name conflict. For completeness, MD5_params.md5_final was also renamed as md5_final_func. The changes in curl_ntlm_core.c is conversion error and fixed by casting to proper type.
-
Guenter Knauf authored
-
- May 17, 2012
-
-
Steve Holme authored
A dot character at the beginning of a line would not be escaped to a double dot as required by RFC-2821, instead it would be deleted by the mail server. Please see section 4.5.2 of the RFC for more information. Note: This fix also simplifies the detection of repeated CRLF.CRLF combinations, such as CRLF.CRLF.CRLF, a little rather than having to advance the eob counter to 2.
-
- May 02, 2012
-
-
Gokhan Sengun authored
check whether md5 initialization succeeded before updating digest of buffers onto it
-
- Apr 26, 2012
-
-
Guenter Knauf authored
-
- Apr 23, 2012
-
-
Daniel Stenberg authored
Roman Mamedov spotted (in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670126) that curl would not complain when given a URL with an IPv6 numerical address without brackets. It would simply cut off the last ":[hex]" part and thus not work correctly. That's a URL using an illegal syntax and now libcurl will instead return a clear error code and error message detailing the error. The above mentioned bug report claims this to be a regression but libcurl does not guarantee functionality when given URLs that aren't following the URL spec (RFC3986 mostly). I consider the fact that it used to handle this differently a mere coincidence.
-
Daniel Stenberg authored
Bug: http://curl.haxx.se/mail/lib-2012-04/0246.html Reported by: Michael Mueller
-
Gokhan Sengun authored
curl needs to be more chatty regarding certificate verification failure during SSL handshake
-
- Apr 22, 2012
-
-
Steve Holme authored
-
Guenter Knauf authored
-
Guenter Knauf authored
-
Steve Holme authored
-
Steve Holme authored
Added version information for Windows SSPI to curl's main version string and removed SSPI from the features string.
-
- Apr 20, 2012
-
-
Daniel Stenberg authored
When doing a chunked-encoded POST with -d (CURLOPT_POSTFIELDS) and the size of the POST was zero length, it made libcurl first send a zero chunk and then the terminating one. This could confuse a receiver and it should rather just send the terminating chunk as it does with this fix. Test case 1333 is added to verify. Bug: http://curl.haxx.se/mail/archive-2012-04/0060.html Reported by: Arnaud Compan
-
Guenter Knauf authored
-
- Apr 19, 2012
-
-
Daniel Stenberg authored
Commit 9109cdec brought this regression (shipped since 7.24.0). The singleipconnect() function must not return an error if Curl_socket() returns an error. It should then simply return OK and pass a SOCKET_BAD back simply because that is how the user of this function expects it to work and something else is not fine. Reported by: Blaise Potard Bug: http://curl.haxx.se/bug/view.cgi?id=3516508
-
Yang Tse authored
MIPSPro compiler detected curl_easy_getinfo() related missing adjustments. SunPro compiler detected curl tool --libcurl option related missing adjustments.
-
- Apr 18, 2012
-
-
Yang Tse authored
Fail with CURLE_NOT_BUILT_IN when none of requested auth methods is supported. Reject CURLAUTH_ONLY bit when given alone or with CURLAUTH_NONE.
-
Yang Tse authored
Data type of internal vars holding CURLAUTH_* bitmasks changed from 'long' to 'unsigned long' for proper handling and operating.
-
- Apr 17, 2012
-
-
Yang Tse authored
-
- Apr 16, 2012
-
-
Yang Tse authored
-
- Apr 14, 2012
-
-
Yang Tse authored
Include stdbool.h only when it is available and configure is capable of detecting a proper 'bool' data type when the header is included. Compilation fix for old or unpatched versions of XL C compiler. Report: http://curl.haxx.se/mail/archive-2012-04/0022.html
-
Yang Tse authored
Usage in other code paths already protected and requiring even newer versions.
-
Jonathan Nieder authored
This protects from attribute names being defined by third party's code. Improvement: http://curl.haxx.se/mail/lib-2012-04/0127.html
-
- Apr 13, 2012
-
-
Yang Tse authored
-
Kamil Dudka authored
-