Skip to content
  1. Aug 17, 2014
    • Steve Holme's avatar
      sasl_sspi: Corrected some of the GSSAPI security message error codes · f6e15d25
      Steve Holme authored
      Corrected a number of the error codes that can be returned from the
      Curl_sasl_create_gssapi_security_message() function when things go
      wrong.
      
      It makes more sense to return CURLE_BAD_CONTENT_ENCODING when the
      inbound security challenge can't be decoded correctly or doesn't
      contain the KERB_WRAP_NO_ENCRYPT flag and CURLE_OUT_OF_MEMORY when
      EncryptMessage() fails. Unfortunately the previous error code of
      CURLE_RECV_ERROR was a copy and paste mistakes on my part and should
      have been correct in commit 4b491c67 :(
      f6e15d25
  2. Aug 16, 2014
  3. Aug 15, 2014
  4. Aug 14, 2014
  5. Aug 13, 2014
  6. Aug 12, 2014
  7. Aug 11, 2014
  8. Aug 10, 2014
  9. Aug 09, 2014
    • Steve Holme's avatar
      http_negotiate_sspi: Tidy up to remove the get_gss_name() function · 343befa4
      Steve Holme authored
      Due to the reduction of code in commit 3b924b29 of get_gss_name() the
      function isn't necessary anymore.
      343befa4
    • Steve Holme's avatar
      http_negotiate_sspi: Use a dynamic buffer for SPN generation · 72945b85
      Steve Holme authored
      Updated to use a dynamic buffer for the SPN generation via the recently
      introduced Curl_sasl_build_spn() function rather than a fixed buffer of
      1024 characters, which should have been more than enough, but by using
      the new function removes the need for another variable sname to do the
      wide character conversion in Unicode builds.
      72945b85
    • Steve Holme's avatar
      d01e3043
    • Steve Holme's avatar
      sasl: Use a dynamic buffer for SPN generation · ff5dcb8d
      Steve Holme authored
      Updated Curl_sasl_create_digest_md5_message() to use a dynamic buffer
      for the SPN generation via the recently introduced Curl_sasl_build_spn()
      function rather than a fixed buffer of 128 characters.
      ff5dcb8d
    • Steve Holme's avatar
      sasl_sspi: Fixed SPN not being converted to wchar under Unicode builds · f187372f
      Steve Holme authored
      Curl_sasl_create_digest_md5_message() would simply cast the SPN variable
      to a TCHAR when calling InitializeSecurityContext(). This meant that,
      under Unicode builds, it would not be valid wide character string.
      
      Updated to use the recently introduced Curl_sasl_build_spn() function
      which performs the correct conversion for us.
      f187372f
    • Steve Holme's avatar
      sasl: Introduced Curl_sasl_build_spn() for building a SPN · 1b691228
      Steve Holme authored
      Various parts of the libcurl source code build a SPN for inclusion in
      authentication data. This information is either used by our own native
      generation routines or passed to authentication functions in third-party
      libraries such as SSPI. However, some of these instances use fixed
      buffers rather than dynamically allocated ones and not all of those that
      should, convert to wide character strings in Unicode builds.
      
      Implemented a common function that generates a SPN and performs the
      wide character conversion where necessary.
      1b691228