Uploaded image for project: 'serf'
  1. serf
  2. SERF-167

Calling AcquireCredentialsHandle using unicode strings

    XMLWordPrintableJSON

Details

    Description

      According to [1], function AcquireCredentialsHandle should be called using unicode strings:

      ' #Remarks
      '
      ' [...]
      '
      ' - The two string parameters must be Unicode strings.

      So instead of using a regular char*, shouldn't `serf__spnego_create_sec_context() ` use a wchar_t pointer like this:

      ```
      const wchar_t* sspi_package = L"Negotiate"; /* or L"NTLM" */
      ```

      [1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa374712(v=vs.85).aspx

      Original issue reported by benjamin.woester

      Attachments

        Activity

          People

            Unassigned Unassigned
            serf-importer Serf Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: