-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to compile with UNICODE defined #84
Comments
I have not been able to reproduce this issue. The way the SSPI headers are included here should ensure that the non wide-character versions of the functions are being used. This job tests building the code with It might not be that best way to handle it but it would be nice with some more information before I look more into this. Thanks. |
I'd have to take another look at it but I'd wager it's because those headers are included somewhere before wintls is included so it doesn't get the chance to define the types wintls wants. |
That could definitely explain it and is not a use case I had thought of, but it ought to be possible to include the SSPI headers before I think the best solution would be to always use the ANSI version of the functions and hopefully get rid of another ugly A pull request would be appreciated. |
If the build system defines UNICODE, AcquireCredentialsHandle should expand to AcquireCredentialsHandleW where AcquireCredentialHandle uses SEC_WCHAR instead of SEC_CHAR. Thus, the following call will always fail to compile:
A similar problem exists with
InitializeSecurityContext
as well. It might be necessary make some sort ofSEC_TCHAR
that defines as eitherSEC_WCHAR
orSEC_CHAR
based on ifUNICODE
is defined. Alternatively, instead of using the generic name that changes based onUNICODE
, could just use the name wanted directly, i.e.AcquireCredentialsHandleA
.The text was updated successfully, but these errors were encountered: