You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by "Ivan Zhakov (Jira)" <ji...@apache.org> on 2022/08/12 08:34:00 UTC
[jira] [Closed] (SERF-167) Calling AcquireCredentialsHandle using unicode strings
[ https://issues.apache.org/jira/browse/SERF-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Zhakov closed SERF-167.
----------------------------
> Calling AcquireCredentialsHandle using unicode strings
> ------------------------------------------------------
>
> Key: SERF-167
> URL: https://issues.apache.org/jira/browse/SERF-167
> Project: serf
> Issue Type: Bug
> Reporter: Serf Importer
> Priority: Major
> Labels: Priority-Medium, Type-Defect
> Fix For: serf-1.3.9
>
>
> 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*
--
This message was sent by Atlassian Jira
(v8.20.10#820010)