From a14b88767fd11fb87704a94c8c34393b36f80eae Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sun, 3 Nov 2024 19:21:37 +0100 Subject: [PATCH] Patch * adapt paths and names to our conventions * suppress deprecation warnings, which would be errors due to /SDL * comment out (U)INT8 typedefs, which conflict with basetds.h Since these typedefs are not used, this is not a problem. It would be, though, if they were used. --- include/md5global.h | 4 ++-- win32/common.vcxproj | 4 ++++ win32/cyrus-sasl.props | 4 ++-- win32/install.vcxproj | 4 ++++ win32/openssl.props | 2 +- win32/plugin_anonymous.vcxproj | 4 ++++ win32/plugin_digestmd5.vcxproj | 4 ++++ win32/plugin_gssapiv2.vcxproj | 4 ++++ win32/plugin_login.vcxproj | 4 ++++ win32/plugin_ntlm.vcxproj | 4 ++++ win32/plugin_plain.vcxproj | 4 ++++ win32/plugin_sasldb.vcxproj | 4 ++++ win32/plugin_scram.vcxproj | 4 ++++ win32/sasl2.vcxproj | 16 ++++++++++++---- win32/sasldb.props | 2 +- win32/sasldb.vcxproj | 12 ++++++++---- 16 files changed, 66 insertions(+), 14 deletions(-) diff --git a/include/md5global.h b/include/md5global.h index 414bac6..c768b3a 100644 --- a/include/md5global.h +++ b/include/md5global.h @@ -18,11 +18,11 @@ typedef unsigned char *POINTER; typedef signed char INT1; /* 8 bits */ typedef short INT2; /* 16 bits */ typedef int INT4; /* 32 bits */ -typedef long INT8; /* 64 bits */ +// typedef long INT8; /* 64 bits */ typedef unsigned char UINT1; /* 8 bits */ typedef unsigned short UINT2; /* 16 bits */ typedef unsigned int UINT4; /* 32 bits */ -typedef unsigned long UINT8; /* 64 bits */ +// typedef unsigned long UINT8; /* 64 bits */ /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it diff --git a/win32/common.vcxproj b/win32/common.vcxproj index a3f3da7..1191054 100644 --- a/win32/common.vcxproj +++ b/win32/common.vcxproj @@ -95,6 +95,7 @@ Level3 Disabled true + 4996 @@ -103,6 +104,7 @@ Level3 Disabled true + 4996 @@ -113,6 +115,7 @@ true true true + 4996 true @@ -127,6 +130,7 @@ true true true + 4996 true diff --git a/win32/cyrus-sasl.props b/win32/cyrus-sasl.props index 340034a..ac4b44c 100644 --- a/win32/cyrus-sasl.props +++ b/win32/cyrus-sasl.props @@ -5,8 +5,8 @@ ..\..\..\msvc\$(Platform)\ $(InstallRoot)\lib\ $(InstallRoot)\bin\ - $(InstallRoot) - $(InstallLibDir) + ..\..\deps + $(SaslDependencyRoot)\lib $(SolutionDir)$(Platform)\$(Configuration) C:\msvc\krb diff --git a/win32/install.vcxproj b/win32/install.vcxproj index e202f71..0f66747 100644 --- a/win32/install.vcxproj +++ b/win32/install.vcxproj @@ -72,6 +72,7 @@ Level3 Disabled true + 4996 call vsinstall.cmd $(SaslIntermediateLibDir) $(InstallRoot) $(InstallLibDir) $(InstallBinDir) @@ -83,6 +84,7 @@ Level3 Disabled true + 4996 call vsinstall.cmd $(SaslIntermediateLibDir) $(InstallRoot) $(InstallLibDir) $(InstallBinDir) @@ -96,6 +98,7 @@ true true true + 4996 true @@ -113,6 +116,7 @@ true true true + 4996 true diff --git a/win32/openssl.props b/win32/openssl.props index 86c5c41..e0e2a86 100644 --- a/win32/openssl.props +++ b/win32/openssl.props @@ -6,7 +6,7 @@ %(AdditionalLibraryDirectories) - libeay32.lib;%(AdditionalDependencies) + $(SaslDependencyLibDir)\libcrypto.lib;%(AdditionalDependencies) \ No newline at end of file diff --git a/win32/plugin_anonymous.vcxproj b/win32/plugin_anonymous.vcxproj index f076a7b..87584c9 100644 --- a/win32/plugin_anonymous.vcxproj +++ b/win32/plugin_anonymous.vcxproj @@ -93,6 +93,7 @@ Level3 Disabled true + 4996 @@ -100,6 +101,7 @@ Level3 Disabled true + 4996 @@ -109,6 +111,7 @@ true true true + 4996 true @@ -122,6 +125,7 @@ true true true + 4996 true diff --git a/win32/plugin_digestmd5.vcxproj b/win32/plugin_digestmd5.vcxproj index 077bdac..fc4e423 100644 --- a/win32/plugin_digestmd5.vcxproj +++ b/win32/plugin_digestmd5.vcxproj @@ -97,6 +97,7 @@ Level3 Disabled true + 4996 @@ -105,6 +106,7 @@ Level3 Disabled true + 4996 @@ -115,6 +117,7 @@ true true true + 4996 true @@ -129,6 +132,7 @@ true true true + 4996 true diff --git a/win32/plugin_gssapiv2.vcxproj b/win32/plugin_gssapiv2.vcxproj index 1e9d517..3284628 100644 --- a/win32/plugin_gssapiv2.vcxproj +++ b/win32/plugin_gssapiv2.vcxproj @@ -94,6 +94,7 @@ Level3 Disabled true + 4996 $(Krb5Dir)\include;%(AdditionalIncludeDirectories) %(PreprocessorDefinitions);HAVE_GSSAPI_GSSAPI_H;HAVE_GSSAPI_GSSAPI_KRB5_H;HAVE_GSS_C_NT_HOSTBASED_SERVICE @@ -107,6 +108,7 @@ Level3 Disabled true + 4996 %(PreprocessorDefinitions);HAVE_GSSAPI_GSSAPI_H;HAVE_GSSAPI_GSSAPI_KRB5_H;HAVE_GSS_C_NT_HOSTBASED_SERVICE $(Krb5Dir)\include;%(AdditionalIncludeDirectories) @@ -122,6 +124,7 @@ true true true + 4996 $(Krb5Dir)\include;%(AdditionalIncludeDirectories) %(PreprocessorDefinitions);HAVE_GSSAPI_GSSAPI_H;HAVE_GSSAPI_GSSAPI_KRB5_H;HAVE_GSS_C_NT_HOSTBASED_SERVICE @@ -139,6 +142,7 @@ true true true + 4996 $(Krb5Dir)\include;%(AdditionalIncludeDirectories) %(PreprocessorDefinitions);HAVE_GSSAPI_GSSAPI_H;HAVE_GSSAPI_GSSAPI_KRB5_H;HAVE_GSS_C_NT_HOSTBASED_SERVICE diff --git a/win32/plugin_login.vcxproj b/win32/plugin_login.vcxproj index 0417112..4320414 100644 --- a/win32/plugin_login.vcxproj +++ b/win32/plugin_login.vcxproj @@ -93,6 +93,7 @@ Level3 Disabled true + 4996 @@ -100,6 +101,7 @@ Level3 Disabled true + 4996 @@ -109,6 +111,7 @@ true true true + 4996 true @@ -122,6 +125,7 @@ true true true + 4996 true diff --git a/win32/plugin_ntlm.vcxproj b/win32/plugin_ntlm.vcxproj index edeef2e..49c6e22 100644 --- a/win32/plugin_ntlm.vcxproj +++ b/win32/plugin_ntlm.vcxproj @@ -97,6 +97,7 @@ Level3 Disabled true + 4996 @@ -105,6 +106,7 @@ Level3 Disabled true + 4996 @@ -115,6 +117,7 @@ true true true + 4996 true @@ -129,6 +132,7 @@ true true true + 4996 true diff --git a/win32/plugin_plain.vcxproj b/win32/plugin_plain.vcxproj index 70cea79..bf90c1c 100644 --- a/win32/plugin_plain.vcxproj +++ b/win32/plugin_plain.vcxproj @@ -93,6 +93,7 @@ Level3 Disabled true + 4996 @@ -100,6 +101,7 @@ Level3 Disabled true + 4996 @@ -109,6 +111,7 @@ true true true + 4996 true @@ -122,6 +125,7 @@ true true true + 4996 true diff --git a/win32/plugin_sasldb.vcxproj b/win32/plugin_sasldb.vcxproj index f6edffe..7c7d916 100644 --- a/win32/plugin_sasldb.vcxproj +++ b/win32/plugin_sasldb.vcxproj @@ -97,6 +97,7 @@ Level3 Disabled true + 4996 %(AdditionalIncludeDirectories);..\sasldb @@ -105,6 +106,7 @@ Level3 Disabled true + 4996 %(AdditionalIncludeDirectories);..\sasldb @@ -116,6 +118,7 @@ true true true + 4996 %(AdditionalIncludeDirectories);..\sasldb @@ -130,6 +133,7 @@ true true true + 4996 %(AdditionalIncludeDirectories);..\sasldb diff --git a/win32/plugin_scram.vcxproj b/win32/plugin_scram.vcxproj index fe7fb20..20b1b1f 100644 --- a/win32/plugin_scram.vcxproj +++ b/win32/plugin_scram.vcxproj @@ -97,6 +97,7 @@ Level3 Disabled true + 4996 @@ -105,6 +106,7 @@ Level3 Disabled true + 4996 @@ -115,6 +117,7 @@ true true true + 4996 true @@ -129,6 +132,7 @@ true true true + 4996 true diff --git a/win32/sasl2.vcxproj b/win32/sasl2.vcxproj index dbbabf7..dc350a3 100644 --- a/win32/sasl2.vcxproj +++ b/win32/sasl2.vcxproj @@ -75,10 +75,18 @@ - - - - + + libsasl_debug + + + libsasl + + + libsasl_debug + + + libsasl + Level3 diff --git a/win32/sasldb.props b/win32/sasldb.props index 84591c9..42922e7 100644 --- a/win32/sasldb.props +++ b/win32/sasldb.props @@ -6,7 +6,7 @@ %(AdditionalLibraryDirectories) - lmdb.lib;%(AdditionalDependencies) + liblmdb_a.lib;%(AdditionalDependencies) \ No newline at end of file diff --git a/win32/sasldb.vcxproj b/win32/sasldb.vcxproj index 265e03f..d0c8f1a 100644 --- a/win32/sasldb.vcxproj +++ b/win32/sasldb.vcxproj @@ -123,9 +123,10 @@ Level3 Disabled true + 4996 - lmdb.lib + liblmdb_a.lib @@ -133,9 +134,10 @@ Level3 Disabled true + 4996 - lmdb.lib + liblmdb_a.lib @@ -145,13 +147,14 @@ true true true + 4996 true true - lmdb.lib + liblmdb_a.lib @@ -161,13 +164,14 @@ true true true + 4996 true true - lmdb.lib + liblmdb_a.lib