summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* resolver_error: remove wrong error message outputDaniel Stenberg2013-02-181-48/+2
| | | | | | | | The attempt to use gai_strerror() or alternative function didn't work as the 'sock_error' field didn't contain the proper error code. But since this hasn't been reported and thus isn't really a big deal I decided to just scrap the whole attempt to output the detailed resolver error and instead remain with just stating that the resolving of the name failed.
* Curl_resolver_is_resolved: show proper host name on failed resolveKim Vandry2013-02-181-15/+20
|
* Curl_resolver_is_resolved: fix compiler warningDaniel Stenberg2013-02-181-3/+3
| | | | conversion to 'int' from 'long int' may alter its value
* compiler warning fixDaniel Stenberg2013-02-181-1/+1
| | | | follow-up to commit ed7174c6f66, rename 'wait' to 'block'
* compiler warning fix: declaration of 'wait' shadows a global declarationDaniel Stenberg2013-02-181-3/+3
| | | | | | | | It seems older gcc installations (at least) will cause warnings if we name a variable 'wait'. Now changed to 'block' instead. Reported by: Jiří Hruška Bug: http://curl.haxx.se/mail/lib-2013-02/0247.html
* MacOSX-Framework: Make script work in Xcode 4.0 and laterNick Zitzmann2013-02-171-1/+1
| | | | | | | | | Apple made a number of changes to Xcode 4. The SDKs were moved, the entire Developer folder was moved, and PowerPC support was removed. The script will now adapt to those changes and should be future-proofed against additional changes in case Apple moves the Developer folder ever again. Also, the minimum OS X version compiler option was removed, so that the framework can be built against the latest SDK but still run in older cats.
* email: Tidied up result code variablesSteve Holme2013-02-163-55/+52
| | | | | Tidied up result variables to be consistent in name, declaration order and default values.
* ntlm_core: fix compiler warning when building with clangNick Zitzmann2013-02-161-1/+1
| | | | Fixed a 64-to-32 compiler warning raised when building with clang and the --with-darwinssl option.
* polarsslthreadlock: #include the proper memory and debug includesDaniel Stenberg2013-02-161-0/+4
| | | | Pointed out by Steve Holme
* email: Removed unnecessary forward declarationSteve Holme2013-02-163-3/+0
| | | | | Due to the reordering of functions in commit 586f5d361474 the forward declaration to state_upgrade_tls() are no longer required.
* pop3.c: Added reference to RFC-5034Steve Holme2013-02-161-0/+1
|
* PolarSSL: Change to cURL coding styleWillem Sparreboom2013-02-152-69/+64
| | | | Repaired all curl/lib/checksrc.pl warnings in the previous four patches
* PolarSSL: WIN32 threading support for entropyWillem Sparreboom2013-02-152-8/+45
| | | | | Added WIN32 threading support for PolarSSL entropy if --enable-threaded-resolver config flag is set and process.h can be found.
* PolarSSL: pthread support for entropyWillem Sparreboom2013-02-155-17/+249
| | | | | Added pthread support for polarssl entropy if --enable-threaded-resolver config flag is set and pthread.h can be found.
* PolarSSL: changes to entropy/ctr_drbg/HAVEGE_RANDOMWillem Sparreboom2013-02-152-12/+38
| | | | Add non-threaded entropy and ctr_drbg and removed HAVEGE_RANDOM define
* PolarSSL: added human readable error stringsWillem Sparreboom2013-02-151-9/+39
| | | | Print out human readable error strings for PolarSSL related errors
* pop3: Removed unnecessary state changes on failureSteve Holme2013-02-151-9/+9
|
* imap: Removed unnecessary state change on failureSteve Holme2013-02-151-3/+3
|
* rename "easy" statemachines: call them block insteadDaniel Stenberg2013-02-157-85/+48
| | | | | | ... since they're not used by the easy interface really, I wanted to remove the association. Also, I unified the pingpong statemachine driver into a single function with a 'wait' argument: Curl_pp_statemach.
* curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()Gisle Vanem2013-02-151-1/+3
|
* config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32Gisle Vanem2013-02-151-2/+1
|
* config-dos.h: define strerror() to strerror_s_() for High-CGisle Vanem2013-02-151-1/+2
|
* config-dos.h: define HAVE_TERMIOS_H only for djgppGisle Vanem2013-02-151-1/+1
|
* smtp.c: Fixed a trailing whitespaceSteve Holme2013-02-141-1/+1
| | | | Remove tailing whitespace introduced in commit 7ed689d24a4e.
* pop3: Fixed blocking SSL connect when connecting via POP3SSteve Holme2013-02-141-8/+0
| | | | | | | A call to Curl_ssl_connect() was accidentally left in when the SSL/TLS connection layer was reworked in 7.29. Not only would this cause the connection to block but had the additional overhead of calling the non-blocking connect a little bit later.
* smtp: Refactored the smtp_state_auth_resp() functionSteve Holme2013-02-141-3/+4
| | | | | Renamed smtp_state_auth_resp() function to match the implementations in IMAP and POP3.
* strlcat: remove functionDaniel Stenberg2013-02-1410-83/+23
| | | | | | | | | | | | | | | | | | This function was only used twice, both in places where performance isn't crucial (socks + if2ip). Removing the use of this function removes the need to have our private version for systems without it == reduced amount of code. Also, in the SOCKS case it is clearly better to fail gracefully rather than to truncate the results. This work was triggered by a bug report on the strcal prototype in strequal.h. strlcat was added in commit db70cd28 in February 2001! Bug: http://curl.haxx.se/bug/view.cgi?id=1192 Reported by: Jeremy Huddleston
* Curl_FormBoundary: made staticDaniel Stenberg2013-02-141-35/+32
| | | | | | As Curl_FormBoundary() is no longer used outside of this file (since commit ad7291c1a9d), it is now renamed to formboundary() and is made static.
* ossl_seed: fix the last resort PRNG seedingDaniel Stenberg2013-02-141-19/+6
| | | | | Instead of just abusing the pseudo-randomizer from Curl_FormBoundary(), this now uses Curl_ossl_random() to get entropy.
* email: Tidy up before additional IMAP workSteve Holme2013-02-133-25/+35
| | | | | | Replaced two explicit comparisons of CURLE_OK with boolean alternatives. General tidy up of comments.
* smtp: Removed duplicate pingpong structure initialisationSteve Holme2013-02-131-6/+0
| | | | | | The smtp_connect() function was setting the member variables of the pingpong structure twice, once before calling Curl_pp_init() and once after!
* move msvc IDE related files to 'vc' directory treeYang Tse2013-02-137-370/+7
|
* imap: Corrected a whitespace issue from previous commitSteve Holme2013-02-121-1/+1
| | | | | Fixed a small whitespace issue that crept in there in commit 508cdf4da4d7.
* email: Another post optimisation of endofresp() tidy upSteve Holme2013-02-122-12/+14
|
* sasl: Fixed null pointer reference when decoding empty digest challengeSteve Holme2013-02-121-0/+3
| | | | | | | | Fixed a null pointer reference when an empty challenge is passed to the Curl_sasl_create_digest_md5_message() function. Bug: http://sourceforge.net/p/curl/bugs/1193/ Reported by: Saran Neti
* email: Post optimisation of endofresp() tidy upSteve Holme2013-02-123-9/+0
| | | | Removed unnecessary end of line check and return.
* darwinssl: Fix send glitchiness with data > 32 or so KBNick Zitzmann2013-02-122-14/+52
| | | | | | | | | | An ambiguity in the SSLWrite() documentation lead to a bad inference in the code where we assumed SSLWrite() returned the amount of bytes written to the socket, when that is not actually true; it returns the amount of data that is buffered for writing to the socket if it returns errSSLWouldBlock. Now darwinssl_send() returns CURLE_AGAIN if data is buffered but not written. Reference URL: http://curl.haxx.se/mail/lib-2013-02/0145.html
* pingpong.h: Fixed line length over 78 characters from b56c9eb48e3cSteve Holme2013-02-121-1/+2
|
* pingpong: Optimised the endofresp() functionSteve Holme2013-02-126-20/+15
| | | | | | | | | | Reworked the pp->endofresp() function so that the conndata, line and line length are passed down to it just as with Curl_client_write() rather than each implementation of the function having to query these values. Additionally changed the int return type to bool as this is more representative of the function's usage.
* email: Post STARTLS capability code tidy up (Part Three)Steve Holme2013-02-113-108/+106
| | | | | | Corrected the order of the upgrade_tls() functions and moved the handler upgrade and getsock() functions out from the middle of the state related functions.
* email: Post STARTLS capability code tidy up (Part Two)Steve Holme2013-02-112-89/+91
| | | | | | Corrected the order of the pop3_state_capa() / imap_state_capability() and the pop3_state_capa_resp() / imap_state_capability_resp() functions to match the execution order.
* SOCKS: fix socks proxy when noproxy matchedulion2013-02-111-0/+3
| | | | | | Test 1212 added to verify Bug: http://curl.haxx.se/bug/view.cgi?id=1190
* ntlm: Updated comments for the addition of SASL support to IMAP in v7.29Steve Holme2013-02-111-11/+12
|
* Fix NULL pointer reference when closing an unused multi handle.Linus Nielsen Feltzing2013-02-101-3/+5
|
* email: Post STARTLS capability code tidy up (Part One)Steve Holme2013-02-104-12/+12
| | | | | Corrected the order of the CAPA / CAPABILITY state machine constants to match the execution order.
* imap: Fixed memory leak following commit f6010d9a0359Steve Holme2013-02-101-2/+6
|
* smtp: Added support for the STARTTLS capability (Part Two)Steve Holme2013-02-101-3/+13
| | | | | | | | | Added honoring of the tls_supported flag when starting a TLS upgrade rather than unconditionally attempting it. If the use_ssl flag is set to CURLUSESSL_TRY and the server doesn't support TLS upgrades then the connection will continue to authenticate. If this flag is set to CURLUSESSL_ALL then the connection will complete with a failure as it did previously.
* pop3: Added support for the STLS capability (Part Three)Steve Holme2013-02-101-3/+12
| | | | | | | | | Added honoring of the tls_supported flag when starting a TLS upgrade rather than unconditionally attempting it. If the use_ssl flag is set to CURLUSESSL_TRY and the server doesn't support TLS upgrades then the connection will continue to authenticate. If this flag is set to CURLUSESSL_ALL then the connection will complete with a failure as it did previously.
* imap: Added support for the STARTTLS capability (Part Three)Steve Holme2013-02-101-3/+12
| | | | | | | | | Added honoring of the tls_supported flag when starting a TLS upgrade rather than unconditionally attempting it. If the use_ssl flag is set to CURLUSESSL_TRY and the server doesn't support TLS upgrades then the connection will continue to authenticate. If this flag is set to CURLUSESSL_ALL then the connection will complete with a failure as it did previously.
* pop3: Added support for the STLS capability (Part Two)Steve Holme2013-02-101-20/+38
| | | | | | Added sending of initial CAPA command before STLS is sent. This allows for the detection of the capability before trying to upgrade the connection.