summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-09-28 20:57:53 +0000
committerSam Hartman <hartmans@mit.edu>2011-09-28 20:57:53 +0000
commit17ffebf7ff813118f15d7346e0211089fe2e95f0 (patch)
tree9f88a39d8bbfd6589eb8cc9272fc759664eff953 /src
parent0a13c0a9bfd1a7cff850d60851500aea34dffa6d (diff)
downloadkrb5-17ffebf7ff813118f15d7346e0211089fe2e95f0.tar.gz
krb5-17ffebf7ff813118f15d7346e0211089fe2e95f0.tar.xz
krb5-17ffebf7ff813118f15d7346e0211089fe2e95f0.zip
Windows fixes: enable DNS lookups; turn on KDC lookup by default
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
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in9
-rw-r--r--src/config/win-pre.in7
-rw-r--r--src/util/Makefile.in2
-rw-r--r--src/util/wshelper/Makefile.in (renamed from src/windows/wshelper/Makefile.in)2
-rw-r--r--src/util/wshelper/dllmain.c (renamed from src/windows/wshelper/dllmain.c)0
-rw-r--r--src/util/wshelper/gethna.c (renamed from src/windows/wshelper/gethna.c)0
-rw-r--r--src/util/wshelper/hesiod.c (renamed from src/windows/wshelper/hesiod.c)0
-rw-r--r--src/util/wshelper/hesmailh.c (renamed from src/windows/wshelper/hesmailh.c)0
-rw-r--r--src/util/wshelper/hespwnam.c (renamed from src/windows/wshelper/hespwnam.c)0
-rw-r--r--src/util/wshelper/hesservb.c (renamed from src/windows/wshelper/hesservb.c)0
-rw-r--r--src/util/wshelper/inetaton.c (renamed from src/windows/wshelper/inetaton.c)0
-rw-r--r--src/util/wshelper/pwd.h (renamed from src/windows/wshelper/pwd.h)0
-rw-r--r--src/util/wshelper/res_comp.c (renamed from src/windows/wshelper/res_comp.c)0
-rw-r--r--src/util/wshelper/res_init.c (renamed from src/windows/wshelper/res_init.c)0
-rw-r--r--src/util/wshelper/res_quer.c (renamed from src/windows/wshelper/res_quer.c)0
-rw-r--r--src/util/wshelper/resource.h (renamed from src/windows/wshelper/resource.h)0
-rw-r--r--src/util/wshelper/resource.rc (renamed from src/windows/wshelper/resource.rc)4
-rw-r--r--src/util/wshelper/string.rc (renamed from src/windows/wshelper/string.rc)0
-rw-r--r--src/util/wshelper/ver.rc.inc (renamed from src/windows/wshelper/ver.rc.inc)0
-rw-r--r--src/util/wshelper/wsh-int.h (renamed from src/windows/wshelper/wsh-int.h)0
-rw-r--r--src/util/wshelper/wshelp32.def (renamed from src/windows/wshelper/wshelp32.def)0
-rw-r--r--src/util/wshelper/wshelp64.def (renamed from src/windows/wshelper/wshelp64.def)0
-rw-r--r--src/util/wshelper/wshelper.def (renamed from src/windows/wshelper/wshelper.def)0
-rw-r--r--src/windows/Makefile.in2
24 files changed, 18 insertions, 8 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 56b3d4544..4be7d0d0c 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -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\."
diff --git a/src/config/win-pre.in b/src/config/win-pre.in
index dc68573a8..bcef2f4b8 100644
--- a/src/config/win-pre.in
+++ b/src/config/win-pre.in
@@ -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=
diff --git a/src/util/Makefile.in b/src/util/Makefile.in
index 6c7f8a7ff..c791c0626 100644
--- a/src/util/Makefile.in
+++ b/src/util/Makefile.in
@@ -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
diff --git a/src/windows/wshelper/Makefile.in b/src/util/wshelper/Makefile.in
index f573bf52e..3da2b5994 100644
--- a/src/windows/wshelper/Makefile.in
+++ b/src/util/wshelper/Makefile.in
@@ -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
diff --git a/src/windows/wshelper/dllmain.c b/src/util/wshelper/dllmain.c
index 5ae0016e6..5ae0016e6 100644
--- a/src/windows/wshelper/dllmain.c
+++ b/src/util/wshelper/dllmain.c
diff --git a/src/windows/wshelper/gethna.c b/src/util/wshelper/gethna.c
index 8914c3270..8914c3270 100644
--- a/src/windows/wshelper/gethna.c
+++ b/src/util/wshelper/gethna.c
diff --git a/src/windows/wshelper/hesiod.c b/src/util/wshelper/hesiod.c
index b448849cf..b448849cf 100644
--- a/src/windows/wshelper/hesiod.c
+++ b/src/util/wshelper/hesiod.c
diff --git a/src/windows/wshelper/hesmailh.c b/src/util/wshelper/hesmailh.c
index 32791e8d6..32791e8d6 100644
--- a/src/windows/wshelper/hesmailh.c
+++ b/src/util/wshelper/hesmailh.c
diff --git a/src/windows/wshelper/hespwnam.c b/src/util/wshelper/hespwnam.c
index 55ddf01c1..55ddf01c1 100644
--- a/src/windows/wshelper/hespwnam.c
+++ b/src/util/wshelper/hespwnam.c
diff --git a/src/windows/wshelper/hesservb.c b/src/util/wshelper/hesservb.c
index 01db3a4bf..01db3a4bf 100644
--- a/src/windows/wshelper/hesservb.c
+++ b/src/util/wshelper/hesservb.c
diff --git a/src/windows/wshelper/inetaton.c b/src/util/wshelper/inetaton.c
index bc7bd09a0..bc7bd09a0 100644
--- a/src/windows/wshelper/inetaton.c
+++ b/src/util/wshelper/inetaton.c
diff --git a/src/windows/wshelper/pwd.h b/src/util/wshelper/pwd.h
index 6954fd77d..6954fd77d 100644
--- a/src/windows/wshelper/pwd.h
+++ b/src/util/wshelper/pwd.h
diff --git a/src/windows/wshelper/res_comp.c b/src/util/wshelper/res_comp.c
index 36cd77372..36cd77372 100644
--- a/src/windows/wshelper/res_comp.c
+++ b/src/util/wshelper/res_comp.c
diff --git a/src/windows/wshelper/res_init.c b/src/util/wshelper/res_init.c
index bf3d97b50..bf3d97b50 100644
--- a/src/windows/wshelper/res_init.c
+++ b/src/util/wshelper/res_init.c
diff --git a/src/windows/wshelper/res_quer.c b/src/util/wshelper/res_quer.c
index 7836ed921..7836ed921 100644
--- a/src/windows/wshelper/res_quer.c
+++ b/src/util/wshelper/res_quer.c
diff --git a/src/windows/wshelper/resource.h b/src/util/wshelper/resource.h
index cc5f082ff..cc5f082ff 100644
--- a/src/windows/wshelper/resource.h
+++ b/src/util/wshelper/resource.h
diff --git a/src/windows/wshelper/resource.rc b/src/util/wshelper/resource.rc
index a2d333284..3fb14771e 100644
--- a/src/windows/wshelper/resource.rc
+++ b/src/util/wshelper/resource.rc
@@ -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"
/////////////////////////////////////////////////////////////////////////////
diff --git a/src/windows/wshelper/string.rc b/src/util/wshelper/string.rc
index 6916dbc72..6916dbc72 100644
--- a/src/windows/wshelper/string.rc
+++ b/src/util/wshelper/string.rc
diff --git a/src/windows/wshelper/ver.rc.inc b/src/util/wshelper/ver.rc.inc
index f927fb195..f927fb195 100644
--- a/src/windows/wshelper/ver.rc.inc
+++ b/src/util/wshelper/ver.rc.inc
diff --git a/src/windows/wshelper/wsh-int.h b/src/util/wshelper/wsh-int.h
index 04b1cfe57..04b1cfe57 100644
--- a/src/windows/wshelper/wsh-int.h
+++ b/src/util/wshelper/wsh-int.h
diff --git a/src/windows/wshelper/wshelp32.def b/src/util/wshelper/wshelp32.def
index b0a5aeaaf..b0a5aeaaf 100644
--- a/src/windows/wshelper/wshelp32.def
+++ b/src/util/wshelper/wshelp32.def
diff --git a/src/windows/wshelper/wshelp64.def b/src/util/wshelper/wshelp64.def
index e28dd16cf..e28dd16cf 100644
--- a/src/windows/wshelper/wshelp64.def
+++ b/src/util/wshelper/wshelp64.def
diff --git a/src/windows/wshelper/wshelper.def b/src/util/wshelper/wshelper.def
index 5b67a3d60..5b67a3d60 100644
--- a/src/windows/wshelper/wshelper.def
+++ b/src/util/wshelper/wshelper.def
diff --git a/src/windows/Makefile.in b/src/windows/Makefile.in
index 008cfa90f..ed3d1cffc 100644
--- a/src/windows/Makefile.in
+++ b/src/windows/Makefile.in
@@ -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