Skip to content

Commit

Permalink
Clang isn't able to handle the non-::'d prefix function. Probably a c…
Browse files Browse the repository at this point in the history
…lang bug.

Bad cast, same as a few others.
  • Loading branch information
wasabii committed Jul 19, 2024
1 parent 3491acb commit 45f8e7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ gss_acquire_cred(OM_uint32 *minor_status,
if (cred->phCredK == NULL) {
goto err;
}
ss = AcquireCredentialsHandle(
ss = ::AcquireCredentialsHandle(
NULL,
L"Kerberos",
cred_usage == 0 ? SECPKG_CRED_BOTH :
Expand Down Expand Up @@ -678,7 +678,7 @@ gss_acquire_cred(OM_uint32 *minor_status,
auth.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
auth.PackageList = (unsigned short*)L"Kerberos";
auth.PackageListLength = 8;
ss = AcquireCredentialsHandle(
ss = ::AcquireCredentialsHandle(
NULL,
L"Negotiate",
cred_usage == 0 ? SECPKG_CRED_BOTH :
Expand Down Expand Up @@ -936,9 +936,9 @@ gss_init_sec_context(OM_uint32 *minor_status,
auth.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
auth.PackageList = (unsigned short*)L"Kerberos";
auth.PackageListLength = 8;
ss = AcquireCredentialsHandle(
ss = ::AcquireCredentialsHandle(
NULL,
isSPNEGO ? L"Negotiate" : L"Kerberos",
isSPNEGO ? (LPTSTR)L"Negotiate" : (LPTSTR)L"Kerberos",
SECPKG_CRED_OUTBOUND,
NULL,
isSPNEGO ? &auth : NULL,
Expand Down

0 comments on commit 45f8e7a

Please sign in to comment.