mirror of https://github.com/FreeRDP/FreeRDP
[winpr] renamed WITH_GSS_NO_NTLM_FALLBACK
This commit is contained in:
parent
819a62a8df
commit
f2016c77c5
|
@ -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()
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue