]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Restore the GSSAPI compilation on Windows (but we should really switch to SSPI/Kerberos)
authorOndřej Surý <ondrej@isc.org>
Wed, 20 May 2020 14:06:18 +0000 (16:06 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 28 May 2020 06:07:57 +0000 (08:07 +0200)
13 files changed:
bin/named/win32/named.vcxproj.in
bin/nsupdate/win32/nsupdate.vcxproj.in
bin/win32/BINDInstall/BINDInstall.vcxproj.in
config.h.win32
lib/dns/Makefile.am
lib/dns/gssapi_link.c
lib/dns/gssapictx-dummy.c [deleted file]
lib/dns/gssapictx.c
lib/dns/win32/libdns.vcxproj.filters.in
lib/dns/win32/libdns.vcxproj.in
lib/ns/win32/libns.vcxproj.in
util/copyrights
win32utils/Configure

index a4f3575da6e2e0aada50d2470e022b1abd71a71a..ff301da561105c2bfdd49d25b9bd978450fdd626 100644 (file)
@@ -59,7 +59,7 @@
       <WarningLevel>Level4</WarningLevel>
       <TreatWarningAsError>false</TreatWarningAsError>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@BUILDER="Visual Studio";_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;BUILDER="Visual Studio";_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
       <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
@@ -87,7 +87,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@BUILDER="Visual Studio";NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;BUILDER="Visual Studio";NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
       <WholeProgramOptimization>false</WholeProgramOptimization>
       <StringPooling>true</StringPooling>
index 38921aaa75f9b225e08c4d24b0f76d827922e691..a7543e7c803b904907bfcdd6da0d5efa8619f2b6 100644 (file)
@@ -59,7 +59,7 @@
       <WarningLevel>Level4</WarningLevel>
       <TreatWarningAsError>false</TreatWarningAsError>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@USE_READLINE_STATIC;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;USE_READLINE_STATIC;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
       <AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
@@ -87,7 +87,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@USE_READLINE_STATIC;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;USE_READLINE_STATIC;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
       <WholeProgramOptimization>false</WholeProgramOptimization>
       <StringPooling>true</StringPooling>
index 66c3d2691c39aa91c28aa5fd47061f0f31c31f5b..cbeafc7bb690cdba51dd03bb66076365117d8222 100644 (file)
@@ -61,7 +61,7 @@
       <WarningLevel>Level4</WarningLevel>
       <TreatWarningAsError>false</TreatWarningAsError>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@@USE_PYTHON@_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;@USE_PYTHON@_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <AdditionalIncludeDirectories>..\..\..;..\include;..\..\..\include;..\..\named\win32\include;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <StringPooling>
       </StringPooling>
@@ -92,7 +92,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>false</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@@USE_PYTHON@NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;@USE_PYTHON@NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <AdditionalIncludeDirectories>..\..\..;..\include;..\..\..\include;..\..\named\win32\include;..\..\..\lib\isc\win32\include;..\..\..\lib\isc\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
       <StringPooling>true</StringPooling>
       <PrecompiledHeader>NotUsing</PrecompiledHeader>
     </ClCompile>
     <ClCompile Include="AccountInfo.cpp">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">UNICODE;WIN32;@USE_GSSAPI@@USE_PYTHON@NDEBUG;_WINDOWS;_MBCS</PreprocessorDefinitions>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">UNICODE;WIN32;@USE_GSSAPI@@USE_PYTHON@_DEBUG;_WINDOWS;_MBCS</PreprocessorDefinitions>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">UNICODE;WIN32;@USE_PYTHON@NDEBUG;_WINDOWS;_MBCS</PreprocessorDefinitions>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">UNICODE;WIN32;@USE_PYTHON@_DEBUG;_WINDOWS;_MBCS</PreprocessorDefinitions>
     </ClCompile>
     <ClCompile Include="BINDInstall.cpp" />
     <ClCompile Include="BINDInstallDlg.cpp" />
index 4f3dc96d305cf87a4db76118f3804a7f09558060..1cff19f0624b5ce2fb1ab98d695b59a1198ad0db 100644 (file)
@@ -354,6 +354,15 @@ typedef __int64 off_t;
 /* Define to 1 if you have the `uv_import' function. */
 @HAVE_UV_IMPORT@
 
+/* GSSAPI Related defines */
+@HAVE_GSSAPI@
+@HAVE_GSSAPI_H@
+@HAVE_GSSAPI_GSSAPI_H@
+@HAVE_GSSAPI_KRB5_H@
+@HAVE_GSSAPI_GSSAPI_KRB5_H@
+@HAVE_KRB5_H@
+@HAVE_KRB5_KRB5_H@
+
 /*
  * Define to nothing if C supports flexible array members, and to 1 if it does
  * not. That way, with a declaration like `struct s { int n; double
index 8280d9a65f52e7240608bb471c543eb7b8a12cb5..5f6abc14db6ea773d0d6fcaf6fbeaefb4cc00262 100644 (file)
@@ -183,6 +183,7 @@ libdns_la_SOURCES =                 \
        ecs.c                           \
        fixedname.c                     \
        forward.c                       \
+       gssapictx.c                     \
        hmac_link.c                     \
        ipkeylist.c                     \
        iptable.c                       \
@@ -253,11 +254,7 @@ libdns_la_SOURCES =                        \
 
 if HAVE_GSSAPI
 libdns_la_SOURCES +=                   \
-       gssapi_link.c                   \
-       gssapictx.c
-else !HAVE_GSSAPI
-libdns_la_SOURCES +=                   \
-       gssapictx-dummy.c
+       gssapi_link.c
 endif
 
 if HAVE_PKCS11
index fe3bc7562f6918c54ffa86c3dd7336134f69b32f..9b18601d037f5cbdf238a655c151bc23e9bfa99e 100644 (file)
@@ -365,5 +365,3 @@ dst__gssapi_init(dst_func_t **funcp) {
        }
        return (ISC_R_SUCCESS);
 }
-
-/*! \file */
diff --git a/lib/dns/gssapictx-dummy.c b/lib/dns/gssapictx-dummy.c
deleted file mode 100644 (file)
index b155ef7..0000000
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * See the COPYRIGHT file distributed with this work for additional
- * information regarding copyright ownership.
- */
-
-#include <stdbool.h>
-#include <stdlib.h>
-
-#include <isc/result.h>
-#include <isc/types.h>
-#include <isc/util.h>
-
-#include <dns/types.h>
-
-#include <dst/gssapi.h>
-
-isc_result_t
-dst_gssapi_acquirecred(const dns_name_t *name, bool initiate,
-                      gss_cred_id_t *cred) {
-       REQUIRE(cred != NULL && *cred == NULL);
-
-       UNUSED(name);
-       UNUSED(initiate);
-       UNUSED(cred);
-
-       return (ISC_R_NOTIMPLEMENTED);
-}
-
-bool
-dst_gssapi_identitymatchesrealmkrb5(const dns_name_t *signer,
-                                   const dns_name_t *name,
-                                   const dns_name_t *realm, bool subdomain) {
-       UNUSED(signer);
-       UNUSED(name);
-       UNUSED(realm);
-       UNUSED(subdomain);
-
-       return (false);
-}
-
-bool
-dst_gssapi_identitymatchesrealmms(const dns_name_t *signer,
-                                 const dns_name_t *name,
-                                 const dns_name_t *realm, bool subdomain) {
-       UNUSED(signer);
-       UNUSED(name);
-       UNUSED(realm);
-       UNUSED(subdomain);
-
-       return (false);
-}
-
-isc_result_t
-dst_gssapi_releasecred(gss_cred_id_t *cred) {
-       UNUSED(cred);
-
-       return (ISC_R_NOTIMPLEMENTED);
-}
-
-isc_result_t
-dst_gssapi_initctx(const dns_name_t *name, isc_buffer_t *intoken,
-                  isc_buffer_t *outtoken, gss_ctx_id_t *gssctx,
-                  isc_mem_t *mctx, char **err_message) {
-       UNUSED(name);
-       UNUSED(intoken);
-       UNUSED(outtoken);
-       UNUSED(gssctx);
-       UNUSED(mctx);
-       UNUSED(err_message);
-
-       return (ISC_R_NOTIMPLEMENTED);
-}
-
-isc_result_t
-dst_gssapi_acceptctx(gss_cred_id_t cred, const char *gssapi_keytab,
-                    isc_region_t *intoken, isc_buffer_t **outtoken,
-                    gss_ctx_id_t *ctxout, dns_name_t *principal,
-                    isc_mem_t *mctx) {
-       UNUSED(cred);
-       UNUSED(gssapi_keytab);
-       UNUSED(intoken);
-       UNUSED(outtoken);
-       UNUSED(ctxout);
-       UNUSED(principal);
-       UNUSED(mctx);
-
-       return (ISC_R_NOTIMPLEMENTED);
-}
-
-isc_result_t
-dst_gssapi_deletectx(isc_mem_t *mctx, gss_ctx_id_t *gssctx) {
-       UNUSED(mctx);
-       UNUSED(gssctx);
-       return (ISC_R_NOTIMPLEMENTED);
-}
-
-/*! \file */
index bf75147ef3a441d1a3b42546e57c95e772eab283..5852b5e35dde7660bf09afeb0ff03e571fc70e05 100644 (file)
@@ -61,6 +61,8 @@
 
 #include "dst_internal.h"
 
+#if HAVE_GSSAPI
+
 #ifndef GSS_KRB5_MECHANISM
 static unsigned char krb5_mech_oid_bytes[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7,
                                               0x12, 0x01, 0x02, 0x02 };
@@ -831,6 +833,98 @@ gss_error_tostring(uint32_t major, uint32_t minor, char *buf, size_t buflen) {
        return (buf);
 }
 
+#else
+
+isc_result_t
+dst_gssapi_acquirecred(const dns_name_t *name, bool initiate,
+                      gss_cred_id_t *cred) {
+       REQUIRE(cred != NULL && *cred == NULL);
+
+       UNUSED(name);
+       UNUSED(initiate);
+       UNUSED(cred);
+
+       return (ISC_R_NOTIMPLEMENTED);
+}
+
+bool
+dst_gssapi_identitymatchesrealmkrb5(const dns_name_t *signer,
+                                   const dns_name_t *name,
+                                   const dns_name_t *realm, bool subdomain) {
+       UNUSED(signer);
+       UNUSED(name);
+       UNUSED(realm);
+       UNUSED(subdomain);
+
+       return (false);
+}
+
+bool
+dst_gssapi_identitymatchesrealmms(const dns_name_t *signer,
+                                 const dns_name_t *name,
+                                 const dns_name_t *realm, bool subdomain) {
+       UNUSED(signer);
+       UNUSED(name);
+       UNUSED(realm);
+       UNUSED(subdomain);
+
+       return (false);
+}
+
+isc_result_t
+dst_gssapi_releasecred(gss_cred_id_t *cred) {
+       UNUSED(cred);
+
+       return (ISC_R_NOTIMPLEMENTED);
+}
+
+isc_result_t
+dst_gssapi_initctx(const dns_name_t *name, isc_buffer_t *intoken,
+                  isc_buffer_t *outtoken, gss_ctx_id_t *gssctx,
+                  isc_mem_t *mctx, char **err_message) {
+       UNUSED(name);
+       UNUSED(intoken);
+       UNUSED(outtoken);
+       UNUSED(gssctx);
+       UNUSED(mctx);
+       UNUSED(err_message);
+
+       return (ISC_R_NOTIMPLEMENTED);
+}
+
+isc_result_t
+dst_gssapi_acceptctx(gss_cred_id_t cred, const char *gssapi_keytab,
+                    isc_region_t *intoken, isc_buffer_t **outtoken,
+                    gss_ctx_id_t *ctxout, dns_name_t *principal,
+                    isc_mem_t *mctx) {
+       UNUSED(cred);
+       UNUSED(gssapi_keytab);
+       UNUSED(intoken);
+       UNUSED(outtoken);
+       UNUSED(ctxout);
+       UNUSED(principal);
+       UNUSED(mctx);
+
+       return (ISC_R_NOTIMPLEMENTED);
+}
+
+isc_result_t
+dst_gssapi_deletectx(isc_mem_t *mctx, gss_ctx_id_t *gssctx) {
+       UNUSED(mctx);
+       UNUSED(gssctx);
+       return (ISC_R_NOTIMPLEMENTED);
+}
+
+char *
+gss_error_tostring(uint32_t major, uint32_t minor, char *buf, size_t buflen) {
+       snprintf(buf, buflen, "GSSAPI error: Major = %u, Minor = %u.", major,
+                minor);
+
+       return (buf);
+}
+
+#endif
+
 void
 gss_log(int level, const char *fmt, ...) {
        va_list ap;
@@ -840,5 +934,3 @@ gss_log(int level, const char *fmt, ...) {
                       ISC_LOG_DEBUG(level), fmt, ap);
        va_end(ap);
 }
-
-/*! \file */
index 4608114871291a000a297ad5dbbfda4d4ee0e435..5ba61623f035410c36492b9c7bcbc1559216b094 100644 (file)
     <ClCompile Include="..\dst_result.c">
       <Filter>Dst Source Files</Filter>
     </ClCompile>
+@IF GSSAPI
     <ClCompile Include="..\gssapi_link.c">
       <Filter>Dst Source Files</Filter>
     </ClCompile>
+@END GSSAPI
     <ClCompile Include="..\gssapictx.c">
       <Filter>Dst Source Files</Filter>
     </ClCompile>
       <Filter>Dst Source Files</Filter>
     </ClCompile>
 @END PKCS11
-    <ClCompile Include="..\spnego.c">
-      <Filter>Dst Source Files</Filter>
-    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="..\code.h">
       <Filter>Dst Header Files</Filter>
     </ClInclude>
 @END PKCS11
-    <ClInclude Include="..\spnego.h">
-      <Filter>Dst Header Files</Filter>
-    </ClInclude>
   </ItemGroup>
 </Project>
index 20b06f1de20657e109580a09e468aaf6df167d34..b169789f31f788f4fdad98bc3893d3fd4ec5aaf8 100644 (file)
@@ -59,7 +59,7 @@
       <WarningLevel>Level4</WarningLevel>
       <TreatWarningAsError>false</TreatWarningAsError>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>BIND9;WIN32;@USE_GSSAPI@@USE_ISC_SPNEGO@_DEBUG;_WINDOWS;_USRDLL;LIBDNS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>BIND9;WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBDNS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
       <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;@LIBXML2_INC@@OPENSSL_INC@@GSSAPI_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <FunctionLevelLinking>true</FunctionLevelLinking>
@@ -89,7 +89,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
-      <PreprocessorDefinitions>BIND9;WIN32;@USE_GSSAPI@@USE_ISC_SPNEGO@NDEBUG;_WINDOWS;_USRDLL;LIBDNS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>BIND9;WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBDNS_EXPORTS;%(PreprocessorDefinitions);%(PreprocessorDefinitions);%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
       <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;@LIBXML2_INC@@OPENSSL_INC@@GSSAPI_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
     <ClCompile Include="..\geoip2.c" />
 @END GEOIP
     <ClCompile Include="..\gssapictx.c" />
+@IF GSSAPI
     <ClCompile Include="..\gssapi_link.c" />
+@END GSSAPI
     <ClCompile Include="..\hmac_link.c" />
     <ClCompile Include="..\ipkeylist.c" />
     <ClCompile Include="..\iptable.c" />
     <ClCompile Include="..\sdb.c" />
     <ClCompile Include="..\sdlz.c" />
     <ClCompile Include="..\soa.c" />
-    <ClCompile Include="..\spnego.c" />
     <ClCompile Include="..\ssu.c" />
     <ClCompile Include="..\ssu_external.c" />
     <ClCompile Include="..\stats.c" />
     <ClInclude Include="..\include\dst\result.h" />
     <ClInclude Include="..\rbtdb.h" />
     <ClInclude Include="..\rdatalist_p.h" />
-    <ClInclude Include="..\spnego.h" />
   </ItemGroup>
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
   <ImportGroup Label="ExtensionTargets">
index 125699e16ebcfd1b0d35b29b80137f9fc3b243ff..8d2073c6bb00337df2e862b41e4203f10673c28e 100644 (file)
@@ -58,7 +58,7 @@
       <WarningLevel>Level4</WarningLevel>
       <TreatWarningAsError>false</TreatWarningAsError>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@_DEBUG;_USRDLL;LIBNS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;_DEBUG;_USRDLL;LIBNS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
       <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\..\lib\dns\include;@LIBXML2_INC@@OPENSSL_INC@@GSSAPI_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <FunctionLevelLinking>true</FunctionLevelLinking>
@@ -88,7 +88,7 @@
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;@USE_GSSAPI@NDEBUG;_USRDLL;LIBNS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>WIN32;NDEBUG;_USRDLL;LIBNS_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <ForcedIncludeFiles>..\..\..\config.h</ForcedIncludeFiles>
       <AdditionalIncludeDirectories>.\;..\..\..\;include;..\include;..\..\isc\win32;..\..\isc\win32\include;..\..\isc\include;..\..\..\lib\dns\include;@LIBXML2_INC@@OPENSSL_INC@@GSSAPI_INC@@GEOIP_INC@%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
index 119596c90b4c4529e922f5ff56768c15c09e5721..2246d58bb36ce94b9d849b2a1c0f236854f8398f 100644 (file)
 ./lib/dns/gen.c                                        C       1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2012,2013,2014,2015,2016,2017,2018,2019,2020
 ./lib/dns/geoip2.c                             C       2019,2020
 ./lib/dns/gssapi_link.c                                C       2000,2001,2002,2004,2005,2006,2007,2008,2009,2011,2012,2013,2014,2015,2016,2018,2019,2020
-./lib/dns/gssapictx-dummy.c                    C       2020
 ./lib/dns/gssapictx.c                          C       2000,2001,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020
 ./lib/dns/hmac_link.c                          C.NAI   1999,2000,2001,2002,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020
 ./lib/dns/include/dns/acl.h                    C       1999,2000,2001,2002,2004,2005,2006,2007,2009,2011,2013,2014,2016,2017,2018,2019,2020
index f15680f4007c6322b1c41937b182280a73c2f466..871ec3d7b3140a13b365a7e89fcca6171f3f5809 100644 (file)
@@ -176,6 +176,13 @@ my %configdefh;
 my @substdefh = ("PACKAGE_CONFIGARGS",
                  "DNS_RDATASET_FIXED",
                  "HAVE_GEOIP2",
+                 "HAVE_GSSAPI",
+                 "HAVE_GSSAPI_H",
+                 "HAVE_GSSAPI_KRB5_H",
+                 "HAVE_KRB5_H",
+                 "HAVE_GSSAPI_GSSAPI_H",
+                 "HAVE_GSSAPI_GSSAPI_KRB5_H",
+                 "HAVE_KRB5_KRB5_H",
                  "HAVE_LIBXML2",
                  "HAVE_OPENSSL_ED25519",
                  "HAVE_OPENSSL_ED448",
@@ -303,9 +310,7 @@ my @substvar = ("BIND9_VERSION",
 my %configdefd;
 
 my @substdefd = ("PK11_LIB_LOCATION",
-                 "USE_GSSAPI",
-                 "USE_PYTHON",
-                 "USE_ISC_SPNEGO");
+                 "USE_PYTHON");
 
 # conditions
 
@@ -334,7 +339,6 @@ my @allcond = (@substcond, "NOTYET", "NOLONGER");
 my @enablelist = ("developer",
                   "fixed-rrset",
                   "intrinsics",
-                  "isc-spnego",
                   "native-pkcs11",
                   "openssl-hash",
                   "querytrace");
@@ -388,7 +392,6 @@ my @help = (
 "  enable-intrinsics     enable intrinsic/atomic functions [default=yes]\n",
 "  enable-native-pkcs11  use native PKCS#11 for all crypto [default=no]\n",
 "  enable-openssl-hash   use OpenSSL for hash functions [default=yes]\n",
-"  enable-isc-spnego     use SPNEGO from lib/dns [default=yes]\n",
 "  enable-fixed-rrset    enable fixed rrset ordering [default=no]\n",
 "  enable-developer      enable developer build settings [default=no]\n",
 "  enable-querytrace     enable very verbose query trace [default=no]\n",
@@ -431,7 +434,6 @@ my $enable_intrinsics = "yes";
 my $cryptolib = "";
 my $enable_native_pkcs11 = "no";
 my $enable_crypto_rand = "yes";
-my $enable_isc_spnego = "yes";
 my $enable_fixed_rrset = "no";
 my $enable_developer = "no";
 my $enable_querytrace = "no";
@@ -642,10 +644,6 @@ sub myenable {
         if ($val =~ /^yes$/i) {
             $enable_native_pkcs11 = "yes";
         }
-    } elsif ($key =~ /^isc-spnego$/i) {
-        if ($val =~ /^no$/i) {
-            $enable_isc_spnego = "no";
-        }
     } elsif ($key =~ /^fixed-rrset$/i) {
         if ($val =~ /^yes$/i) {
             $enable_fixed_rrset = "yes";
@@ -896,11 +894,6 @@ if ($verbose) {
         print "native-pkcs11: disabled\n";
     }
     print "openssl-hash: enabled\n";
-    if ($enable_isc_spnego eq "yes") {
-        print "isc-spnego: enabled\n";
-    } else {
-        print "isc-spnego: disabled\n";
-    }
     if ($enable_fixed_rrset eq "yes") {
         print "fixed-rrset: enabled\n";
     } else {
@@ -1630,18 +1623,33 @@ if ($use_gssapi eq "no") {
     if ($verbose) {
         print "checking for gssapi directory at \"$gssapi_path\"\n";
     }
-    $configcond{"GSSAPI"} = 1;
-    $configdefd{"USE_GSSAPI"} = "GSSAPI";
-    if (!-f File::Spec->catfile($gssapi_path, "include",
+    $configcond{"GEOIP"} = 1;
+    $configdefh{"HAVE_GSSAPI"} = 1;
+    if (-f File::Spec->catfile($gssapi_path, "include",
+                                "gssapi", "gssapi.h")) {
+       $configdefh{"HAVE_GSSAPI_GSSAPI_H"} = 1;
+    } elsif (-f File::Spec->catfile($gssapi_path, "include",
                                 "gssapi", "gssapi.h")) {
-        die "can't find gssapi.h include\n";
+       $configdefh{"HAVE_GSSAPI_H"} = 1;
+    } else {
+       die "can't find gssapi.h include\n";
     }
-    if (!-f File::Spec->catfile($gssapi_path, "include",
+    if (-f File::Spec->catfile($gssapi_path, "include",
                                 "gssapi", "gssapi_krb5.h")) {
+       $configdefh{"HAVE_GSSAPI_GSSAPI_KRB5_H"} = 1;
+    } elsif (-f File::Spec->catfile($gssapi_path, "include",
+                                     "gssapi_krb5.h")) {
+       $configdefh{"HAVE_GSSAPI_KRB5_H"} = 1;
+    } else {
         die "can't find gssapi_krb5.h include\n";
     }
-    if (!-f File::Spec->catfile($gssapi_path, "include",
+    if (-f File::Spec->catfile($gssapi_path, "include",
+                                "krb5", "krb5.h")) {
+       $configdefh{"HAVE_KRB5_KRB5_H"} = 1;
+    } elsif (-f File::Spec->catfile($gssapi_path, "include",
                                 "krb5", "krb5.h")) {
+       $configdefh{"HAVE_KRB5_H"} = 1;
+    } else {
         die "can't find krb5.h include\n";
     }
     $configinc{"GSSAPI_INC"} = File::Spec->catdir($gssapi_path, "include");
@@ -1713,16 +1721,6 @@ if ($use_gssapi eq "no") {
     $configdll{"WSHELP_DLL"} = "$wshelp_dll";
 }
 
-# enable-isc-spnego
-if ($use_gssapi ne "yes") {
-    $enable_isc_spnego = "no";
-} elsif ($enable_isc_spnego eq "yes") {
-    if ($use_gssapi eq "no") {
-        die "No GSSAPI for SPNEGO\n";
-    }
-    $configdefd{"USE_ISC_SPNEGO"} = "USE_ISC_SPNEGO";
-}
-
 # disable-auto-validation
 $configdefh{"VALIDATION_DEFAULT"} = "\"$validation_default\"";
 
@@ -2765,7 +2763,6 @@ exit 0;
 #  --enable-symtable incompatible with DLLs (or libtool)
 #  --enable-ipv6 included without a way to disable it
 #  --enable-atomic supported (renamed to intrinsic)
-#  --enable-isc-spnego supported (part of GSSAPI)
 #  --enable-fixed-rrset supported
 #  --enable-querytrace supported
 #  --enable-full-report supported by verbose