Skip to content
Snippets Groups Projects
  1. Aug 08, 2016
    • Jay Satiro's avatar
      cmake: Enable win32 large file support by default · 11049e00
      Jay Satiro authored
      All compilers used by cmake in Windows should support large files.
      
      - Add test SIZEOF_OFF_T
      - Remove outdated test SIZEOF_CURL_OFF_T
      - Turn on USE_WIN32_LARGE_FILES in Windows
      - Check for 'Largefile' during the features output
      11049e00
  2. May 30, 2016
  3. Nov 11, 2015
  4. Nov 10, 2015
    • Douglas Creager's avatar
      cmake: Add missing feature macros in config header · a215381c
      Douglas Creager authored
      The curl_config.h file can be generated either from curl_config.h.cmake
      or curl_config.h.in, depending on whether you're building using CMake or
      the autotools.  The CMake template header doesn't include entries for
      all of the protocols that you can disable, which (I think) means that
      you can't actually disable those protocols when building via CMake.
      
      Closes #523
      a215381c
  5. Aug 25, 2015
  6. Mar 05, 2015
    • Daniel Stenberg's avatar
      openssl: remove all uses of USE_SSLEAY · 709cf76f
      Daniel Stenberg authored
      SSLeay was the name of the library that was subsequently turned into
      OpenSSL many moons ago (1999). curl does not work with the old SSLeay
      library since years. This is now reflected by only using USE_OPENSSL in
      code that depends on OpenSSL.
      709cf76f
  7. Jan 18, 2015
  8. Dec 26, 2014
  9. Dec 04, 2014
    • Peter Wu's avatar
      libcurl: add UNIX domain sockets support · 970c22f9
      Peter Wu authored
      The ability to do HTTP requests over a UNIX domain socket has been
      requested before, in Apr 2008 [0][1] and Sep 2010 [2]. While a
      discussion happened, no patch seems to get through. I decided to give it
      a go since I need to test a nginx HTTP server which listens on a UNIX
      domain socket.
      
      One patch [3] seems to make it possible to use the
      CURLOPT_OPENSOCKETFUNCTION function to gain a UNIX domain socket.
      Another person wrote a Go program which can do HTTP over a UNIX socket
      for Docker[4] which uses a special URL scheme (though the name contains
      cURL, it has no relation to the cURL library).
      
      This patch considers support for UNIX domain sockets at the same level
      as HTTP proxies / IPv6, it acts as an intermediate socket provider and
      not as a separate protocol. Since this feature affects network
      operations, a new feature flag was added ("unix-sockets") with a
      corresponding CURL_VERSION_UNIX_SOCKETS macro.
      
      A new CURLOPT_UNIX_SOCKET_PATH option is added and documented. This
      option enables UNIX domain sockets support for all requests on the
      handle (replacing IP sockets and skipping proxies).
      
      A new configure option (--enable-unix-sockets) and CMake option
      (ENABLE_UNIX_SOCKETS) can disable this optional feature. Note that I
      deliberately did not mark this feature as advanced, this is a
      feature/component that should easily be available.
      
       [0]: http://curl.haxx.se/mail/lib-2008-04/0279.html
       [1]: http://daniel.haxx.se/blog/2008/04/14/http-over-unix-domain-sockets/
       [2]: http://sourceforge.net/p/curl/feature-requests/53/
       [3]: http://curl.haxx.se/mail/lib-2008-04/0361.html
       [4]: https://github.com/Soulou/curl-unix-socket
      
      
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      970c22f9
  10. Nov 10, 2014
    • Peter Wu's avatar
      cmake: add ENABLE_THREADED_RESOLVER, rename ARES · 17d27805
      Peter Wu authored
      
      Fix detection of the AsynchDNS feature which not just depends on
      pthreads support, but also on whether USE_POSIX_THREADS is set or not.
      Caught by test 1014.
      
      This patch adds a new ENABLE_THREADED_RESOLVER option (corresponding to
      --enable-threaded-resolver of autotools) which also needs a check for
      HAVE_PTHREAD_H.
      
      For symmetry with autotools, CURL_USE_ARES is renamed to ENABLE_ARES
      (--enable-ares). Checks that test for the availability actually use
      USE_ARES instead as that is the result of whether a-res is available or
      not (in practice this does not matter as CARES is marked as required
      package, but nevertheless it is better to write the intent).
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      17d27805
  11. Aug 25, 2014
  12. Jul 16, 2014
    • David Woodhouse's avatar
      Remove all traces of FBOpenSSL SPNEGO support · 9ad282b1
      David Woodhouse authored
      This is just fundamentally broken. SPNEGO (RFC4178) is a protocol which
      allows client and server to negotiate the underlying mechanism which will
      actually be used to authenticate. This is *often* Kerberos, and can also
      be NTLM and other things. And to complicate matters, there are various
      different OIDs which can be used to specify the Kerberos mechanism too.
      
      A SPNEGO exchange will identify *which* GSSAPI mechanism is being used,
      and will exchange GSSAPI tokens which are appropriate for that mechanism.
      
      But this SPNEGO implementation just strips the incoming SPNEGO packet
      and extracts the token, if any. And completely discards the information
      about *which* mechanism is being used. Then we *assume* it was Kerberos,
      and feed the token into gss_init_sec_context() with the default
      mechanism (GSS_S_NO_OID for the mech_type argument).
      
      Furthermore... broken as this code is, it was never even *used* for input
      tokens anyway, because higher layers of curl would just bail out if the
      server actually said anything *back* to us in the negotiation. We assume
      that we send a single token to the server, and it accepts it. If the server
      wants to continue the exchange (as is required for NTLM and for SPNEGO
      to do anything useful), then curl was broken anyway.
      
      So the only bit which actually did anything was the bit in
      Curl_output_negotiate(), which always generates an *initial* SPNEGO
      token saying "Hey, I support only the Kerberos mechanism and this is its
      token".
      
      You could have done that by manually just prefixing the Kerberos token
      with the appropriate bytes, if you weren't going to do any proper SPNEGO
      handling. There's no need for the FBOpenSSL library at all.
      
      The sane way to do SPNEGO is just to *ask* the GSSAPI library to do
      SPNEGO. That's what the 'mech_type' argument to gss_init_sec_context()
      is for. And then it should all Just Work™.
      
      That 'sane way' will be added in a subsequent patch, as will bug fixes
      for our failure to handle any exchange other than a single outbound
      token to the server which results in immediate success.
      9ad282b1
  13. Apr 13, 2012
  14. Apr 12, 2012
  15. Apr 11, 2012
    • Yang Tse's avatar
      build adjustments: CURL_HIDDEN_SYMBOLS no longer defined in config files · 9e24b9c7
      Yang Tse authored
      configure script now provides conditional definitions for Makefile.am
      that result in CURL_HIDDEN_SYMBOLS being defined by resulting makefiles
      when appropriate.
      
      Additionally, configure script option for symbol hiding control is now
      named --enable-symbol-hiding --disable-symbol-hiding. While still valid,
      old option name --enable-hidden-symbols --disable-hidden-symbols will
      be deprecated in some future release.
      9e24b9c7
  16. Jun 21, 2011
  17. Jun 04, 2010
    • Yang Tse's avatar
      Enable OpenLDAP support for cygwin builds. · 43d20d81
      Yang Tse authored
      Enable OpenLDAP support for cygwin builds. This support was disabled back
      in 2008 due to incompatibilities between OpenSSL and OpenLDAP headers.
      cygwin's OpenSSL 0.9.8l and OpenLDAP 2.3.43 versions on cygwin 1.5.25
      allow building an OpenLDAP enabled libcurl supporting back to Windows 95.
      
      Remove non-functional CURL_LDAP_HYBRID code and references.
      43d20d81
  18. May 05, 2010
    • Hoi-Ho Chan's avatar
      PolarSSL: initial support added · 51427e19
      Hoi-Ho Chan authored
      This is Hoi-Ho Chan's patch with some minor fixes by me. There
      are some potential issues in this, but none worse than we can
      sort out on the list and over time.
      51427e19
  19. Mar 24, 2010
    • Bill Hoffman's avatar
      Fix curl CMake build. · d42f9329
      Bill Hoffman authored
      This commit fixes the cmake build of curl, and cleans up the
      cmake code a little.  It removes some commented out code and
      some trailing whitespace.  To get curl to build the binary
      tree include/curl directory needed to be added to the include
      path. Also, SIZEOF_SHORT needed to be added.  A check for the
      lack of defines of SIZEOF_* for warnless.c was added.
      d42f9329
  20. Jul 14, 2009
  21. May 02, 2009
  22. Apr 09, 2009
  23. Apr 08, 2009
  24. Apr 02, 2009
Loading