From f2016c77c5f712f5891ae2b05b595211fefc6a28 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 7 Dec 2022 15:42:43 +0100 Subject: [PATCH] [winpr] renamed WITH_GSS_NO_NTLM_FALLBACK --- winpr/CMakeLists.txt | 6 +++--- winpr/libwinpr/sspi/Negotiate/negotiate.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/winpr/CMakeLists.txt b/winpr/CMakeLists.txt index 12e135669..6262f056f 100644 --- a/winpr/CMakeLists.txt +++ b/winpr/CMakeLists.txt @@ -87,9 +87,9 @@ if (NOT WIN32 AND NOT ANDROID AND NOT IOS) endif() 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) - if (WITH_GSS_NO_NTLM_FALLBACK) - add_definitions("-DWITH_GSS_NO_NTLM_FALLBACK") + 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_KRB5_NO_NTLM_FALLBACK) + add_definitions("-DWITH_KRB5_NO_NTLM_FALLBACK") endif() endif() diff --git a/winpr/libwinpr/sspi/Negotiate/negotiate.c b/winpr/libwinpr/sspi/Negotiate/negotiate.c index 1636fcd5d..e302172b7 100644 --- a/winpr/libwinpr/sspi/Negotiate/negotiate.c +++ b/winpr/libwinpr/sspi/Negotiate/negotiate.c @@ -296,7 +296,7 @@ static BOOL negotiate_get_config(void* pAuthData, BOOL* kerberos, BOOL* ntlm) WINPR_ASSERT(kerberos); WINPR_ASSERT(ntlm); -#if !defined(WITH_GSS_NO_NTLM_FALLBACK) +#if !defined(WITH_KRB5_NO_NTLM_FALLBACK) *ntlm = TRUE; #else *ntlm = FALSE; @@ -316,7 +316,7 @@ static BOOL negotiate_get_config(void* pAuthData, BOOL* kerberos, BOOL* ntlm) if (negotiate_get_dword(hKey, "kerberos", &dwValue)) *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)) *ntlm = (dwValue != 0) ? TRUE : FALSE; #endif