1. 09 Aug, 2014 6 commits
    • 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
    • Steve Holme's avatar
      sasl_sspi: Fixed memory leak with not releasing Package Info struct · e9b4a969
      Steve Holme authored
      Curl_sasl_create_digest_md5_message() wouldn't free the Package Info
      structure after QuerySecurityPackageInfo() had allocated it.
      e9b4a969
  2. 08 Aug, 2014 7 commits
  3. 07 Aug, 2014 8 commits
  4. 06 Aug, 2014 4 commits
  5. 05 Aug, 2014 3 commits
  6. 04 Aug, 2014 2 commits
  7. 03 Aug, 2014 3 commits
  8. 02 Aug, 2014 2 commits
  9. 01 Aug, 2014 1 commit
  10. 31 Jul, 2014 4 commits