From 45f8e7a97610a4820c5017b7be2be81cfa0d1494 Mon Sep 17 00:00:00 2001 From: Jerome Haltom Date: Thu, 18 Jul 2024 19:20:57 -0500 Subject: [PATCH] Clang isn't able to handle the non-::'d prefix function. Probably a clang bug. Bad cast, same as a few others. --- .../windows/native/sun/security/jgss/sspi_bridge/sspi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp b/jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp index b1de9934a00..e831cdff87d 100644 --- a/jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp +++ b/jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp @@ -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 : @@ -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 : @@ -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,