1. 09 Feb, 2012 1 commit
    • Dave Reisner's avatar
      add library support for tuning TCP_KEEPALIVE · 705f0f7a
      Dave Reisner authored
      This adds three new options to control the behavior of TCP keepalives:
      
      - CURLOPT_TCP_KEEPALIVE: enable/disable probes
      - CURLOPT_TCP_KEEPIDLE: idle time before sending first probe
      - CURLOPT_TCP_KEEPINTVL: delay between successive probes
      
      While not all operating systems support the TCP_KEEPIDLE and
      TCP_KEEPINTVL knobs, the library will still allow these options to be
      set by clients, silently ignoring the values.
      705f0f7a
  2. 25 Jan, 2012 1 commit
  3. 05 Jan, 2012 1 commit
    • Daniel Stenberg's avatar
      curl.h: provide backwards compatible symbols · 52824ed1
      Daniel Stenberg authored
      In commit c834213a we re-used some obsolete error codes, and here are
      two defines that makes sure existing source codes that happen to use any
      of these deprecated ones will still compile.
      
      As usual, define CURL_NO_OLDIES to avoid getting these "precaution
      defines".
      52824ed1
  4. 20 Dec, 2011 2 commits
    • Gokhan Sengun's avatar
      FTP: perform active connections non-blocking · c834213a
      Gokhan Sengun authored
      1- Two new error codes are introduced.
      
      CURLE_FTP_ACCEPT_FAILED to be set whenever ACCEPTing fails because of
      FTP server connected.
      
      CURLE_FTP_ACCEPT_TIMEOUT to be set whenever ACCEPTing timeouts.
      
      Neither of these errors are considered fatal and control connection
      remains OK because it could just be a firewall blocking server to
      connect to the client.
      
      2- One new setopt option was introduced.
      
      CURLOPT_ACCEPTTIMEOUT_MS
      
      It sets the maximum amount of time FTP client is going to wait for a
      server to connect. Internal default accept timeout is 60 seconds.
      c834213a
    • Cédric Deltheil's avatar
      curl.h: add __ANDROID__ macro check · bedfafe3
      Cédric Deltheil authored
      When working with the Android Standalone Toolchain the compiler defines
      this macro:
      
        /path/to/arm-linux-androideabi-gcc -E -dM - < /dev/null \
        | grep -i android
        #define __ANDROID__ 1
      
      We really need to check both ANDROID and __ANDROID__ since I've observed
      that:
      
      * if you use Android.mk file(s) and the 'ndk-build' script (aka vanilla
      way), ANDROID is predefined (see -DANDROID extra C flag),
      
      * if you use the Android Standalone Toolchain, then __ANDROID__ is
      predefined as stated by the compiler
      bedfafe3
  5. 17 Nov, 2011 1 commit
  6. 15 Nov, 2011 1 commit
  7. 15 Oct, 2011 1 commit
  8. 03 Oct, 2011 1 commit
    • Daniel Stenberg's avatar
      share: don't use SSL unless enabled · 15e3e451
      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.
      15e3e451
  9. 29 Sep, 2011 1 commit
  10. 26 Sep, 2011 2 commits
  11. 25 Sep, 2011 1 commit
  12. 13 Sep, 2011 1 commit
  13. 26 Aug, 2011 1 commit
    • Yang Tse's avatar
      NTLM single-sign on adjustments (X) · 407e08ba
      Yang Tse authored
      Functions renamed:
      
      Curl_output_ntlm_sso -> Curl_output_ntlm_wb
      sso_ntlm_close -> wb_ntlm_close
      sso_ntlm_response -> wb_ntlm_response
      sso_ntlm_initiate -> wb_ntlm_initiate
      
      Preprocessor symbols renamed:
      
      CURLAUTH_NTLM_SSO -> CURLAUTH_NTLM_WB
      CURL_VERSION_NTLM_SSO -> CURL_VERSION_NTLM_WB
      407e08ba
  14. 09 Aug, 2011 1 commit
  15. 08 Aug, 2011 1 commit
  16. 05 Aug, 2011 1 commit
  17. 04 Aug, 2011 2 commits
  18. 03 Aug, 2011 2 commits
  19. 18 Jul, 2011 1 commit
  20. 23 Jun, 2011 1 commit
  21. 18 May, 2011 2 commits
  22. 09 May, 2011 1 commit
    • Daniel Stenberg's avatar
      include: cleanup · 2ef7a28a
      Daniel Stenberg authored
      Made the public headers checksrc compliant
      
      Removed types.h (it's been unused since April 2004)
      
      Made the root makefile do make in include by default as well, so that
      TAGS and the checksrc will work better.
      2ef7a28a
  23. 04 May, 2011 1 commit
  24. 22 Apr, 2011 1 commit
  25. 21 Apr, 2011 1 commit
  26. 18 Apr, 2011 2 commits
  27. 17 Apr, 2011 1 commit
  28. 05 Apr, 2011 2 commits
    • Dan Fandrich's avatar
      5b716b7c
    • Daniel Stenberg's avatar
      return code cleanup: build, init and run-time errors · 01f05d0c
      Daniel Stenberg authored
      Stop the abuse of CURLE_FAILED_INIT as return code for things not being
      init related by introducing two new return codes:
      
      CURLE_NOT_BUILT_IN and CURLE_UNKNOWN_OPTION
      
      CURLE_NOT_BUILT_IN replaces return code 4 that has been obsoleted for
      several years. It is used for returning error when something is
      attempted to be used but the feature/option was not enabled or
      explictitly disabled at build-time. Getting this error mostly means that
      libcurl needs to be rebuilt.
      
      CURLE_FAILED_INIT is now saved and used strictly for init
      failures. Getting this problem means something went seriously wrong,
      like a resource shortage or similar.
      
      CURLE_UNKNOWN_OPTION is the option formerly known as
      CURLE_UNKNOWN_TELNET_OPTION (and the old name is still present,
      separately defined to be removed in a very distant future). This error
      code is meant to be used to return when an option is given to libcurl
      that isn't known. This problem would mostly indicate a problem in the
      program that uses libcurl.
      01f05d0c
  29. 22 Mar, 2011 1 commit
  30. 17 Feb, 2011 2 commits
  31. 09 Feb, 2011 1 commit
    • Quinn Slack's avatar
      CURLE_TLSAUTH_FAILED: removed · 3cffcba3
      Quinn Slack authored
      On second thought, I think CURLE_TLSAUTH_FAILED should be eliminated. It
      was only being raised when an internal error occurred while allocating
      or setting the GnuTLS SRP client credentials struct. For TLS
      authentication failures, the general CURLE_SSL_CONNECT_ERROR seems
      appropriate; its error string already includes "passwords" as a possible
      cause. Having a separate TLS auth error code might also cause people to
      think that a TLS auth failure means the wrong username or password was
      entered, when it could also be a sign of a man-in-the-middle attack.
      3cffcba3
  32. 19 Jan, 2011 1 commit