Windows fixes: enable DNS lookups; turn on KDC lookup by default
authorSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:57:53 +0000 (20:57 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 28 Sep 2011 20:57:53 +0000 (20:57 +0000)
Moved wshelper from windows to util to fix build order dependencies.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25273 dc483132-0cff-0310-8789-dd5450dbe970

24 files changed:
src/Makefile.in
src/config/win-pre.in
src/util/Makefile.in
src/util/wshelper/Makefile.in [moved from src/windows/wshelper/Makefile.in with 95% similarity]
src/util/wshelper/dllmain.c [moved from src/windows/wshelper/dllmain.c with 100% similarity]
src/util/wshelper/gethna.c [moved from src/windows/wshelper/gethna.c with 100% similarity]
src/util/wshelper/hesiod.c [moved from src/windows/wshelper/hesiod.c with 100% similarity]
src/util/wshelper/hesmailh.c [moved from src/windows/wshelper/hesmailh.c with 100% similarity]
src/util/wshelper/hespwnam.c [moved from src/windows/wshelper/hespwnam.c with 100% similarity]
src/util/wshelper/hesservb.c [moved from src/windows/wshelper/hesservb.c with 100% similarity]
src/util/wshelper/inetaton.c [moved from src/windows/wshelper/inetaton.c with 100% similarity]
src/util/wshelper/pwd.h [moved from src/windows/wshelper/pwd.h with 100% similarity]
src/util/wshelper/res_comp.c [moved from src/windows/wshelper/res_comp.c with 100% similarity]
src/util/wshelper/res_init.c [moved from src/windows/wshelper/res_init.c with 100% similarity]
src/util/wshelper/res_quer.c [moved from src/windows/wshelper/res_quer.c with 100% similarity]
src/util/wshelper/resource.h [moved from src/windows/wshelper/resource.h with 100% similarity]
src/util/wshelper/resource.rc [moved from src/windows/wshelper/resource.rc with 94% similarity]
src/util/wshelper/string.rc [moved from src/windows/wshelper/string.rc with 100% similarity]
src/util/wshelper/ver.rc.inc [moved from src/windows/wshelper/ver.rc.inc with 100% similarity]
src/util/wshelper/wsh-int.h [moved from src/windows/wshelper/wsh-int.h with 100% similarity]
src/util/wshelper/wshelp32.def [moved from src/windows/wshelper/wshelp32.def with 100% similarity]
src/util/wshelper/wshelp64.def [moved from src/windows/wshelper/wshelp64.def with 100% similarity]
src/util/wshelper/wshelper.def [moved from src/windows/wshelper/wshelper.def with 100% similarity]
src/windows/Makefile.in

index 56b3d45448d339d9cc28b5b49ac9434bfc18b79b..4be7d0d0c222eb17a7f124b83066db3dbfe1e302 100644 (file)
@@ -191,7 +191,8 @@ WINMAKEFILES=Makefile \
        util\et\Makefile util\profile\Makefile util\profile\testmod\Makefile \
        util\support\Makefile \
        util\windows\Makefile \
-       windows\Makefile windows\wshelper\Makefile windows\lib\Makefile \
+       util\wshelper\Makefile \
+       windows\Makefile windows\lib\Makefile \
        windows\cns\Makefile windows\gina\Makefile \
        windows\gss\Makefile windows\ms2mit\Makefile \
        windows\wintel\Makefile windows\kfwlogon\Makefile windows\leashdll\Makefile
@@ -304,14 +305,14 @@ WINMAKEFILES=Makefile \
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##util\windows\Makefile: util\windows\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
+##DOS##util\wshelper\Makefile: util\wshelper\Makefile.in $(MKFDEP)
+##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##windows\Makefile: windows\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##windows\lib\Makefile: windows\lib\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##windows\cns\Makefile: windows\cns\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
-##DOS##windows\wshelper\Makefile: windows\wshelper\Makefile.in $(MKFDEP)
-##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##windows\gina\Makefile: windows\gina\Makefile.in $(MKFDEP)
 ##DOS##        $(WCONFIG) config < $@.in > $@
 ##DOS##windows\gss\Makefile: windows\gss\Makefile.in $(MKFDEP)
@@ -555,6 +556,8 @@ install-windows::
        copy appl\gss-sample\$(OUTPRE)gss-server.exe "$(KRB_INSTALL_DIR)\bin\."
        copy appl\gss-sample\$(OUTPRE)gss-client.exe "$(KRB_INSTALL_DIR)\bin\."
        copy windows\ms2mit\$(OUTPRE)ms2mit.exe "$(KRB_INSTALL_DIR)\bin\."
+       copy util\wshelper\$(OUTPRE)$(DLIB).lib "$(KRB_INSTALL_DIR)\lib\."
+       copy util\wshelper\$(OUTPRE)$(DLIB).dll "$(KRB_INSTALL_DIR)\bin\."
        copy ccapi\lib\win\srctmp\$(OUTPRE)$(CCLIB).dll "$(KRB_INSTALL_DIR)\bin\."
        copy ccapi\server\win\srctmp\$(OUTPRE)ccapiserver.exe "$(KRB_INSTALL_DIR)\bin\."
        copy clients\kvno\$(OUTPRE)kvno.exe "$(KRB_INSTALL_DIR)\bin\."
index dc68573a8c0724114c70aece45ad14dc8ceeed1a..bcef2f4b82db9ae3c47e1cc53a47a77da7aae906 100644 (file)
@@ -88,6 +88,11 @@ C=.^\
 srcdir = .
 top_srcdir = $(srcdir)\$(BUILDTOP)
 
+KRB5_USE_DNS=1
+KRB5_USE_DNS_KDC=1
+DNS_LIB=$(BUILDTOP)\util\wshelper\$(OUTPRE)$(DLIB).lib
+DNS_INC=$(BUILDTOP)\util\wshelper
+
 !if defined(KRB5_USE_DNS) || defined(KRB5_USE_DNS_KDC) || defined(KRB5_USE_DNS_REALMS)
 !if defined(KRB5_NO_WSHELPER)
 DNSMSG=resolver
@@ -195,6 +200,7 @@ KLIB=$(BUILDTOP)\lib\$(OUTPRE)krb5_32.lib
 K4LIB=$(BUILDTOP)\lib\$(OUTPRE)krb4_32.lib
 SLIB=$(BUILDTOP)\lib\$(OUTPRE)k5sprt32.lib
 GLIB=$(BUILDTOP)\lib\$(OUTPRE)gssapi32.lib
+DLIB=wshelp32
 CCLIB=krbcc32
 WLIB=
 
@@ -205,6 +211,7 @@ KLIB=$(BUILDTOP)\lib\$(OUTPRE)krb5_64.lib
 K4LIB=$(BUILDTOP)\lib\$(OUTPRE)krb4_64.lib
 SLIB=$(BUILDTOP)\lib\$(OUTPRE)k5sprt64.lib
 GLIB=$(BUILDTOP)\lib\$(OUTPRE)gssapi64.lib
+DLIB=wshelp64
 CCLIB=krbcc64
 WLIB=
 
index 6c7f8a7ff0426ea6f28cbe67117102e7af44ba69..c791c0626ab437b4ae09531b192966e2199be1e8 100644 (file)
@@ -6,7 +6,7 @@ mydir=util
 SUBDIRS=support $(MAYBE_ET_@COM_ERR_VERSION@) $(MAYBE_SS_@SS_VERSION@) \
        profile send-pr gss-kernel-lib $(MAYBE_VERTO_@VERTO_VERSION@)
 ##WIN32##!endif
-WINSUBDIRS=windows support et profile
+WINSUBDIRS=windows support et profile wshelper
 BUILDTOP=$(REL)..
 
 MAYBE_ET_k5 = et
similarity index 95%
rename from src/windows/wshelper/Makefile.in
rename to src/util/wshelper/Makefile.in
index f573bf52e71f78093e6d784a74c0328e94caa899..3da2b5994fc81178426d544a0484b45cc0222247 100644 (file)
@@ -61,4 +61,4 @@ $(OUTPRE)dllmain.$(OBJEXT): pwd.h
 $(OUTPRE)hespwnam.$(OBJEXT): pwd.h
 $(OUTPRE)dllmain.$(OBJEXT): wsh-int.h
 $(OUTPRE)res_init.$(OBJEXT): wsh-int.h
-$(RESFILE): resource.rc ../version.rc ../kerberos.ver
+$(RESFILE): resource.rc  ../../windows/version.rc ../../windows/kerberos.ver
similarity index 94%
rename from src/windows/wshelper/resource.rc
rename to src/util/wshelper/resource.rc
index a2d33328477935f6635f56727ac86195d10d2203..3fb14771e76130465e3b082c7bdc41a492ede3fb 100644 (file)
@@ -40,7 +40,7 @@ END
 
 3 TEXTINCLUDE DISCARDABLE
 BEGIN
-    "#include ""..\\version.rc""\r\n"
+    "#include ""..\\..\\windows\\version.rc""\r\n"
     "#include ""string.rc""\r\n"
     "\0"
 END
@@ -57,7 +57,7 @@ END
 //
 // Generated from the TEXTINCLUDE 3 resource.
 //
-#include "..\version.rc"
+#include "..\..\windows\version.rc"
 #include "string.rc"
 
 /////////////////////////////////////////////////////////////////////////////
index 008cfa90f9c42bbd5263c305eefd12d13a6d49fd..ed3d1cffcdea339aa783a2f89ffcce10b5d37900 100644 (file)
@@ -1,3 +1,3 @@
 BUILDTOP=..
 NO_OUTPRE=1
-SUBDIRS= wshelper lib leashdll cns gss gina ms2mit kfwlogon
+SUBDIRS= lib leashdll cns gss gina ms2mit kfwlogon