Skip to content
  1. Mar 15, 2011
  2. Mar 14, 2011
    • Daniel Stenberg's avatar
      protocols: use CURLPROTO_ internally · 13b64d75
      Daniel Stenberg authored
      The PROT_* set of internal defines for the protocols is no longer
      used. We now use the same bits internally as we have defined in the
      public header using the CURLPROTO_ prefix. This is for simplicity and
      because the PROT_* prefix was already used duplicated internally for a
      set of KRB4 values.
      
      The PROTOPT_* defines were moved up to just below the struct definition
      within which they are used.
      13b64d75
    • Daniel Stenberg's avatar
      protocol handler: added flags field · 8831000b
      Daniel Stenberg authored
      The protocol handler struct got a 'flags' field for special information
      and characteristics of the given protocol.
      
      This now enables us to move away central protocol information such as
      CLOSEACTION and DUALCHANNEL from single defines in a central place, out
      to each protocol's definition. It also made us stop abusing the protocol
      field for other info than the protocol, and we could start cleaning up
      other protocol-specific things by adding flags bits to set in the
      handler struct.
      
      The "protocol" field connectdata struct was removed as well and the code
      now refers directly to the conn->handler->protocol field instead. To
      make things work properly, the code now always store a conn->given
      pointer that points out the original handler struct so that the code can
      learn details from the original protocol even if conn->handler is
      modified along the way - for example when switching to go over a HTTP
      proxy.
      8831000b
    • Daniel Stenberg's avatar
      sslgen: define Curl_ssl_connect_nonblocking for non-SSL · fdaa8da7
      Daniel Stenberg authored
      The non-blocking connect improvement for IMAP showed that we didn't
      properly define the Curl_ssl_connect_nonblocking function for non-SSL
      builds.
      
      Reported by: Tor Arntsen
      fdaa8da7
    • Ask Bjørn Hansen's avatar
      mk-ca-bundle.pl: Only download if modified · 3e00af34
      Ask Bjørn Hansen authored
      Only download and convert the certdata to the ca-bundle.crt if Mozilla
      changed the data
      
      The Perl LWP module (which in a bit of a circular reference is used by
      mk-ca-bundle.pl) is now indirectly using this script. I made this small
      tweak to make it easier to automatically maintain the generated
      ca-bundle.crt file in version control.
      3e00af34
  3. Mar 13, 2011
    • Daniel Stenberg's avatar
      SSH: add protocol lock direction · 3eac14b4
      Daniel Stenberg authored
      Some protocols have to call the underlying functions without regard to
      what exact state the socket signals. For example even if the socket says
      "readable", the send function might need to be called while uploading,
      or vice versa. This is the case for libssh2 based protocols: SCP and
      SFTP and we now introduce a define to set those protocols and we make
      the multi interface code aware of this concept.
      
      This is another fix to make test 582 run properly.
      3eac14b4
    • Daniel Stenberg's avatar
      state: add missing state to debug table · 60406ff7
      Daniel Stenberg authored
      As a new state recently was added to the IMAP state machine it has to be
      in the array of names as well as otherwise libcurl crashes when a debug
      version runs...
      60406ff7
    • Daniel Stenberg's avatar
      ssh_statemach_act: set cselect for sftp upload · ca37692b
      Daniel Stenberg authored
      For uploads we want to use the _sending_ function even when the socket
      turns out readable as the underlying libssh2 sftp send function will
      deal with both accordingly. This is what the cselect_bits magic is for.
      
      Fixes test 582.
      ca37692b
  4. Mar 12, 2011
    • Karl M's avatar
      VC: add missing file · 05ebc6f0
      Karl M authored
      http_negotiate_sspi.c was added to the source tree recently
      05ebc6f0
    • Marcus Sundberg's avatar
      GSS: handle reuse fix · 6f0ee717
      Marcus Sundberg authored
      
      
      Make GSS authentication work when a curl handle is reused for multiple
      authenticated requests, by always setting negdata->state in
      output_auth_headers().
      
      Signed-off-by: default avatarMarcus Sundberg <marcus.sundberg@aptilo.com>
      6f0ee717
    • Daniel Stenberg's avatar
      SFTP: gracefully handle shutdown early · 60172a04
      Daniel Stenberg authored
      When using the multi interface and a handle using SFTP was removed very
      early on, we would get a segfault due to the code assumed data was there
      that hadn't yet been setup.
      
      Bug: http://curl.haxx.se/mail/lib-2011-03/0066.html
      Reported by: Saqib Ali
      60172a04
    • Daniel Stenberg's avatar
      PROT_CLOSEACTION: added SFTP and SCP · bec9692a
      Daniel Stenberg authored
      Both SFTP and SCP are protocols that need to shut down stuff properly
      when the connection is about to get torned down. The primary effect of
      not doing this shows up as memory leaks (when using SCP or SFTP with the
      multi interface).
      
      This is one of the problems detected by test 582.
      bec9692a
    • Daniel Stenberg's avatar
      readwrite_upload: stop upload at file size · a07a865d
      Daniel Stenberg authored
      As we know how much to send, we can and should stop once we've sent that
      much data as it avoids having to rely on other mechanisms to detect the
      end.
      
      This is one of the problems detected by test 582.
      
      Reported by: Henry Ludemann <misc@hl.id.au>
      a07a865d
    • Daniel Stenberg's avatar
      sftp upload: expire to advance state machine · cccba729
      Daniel Stenberg authored
      When using the multi_socket API to do SFTP upload, it is important that
      we set a quick expire when leaving the SSH_SFTP_UPLOAD_INIT state as
      there's nothing happening on the socket so there's no read or write to
      wait for, but the next libssh2 API function needs to be called to get
      the ball rolling.
      
      This is one of the problems detected by test 582.
      
      Reported by: Henry Ludemann <misc@hl.id.au>
      cccba729
  5. Mar 10, 2011
    • Daniel Stenberg's avatar
      sources: update source headers · 1aeb635c
      Daniel Stenberg authored
      All C and H files now (should) feature the proper project curl source
      code header, which includes basic info, a copyright statement and some
      basic disclaimers.
      1aeb635c
  6. Mar 08, 2011
  7. Mar 06, 2011
  8. Mar 04, 2011
  9. Feb 26, 2011
  10. Feb 22, 2011
  11. Feb 21, 2011
  12. Feb 20, 2011
  13. Feb 18, 2011
  14. Feb 17, 2011
  15. Feb 16, 2011
  16. Feb 14, 2011
    • Daniel Stenberg's avatar
      gmtime: remove define · f19ace8d
      Daniel Stenberg authored
      It turns out some systems rely on the gmtime or gmtime_r to be defined
      already in the system headers and thus my "precaution" redefining of
      them only caused trouble. They are now removed.
      f19ace8d
  17. Feb 13, 2011