diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-10-13 21:37:01 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-10-13 20:15:27 +0000 |
commit | 89a95f22056c1be1e5f6eb6da1520302a3f6b3e0 (patch) | |
tree | 58018a1d4fd90382a5c07cde030553910977121f | |
parent | 1f481258da05feb9ff165f586292330427c841a9 (diff) |
Add Kerberos 3.2.2 package for Win64
Change-Id: If02469aa1a01972d2032478dce3bf872802f37cb
Reviewed-on: https://code.wireshark.org/review/4661
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r-- | Makefile.nmake | 16 | ||||
-rw-r--r-- | asn1/kerberos/packet-kerberos-template.c | 4 | ||||
-rw-r--r-- | config.nmake | 14 | ||||
-rw-r--r-- | epan/dissectors/packet-kerberos.c | 4 | ||||
-rw-r--r-- | packaging/nsis/Makefile.nmake | 3 | ||||
-rw-r--r-- | packaging/nsis/wireshark.nsi | 6 | ||||
-rw-r--r-- | ui/qt/Wireshark.pro | 2 |
7 files changed, 35 insertions, 14 deletions
diff --git a/Makefile.nmake b/Makefile.nmake index f4782db47d..63f8cc6123 100644 --- a/Makefile.nmake +++ b/Makefile.nmake @@ -511,6 +511,10 @@ guilibsdll = $(guilibsdll) HHC_LIBS = $(HHC_LIBS) +COMERR_DLL = $(COMERR_DLL) +KRB5_DLL = $(KRB5_DLL) +K5SPRT_DLL = $(K5SPRT_DLL) + SH = $(SH) PYTHON = $(PYTHON) @@ -983,7 +987,11 @@ process_libs: !IFDEF KFW_DIR @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \ . \ +!IF "$(WIRESHARK_TARGET_PLATFORM)" == "win32" kfw-3-2-2-i386-ws-vc6.zip \ +!ELSE + kfw-3-2-2-x64-ws.zip \ +!ENDIF "$(DOWNLOAD_TAG)" "$(WIRESHARK_TARGET_PLATFORM)" # @$(SH) $(WIN_SETUP) "$(WIN_SETUP_OPT)" "$(WIRESHARK_LIB_DIR)" \ # . \ @@ -1117,8 +1125,8 @@ clean_setup: rm -r -f gtk-wimp rm -r -f kfw-2.5 rm -r -f kfw-3-2-2-final - rm -r -f kfw-3.2.2-ws1 rm -r -f kfw-3-2-2-i386-ws-vc6 + rm -r -f kfw-3-2-2-x64-ws rm -r -f libiconv-1.9.1.bin.woe32 rm -r -f lua5.1 rm -r -f lua5.1.4 @@ -1381,9 +1389,9 @@ install-all: install-generated-files xcopy $(ADNS_DLL) $(INSTALL_DIR) /d !ENDIF !IFDEF KFW_DIR - xcopy $(KFW_PATH)\comerr32.dll $(INSTALL_DIR) /d - xcopy $(KFW_PATH)\krb5_32.dll $(INSTALL_DIR) /d - xcopy $(KFW_PATH)\k5sprt32.dll $(INSTALL_DIR) /d + xcopy $(KFW_PATH)\$(COMERR_DLL) $(INSTALL_DIR) /d + xcopy $(KFW_PATH)\$(KRB5_DLL) $(INSTALL_DIR) /d + xcopy $(KFW_PATH)\$(K5SPRT_DLL) $(INSTALL_DIR) /d !ENDIF !IFDEF GNUTLS_DIR xcopy $(GNUTLS_DIR)\bin\libffi-6.dll $(INSTALL_DIR) /d diff --git a/asn1/kerberos/packet-kerberos-template.c b/asn1/kerberos/packet-kerberos-template.c index 24a21ef380..cbfc5552ee 100644 --- a/asn1/kerberos/packet-kerberos-template.c +++ b/asn1/kerberos/packet-kerberos-template.c @@ -333,10 +333,10 @@ read_keytab_file(const char *filename) g_snprintf(pos, KRB_MAX_ORIG_LEN, "keytab principal ")); for(i=0;i<key.principal->length;i++){ pos+=MIN(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), - g_snprintf(pos, KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "%s%s",(i?"/":""),(key.principal->data[i]).data)); + g_snprintf(pos, (gulong)(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin)), "%s%s",(i?"/":""),(key.principal->data[i]).data)); } pos+=MIN(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), - g_snprintf(pos, KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "@%s",key.principal->realm.data)); + g_snprintf(pos, (gulong)(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin)), "@%s",key.principal->realm.data)); *pos=0; new_key->keytype=key.key.enctype; new_key->keylength=key.key.length; diff --git a/config.nmake b/config.nmake index 3c2691bce6..4236cbd2b0 100644 --- a/config.nmake +++ b/config.nmake @@ -431,6 +431,9 @@ GCC_DLL=libgcc_s_sjlj-1.dll # isn't defined. # KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3-2-2-i386-ws-vc6 +COMERR_DLL=comerr32.dll +KRB5_DLL=krb5_32.dll +K5SPRT_DLL=k5sprt32.dll # Optional: the LUA library enables scripting support. # @@ -679,7 +682,10 @@ GCC_DLL=libgcc_s_seh-1.dll # If you don't have KFW, comment this line out, so that KFW_DIR # isn't defined. # -#KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3.2.2-ws1 +KFW_DIR=$(WIRESHARK_LIB_DIR)\kfw-3-2-2-x64-ws +COMERR_DLL=comerr64.dll +KRB5_DLL=krb5_64.dll +K5SPRT_DLL=k5sprt64.dll # # Optional: the LUA library enables scripting support. @@ -1434,7 +1440,7 @@ NEED_XML_DLL=USE # GTK+ ## Note: If Wireshark is ever to be built with Gtk >= 3.10 ## then -DGTK_DISABLE_DEPRECATED must be removed -## and -DGDK_DISABLE_DEPRECIATION_WARNINGS must +## and -DGDK_DISABLE_DEPRECATION_WARNINGS must ## be added below. ## Wireshark changes to handle Gtk 3.10 deprecated features ## will not be done since Wireshark is moving to Qt. @@ -1610,7 +1616,11 @@ ADNS_CONFIG= !IFDEF KFW_DIR KFW_PATH=$(KFW_DIR)\bin KFW_CFLAGS=/I$(KFW_DIR)\include +!IF "$(WIRESHARK_TARGET_PLATFORM)" == "win32" KFW_LIBS=$(KFW_DIR)\lib\krb5_32.lib +!ELSE +KFW_LIBS=$(KFW_DIR)\lib\krb5_64.lib +!ENDIF # Nmake uses carets to escape special characters KFW_CONFIG=^#define HAVE_MIT_KERBEROS 1 !else diff --git a/epan/dissectors/packet-kerberos.c b/epan/dissectors/packet-kerberos.c index 36f9337aff..d1bebb9ad3 100644 --- a/epan/dissectors/packet-kerberos.c +++ b/epan/dissectors/packet-kerberos.c @@ -584,10 +584,10 @@ read_keytab_file(const char *filename) g_snprintf(pos, KRB_MAX_ORIG_LEN, "keytab principal ")); for(i=0;i<key.principal->length;i++){ pos+=MIN(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), - g_snprintf(pos, KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "%s%s",(i?"/":""),(key.principal->data[i]).data)); + g_snprintf(pos, (gulong)(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin)), "%s%s",(i?"/":""),(key.principal->data[i]).data)); } pos+=MIN(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), - g_snprintf(pos, KRB_MAX_ORIG_LEN-(pos-new_key->key_origin), "@%s",key.principal->realm.data)); + g_snprintf(pos, (gulong)(KRB_MAX_ORIG_LEN-(pos-new_key->key_origin)), "@%s",key.principal->realm.data)); *pos=0; new_key->keytype=key.key.enctype; new_key->keylength=key.key.length; diff --git a/packaging/nsis/Makefile.nmake b/packaging/nsis/Makefile.nmake index 0b158f28f7..be74fae3ea 100644 --- a/packaging/nsis/Makefile.nmake +++ b/packaging/nsis/Makefile.nmake @@ -202,6 +202,9 @@ NSIS_FLAGS=\ !IF "$(KFW_DIR)" != "" /DKFW_DIR=$(KFW_DIR) \ /DKFW_PATH=$(KFW_PATH) \ + /DCOMERR_DLL=$(COMERR_DLL) \ + /DKRB5_DLL=$(KRB5_DLL) \ + /DK5SPRT_DLL=$(K5SPRT_DLL) \ !ENDIF !IF "$(GNUTLS_DIR)" != "" /DGPGERROR_DLL=$(GPGERROR_DLL) \ diff --git a/packaging/nsis/wireshark.nsi b/packaging/nsis/wireshark.nsi index 724c425206..d8d96884aa 100644 --- a/packaging/nsis/wireshark.nsi +++ b/packaging/nsis/wireshark.nsi @@ -344,9 +344,9 @@ File "${STAGING_DIR}\libcares-2.dll" File "${STAGING_DIR}\adns_dll.dll" !endif !ifdef KFW_DIR -File "${STAGING_DIR}\comerr32.dll" -File "${STAGING_DIR}\krb5_32.dll" -File "${STAGING_DIR}\k5sprt32.dll" +File "${STAGING_DIR}\${COMERR_DLL}" +File "${STAGING_DIR}\${KRB5_DLL}" +File "${STAGING_DIR}\${K5SPRT_DLL}" !endif !ifdef GNUTLS_DIR File "${STAGING_DIR}\libffi-6.dll" diff --git a/ui/qt/Wireshark.pro b/ui/qt/Wireshark.pro index e94946da9d..ec8bdb3070 100644 --- a/ui/qt/Wireshark.pro +++ b/ui/qt/Wireshark.pro @@ -467,7 +467,7 @@ win32 { wireshark_use_kfw { EXTRA_BINFILES += \ - $${KFW_DIR}/bin/comerr32.dll $${KFW_DIR}/bin/krb5_32.dll $${KFW_DIR}/bin/k5sprt32.dll + $${KFW_DIR}/bin/$${COMERR_DLL} $${KFW_DIR}/bin/$${KRB5_DLL} $${KFW_DIR}/bin/$${K5SPRT_DLL} } EXTRA_BINFILES ~= s,/,\\,g |