[winpr] renamed WITH_GSS_NO_NTLM_FALLBACK

This commit is contained in:
Armin Novak 2022-12-07 15:42:43 +01:00 committed by akallabeth
parent 819a62a8df
commit f2016c77c5
2 changed files with 5 additions and 5 deletions

View File

@ -87,9 +87,9 @@ if (NOT WIN32 AND NOT ANDROID AND NOT IOS)
endif() endif()
include(CMakeDependentOption) include(CMakeDependentOption)
CMAKE_DEPENDENT_OPTION(WITH_GSS_NO_NTLM_FALLBACK "Do not fall back to NTLM if no kerberos ticket available" OFF "WITH_KRB5" OFF) CMAKE_DEPENDENT_OPTION(WITH_KRB5_NO_NTLM_FALLBACK "Do not fall back to NTLM if no kerberos ticket available" OFF "WITH_KRB5" OFF)
if (WITH_GSS_NO_NTLM_FALLBACK) if (WITH_KRB5_NO_NTLM_FALLBACK)
add_definitions("-DWITH_GSS_NO_NTLM_FALLBACK") add_definitions("-DWITH_KRB5_NO_NTLM_FALLBACK")
endif() endif()
endif() endif()

View File

@ -296,7 +296,7 @@ static BOOL negotiate_get_config(void* pAuthData, BOOL* kerberos, BOOL* ntlm)
WINPR_ASSERT(kerberos); WINPR_ASSERT(kerberos);
WINPR_ASSERT(ntlm); WINPR_ASSERT(ntlm);
#if !defined(WITH_GSS_NO_NTLM_FALLBACK) #if !defined(WITH_KRB5_NO_NTLM_FALLBACK)
*ntlm = TRUE; *ntlm = TRUE;
#else #else
*ntlm = FALSE; *ntlm = FALSE;
@ -316,7 +316,7 @@ static BOOL negotiate_get_config(void* pAuthData, BOOL* kerberos, BOOL* ntlm)
if (negotiate_get_dword(hKey, "kerberos", &dwValue)) if (negotiate_get_dword(hKey, "kerberos", &dwValue))
*kerberos = (dwValue != 0) ? TRUE : FALSE; *kerberos = (dwValue != 0) ? TRUE : FALSE;
#if !defined(WITH_GSS_NO_NTLM_FALLBACK) #if !defined(WITH_KRB5_NO_NTLM_FALLBACK)
if (negotiate_get_dword(hKey, "ntlm", &dwValue)) if (negotiate_get_dword(hKey, "ntlm", &dwValue))
*ntlm = (dwValue != 0) ? TRUE : FALSE; *ntlm = (dwValue != 0) ? TRUE : FALSE;
#endif #endif