Skip to content

Commit 77fe51e

Browse files
committed
更新cryptlib
1 parent 52378f9 commit 77fe51e

File tree

9 files changed

+18
-10
lines changed

9 files changed

+18
-10
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ ClientBin/
156156
*~
157157
*.dbmdl
158158
*.dbproj.schemaview
159-
#*.pfx
159+
*.pfx
160160
*.publishsettings
161161
node_modules/
162162

apis/CTP_Trade/CTP_Trade.vcxproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
</PropertyGroup>
141141
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
142142
<LinkIncremental>false</LinkIncremental>
143-
<IncludePath>./;$(IncludePath)</IncludePath>
143+
<IncludePath>./;../../include/cryptopp/;$(IncludePath)</IncludePath>
144144
<OutDir>..\..\bin\$(Configuration)\$(PlatformTarget)\CTP</OutDir>
145145
<TargetName>$(ProjectName)_$(PlatformTarget)</TargetName>
146146
</PropertyGroup>
@@ -162,7 +162,7 @@
162162
<PrecompiledHeader>Use</PrecompiledHeader>
163163
<WarningLevel>Level3</WarningLevel>
164164
<Optimization>Disabled</Optimization>
165-
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
165+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;_CRT_SECURE_NO_WARNINGS;ENABLE_LICENSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
166166
<SDLCheck>true</SDLCheck>
167167
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
168168
</ClCompile>
@@ -225,7 +225,7 @@
225225
<Optimization>MaxSpeed</Optimization>
226226
<FunctionLevelLinking>true</FunctionLevelLinking>
227227
<IntrinsicFunctions>true</IntrinsicFunctions>
228-
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
228+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BUILDING_DLL;ENABLE_LICENSE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
229229
<SDLCheck>true</SDLCheck>
230230
</ClCompile>
231231
<Link>

common/License/License.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@
3838
using namespace std;
3939
using namespace CryptoPP;
4040

41-
#pragma comment(lib, "../../lib/cryptlib.lib")
41+
#ifdef _DEBUG
42+
#pragma comment(lib, "../../lib/Debug/cryptlib.lib")
43+
#else
44+
#pragma comment(lib, "../../lib/Release/cryptlib.lib")
45+
#endif // DEBUG
46+
47+
4248

4349
void GenerateRSAKey(unsigned int keyLength, const char *privFilename, const char *pubFilename, const char *seed);
4450
string RSAEncryptString(const char *pubFilename, const char *seed, const char *message);

common/License/License.vcxproj

+5-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<UseDebugLibraries>false</UseDebugLibraries>
3232
<PlatformToolset>v120</PlatformToolset>
3333
<WholeProgramOptimization>true</WholeProgramOptimization>
34-
<CharacterSet>Unicode</CharacterSet>
34+
<CharacterSet>MultiByte</CharacterSet>
3535
</PropertyGroup>
3636
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release64|Win32'" Label="Configuration">
3737
<ConfigurationType>Application</ConfigurationType>
@@ -56,9 +56,11 @@
5656
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
5757
<LinkIncremental>true</LinkIncremental>
5858
<IncludePath>../../include/cryptopp/;$(IncludePath)</IncludePath>
59+
<OutDir>D:\AppServ\www\www</OutDir>
5960
</PropertyGroup>
6061
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
6162
<LinkIncremental>false</LinkIncremental>
63+
<IncludePath>../../include/cryptopp/;$(IncludePath)</IncludePath>
6264
</PropertyGroup>
6365
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release64|Win32'">
6466
<LinkIncremental>false</LinkIncremental>
@@ -70,7 +72,7 @@
7072
<Optimization>Disabled</Optimization>
7173
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;_CRT_SECURE_NO_WARNINGS;ENABLE_LICENSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
7274
<SDLCheck>true</SDLCheck>
73-
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
75+
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
7476
</ClCompile>
7577
<Link>
7678
<SubSystem>Console</SubSystem>
@@ -84,7 +86,7 @@
8486
<Optimization>MaxSpeed</Optimization>
8587
<FunctionLevelLinking>true</FunctionLevelLinking>
8688
<IntrinsicFunctions>true</IntrinsicFunctions>
87-
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;ENABLE_LICENSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
89+
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;_CRT_SECURE_NO_WARNINGS;ENABLE_LICENSE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
8890
<SDLCheck>true</SDLCheck>
8991
</ClCompile>
9092
<Link>

include/Tdx/win32/TdxApi.dll

-2.62 MB
Binary file not shown.

include/Tdx/win32/TdxApi.lib

0 Bytes
Binary file not shown.

include/inirw.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ static int FindSection(const char *section, char **sect1, char **sect2, char **c
185185
char content[SIZE_LINE];
186186
char *rem1, *rem2, *nextline = nullptr;
187187

188-
char *p;
189-
char *empty;
188+
char *p = nullptr;
189+
char *empty = nullptr;
190190
int uselen = 0;
191191
char found = 0;
192192

lib/Queue_x86.lib

0 Bytes
Binary file not shown.

lib/cryptlib.zip

11.3 MB
Binary file not shown.

0 commit comments

Comments
 (0)