Skip to content

Commit f6288cd

Browse files
committed
modify:use depend lib of verification module imp to http verification
1 parent 4ed5828 commit f6288cd

12 files changed

Lines changed: 99 additions & 30 deletions

File tree

XEngine_Apps/Authorize_APPClient/Authorize_APPClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ XSOCKET m_Socket = 0;
4848
LPCXSTR lpszUser = _X("123123aa");
4949
LPCXSTR lpszPass = _X("123123");
5050
LPCXSTR lpszHWCode = _X("2FDWAD02JD2091");
51-
LPCXSTR lpszSerial = _X("XAUTH-XYRYS-EWW60-UZO37-MHJAW-48386-Z806P");
51+
LPCXSTR lpszSerial = _X("XAUTH-XYRYS-JKG60-N510G-ZUFDH-54-V7I3H");
5252
LPCXSTR lpszEmail = _X("486179@qq.com");
5353
__int64x nPhoneNumber = 1366666666;
5454
__int64x nIDNumber = 511025111111111111;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include "pch.h"
2+
#include "AuthHelp_APIHelp.h"
3+
/********************************************************************
4+
// Created: 2025/08/18 16:05:26
5+
// File Name: D:\XEngine_Authorize\XEngine_Source\AuthorizeModule_Help\AuthHelp_APIHelp\AuthHelp_APIHelp.cpp
6+
// File Path: D:\XEngine_Authorize\XEngine_Source\AuthorizeModule_Help\AuthHelp_APIHelp
7+
// File Base: AuthHelp_APIHelp
8+
// File Ext: cpp
9+
// Project: XEngine
10+
// Author: qyt
11+
// Purpose: 帮助函数
12+
// History:
13+
*********************************************************************/
14+
CAuthHelp_APIHelp::CAuthHelp_APIHelp()
15+
{
16+
}
17+
CAuthHelp_APIHelp::~CAuthHelp_APIHelp()
18+
{
19+
}
20+
//////////////////////////////////////////////////////////////////////////
21+
// 公有函数
22+
//////////////////////////////////////////////////////////////////////////
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#pragma once
2+
/********************************************************************
3+
// Created: 2025/08/18 16:02:33
4+
// File Name: D:\XEngine_Authorize\XEngine_Source\AuthorizeModule_Help\AuthHelp_APIHelp\AuthHelp_APIHelp.h
5+
// File Path: D:\XEngine_Authorize\XEngine_Source\AuthorizeModule_Help\AuthHelp_APIHelp
6+
// File Base: AuthHelp_APIHelp
7+
// File Ext: h
8+
// Project: XEngine
9+
// Author: qyt
10+
// Purpose: 帮助函数
11+
// History:
12+
*********************************************************************/
13+
14+
class CAuthHelp_APIHelp
15+
{
16+
public:
17+
CAuthHelp_APIHelp();
18+
~CAuthHelp_APIHelp();
19+
public:
20+
private:
21+
};

XEngine_Source/AuthorizeModule_Help/AuthHelp_Define.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ extern "C" bool AuthHelp_DynamicCode_Get(XNETHANDLE xhToken, int nDynamicCode);
101101
*********************************************************************/
102102
extern "C" bool AuthHelp_MultiLogin_GetRange(int nClientDevice, int* pInt_IDType);
103103
/************************************************************************/
104-
/* API帮助函数导出定义 */
105-
/************************************************************************/
106-
107-
extern "C" bool AuthHelp_APIHelp_HttpAuth(XCHAR* ptszUser, XCHAR* ptszPass, XCHAR** pptszListHdr, int nHdrCount);
108-
109-
extern "C" bool AuthHelp_APIHelp_Digest(XCHAR* ptszResponseStr, LPCXSTR lpszUser, LPCXSTR lpszPass, LPCXSTR lpszRealm, LPCXSTR lpszMethod, LPCXSTR lpszUrl, LPCXSTR lpszNonce, LPCXSTR lpszCNonce, LPCXSTR lpszNC = NULL);
110-
/************************************************************************/
111104
/* 剪贴板导出定义 */
112105
/************************************************************************/
113106
#ifdef _MSC_BUILD

XEngine_Source/AuthorizeModule_Help/AuthorizeModule_Help.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ EXPORTS
1010

1111
AuthHelp_MultiLogin_GetRange
1212

13-
AuthHelp_APIHelp_HttpAuth
14-
AuthHelp_APIHelp_Digest
15-
1613
AuthHelp_ClipBoard_Set
1714
AuthHelp_ClipBoard_Get
1815
AuthHelp_ClipBoard_Clear

XEngine_Source/AuthorizeModule_Help/AuthorizeModule_Help.vcxproj.filters

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
<UniqueIdentifier>{92e4cc9f-02d7-4e6d-92a1-86e433e38fd2}</UniqueIdentifier>
3939
</Filter>
4040
<Filter Include="头文件\AuthHelp_APIHelp">
41-
<UniqueIdentifier>{7dd61ed5-7869-47d3-98d7-e8bd46dbcc15}</UniqueIdentifier>
41+
<UniqueIdentifier>{4d216925-f70a-4d9a-835c-4ff390e10949}</UniqueIdentifier>
4242
</Filter>
4343
<Filter Include="源文件\AuthHelp_APIHelp">
44-
<UniqueIdentifier>{3d25ff0b-dc39-4507-b453-c2fd2084b370}</UniqueIdentifier>
44+
<UniqueIdentifier>{f52e587f-431d-4520-a7ec-a79025363795}</UniqueIdentifier>
4545
</Filter>
4646
</ItemGroup>
4747
<ItemGroup>

XEngine_Source/AuthorizeModule_Help/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LOADHDR = -I ./
66
LOADSO = -L
77
LIB = -lXEngine_BaseLib
88
LIBEX =
9-
OBJECTS = AuthHelp_DynamicCode.o AuthHelp_MultiLogin.o pch.o
9+
OBJECTS = AuthHelp_DynamicCode.o AuthHelp_MultiLogin.o AuthHelp_APIHelp.o pch.o
1010

1111
ifeq ($(RELEASE),1)
1212
FLAGS = -c -D _RELEASE
@@ -53,6 +53,8 @@ AuthHelp_DynamicCode.o:./AuthHelp_DynamicCode/AuthHelp_DynamicCode.cpp
5353
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./AuthHelp_DynamicCode/AuthHelp_DynamicCode.cpp
5454
AuthHelp_MultiLogin.o:./AuthHelp_MultiLogin/AuthHelp_MultiLogin.cpp
5555
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./AuthHelp_MultiLogin/AuthHelp_MultiLogin.cpp
56+
AuthHelp_APIHelp.o:./AuthHelp_APIHelp/AuthHelp_APIHelp.cpp
57+
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) ./AuthHelp_APIHelp/AuthHelp_APIHelp.cpp
5658

5759
pch.o:pch.cpp
5860
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(PLATVER) $(LOADHDR) pch.cpp

XEngine_Source/AuthorizeModule_Help/pch.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ extern "C" bool AuthHelp_MultiLogin_GetRange(int nClientDevice, int* pInt_IDType
6363
return m_HelpLogin.AuthHelp_MultiLogin_GetRange(nClientDevice, pInt_IDType);
6464
}
6565
/************************************************************************/
66-
/* API帮助函数导出定义 */
67-
/************************************************************************/
68-
extern "C" bool AuthHelp_APIHelp_HttpAuth(XCHAR* ptszUser, XCHAR* ptszPass, XCHAR** pptszListHdr, int nHdrCount)
69-
{
70-
return m_APIHelp.AuthHelp_APIHelp_HttpAuth(ptszUser, ptszPass, pptszListHdr, nHdrCount);
71-
}
72-
extern "C" bool AuthHelp_APIHelp_Digest(XCHAR* ptszResponseStr, LPCXSTR lpszUser, LPCXSTR lpszPass, LPCXSTR lpszRealm, LPCXSTR lpszMethod, LPCXSTR lpszUrl, LPCXSTR lpszNonce, LPCXSTR lpszCNonce, LPCXSTR lpszNC)
73-
{
74-
return m_APIHelp.AuthHelp_APIHelp_Digest(ptszResponseStr, lpszUser, lpszPass, lpszRealm, lpszMethod, lpszUser, lpszNonce, lpszCNonce, lpszNC);
75-
}
76-
/************************************************************************/
7766
/* 剪贴板导出定义 */
7867
/************************************************************************/
7968
#ifdef _MSC_BUILD

XEngine_Source/XEngine.sln

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XEngine_AuthorizeService",
3636
ProjectSection(ProjectDependencies) = postProject
3737
{02A75BD0-416E-4AEF-BF34-BD85BD86384F} = {02A75BD0-416E-4AEF-BF34-BD85BD86384F}
3838
{1391B739-713B-4A3A-9233-FEAB92E0566C} = {1391B739-713B-4A3A-9233-FEAB92E0566C}
39+
{51DCBDC7-50CB-4A44-B10B-FCF90309914D} = {51DCBDC7-50CB-4A44-B10B-FCF90309914D}
3940
{5FA1874A-32F4-4176-9C23-4E22BE183660} = {5FA1874A-32F4-4176-9C23-4E22BE183660}
4041
{6B926D00-DCD2-49E3-86A9-3230C9872E65} = {6B926D00-DCD2-49E3-86A9-3230C9872E65}
42+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256} = {A8E43EC0-698A-4807-8A61-B2BE5FAB7256}
4143
{AB3DB24C-E1B3-41CF-B2F4-6C12E13C2894} = {AB3DB24C-E1B3-41CF-B2F4-6C12E13C2894}
4244
{CB9138DF-789D-459F-AD43-4095B22A487F} = {CB9138DF-789D-459F-AD43-4095B22A487F}
4345
{DD8CB5F1-980F-48C3-BA2F-3CF534903B14} = {DD8CB5F1-980F-48C3-BA2F-3CF534903B14}
@@ -78,6 +80,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XEngine_InfoReport", "XEngi
7880
{F1736B3F-03A2-4FC7-B045-A12BA8D724FB} = {F1736B3F-03A2-4FC7-B045-A12BA8D724FB}
7981
EndProjectSection
8082
EndProject
83+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "XEngine_Verification", "XEngine_DependLibrary\XEngine_Module\XEngine_Verification\XEngine_Verification.vcxproj", "{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}"
84+
EndProject
8185
Global
8286
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8387
Debug|ARM64 = Debug|ARM64
@@ -220,6 +224,18 @@ Global
220224
{F6520D2C-BB8E-45BB-964B-F5D6A4318A89}.Release|x64.Build.0 = Release|x64
221225
{F6520D2C-BB8E-45BB-964B-F5D6A4318A89}.Release|x86.ActiveCfg = Release|Win32
222226
{F6520D2C-BB8E-45BB-964B-F5D6A4318A89}.Release|x86.Build.0 = Release|Win32
227+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|ARM64.ActiveCfg = Debug|ARM64
228+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|ARM64.Build.0 = Debug|ARM64
229+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|x64.ActiveCfg = Debug|x64
230+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|x64.Build.0 = Debug|x64
231+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|x86.ActiveCfg = Debug|Win32
232+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Debug|x86.Build.0 = Debug|Win32
233+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|ARM64.ActiveCfg = Release|ARM64
234+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|ARM64.Build.0 = Release|ARM64
235+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|x64.ActiveCfg = Release|x64
236+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|x64.Build.0 = Release|x64
237+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|x86.ActiveCfg = Release|Win32
238+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256}.Release|x86.Build.0 = Release|Win32
223239
EndGlobalSection
224240
GlobalSection(SolutionProperties) = preSolution
225241
HideSolutionNode = FALSE
@@ -229,6 +245,7 @@ Global
229245
{51DCBDC7-50CB-4A44-B10B-FCF90309914D} = {2444CB54-6443-47F9-8D93-91237D0D05FB}
230246
{F1736B3F-03A2-4FC7-B045-A12BA8D724FB} = {6444F125-63DE-4120-98B3-DF097A9758FA}
231247
{F6520D2C-BB8E-45BB-964B-F5D6A4318A89} = {6444F125-63DE-4120-98B3-DF097A9758FA}
248+
{A8E43EC0-698A-4807-8A61-B2BE5FAB7256} = {6444F125-63DE-4120-98B3-DF097A9758FA}
232249
EndGlobalSection
233250
GlobalSection(ExtensibilityGlobals) = postSolution
234251
SolutionGuid = {E1F1DDE3-8949-41AF-84D6-03CB7CAA03AB}

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_Hdr.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ using namespace std;
6060
#include "../../AuthorizeModule_CDKey/CDKey_Error.h"
6161
#include "../../XEngine_DependLibrary/XEngine_Module/XEngine_InfoReport/InfoReport_Define.h"
6262
#include "../../XEngine_DependLibrary/XEngine_Module/XEngine_InfoReport/InfoReport_Error.h"
63+
#include "../../XEngine_DependLibrary/XEngine_Module/XEngine_Verification/Verification_Define.h"
64+
#include "../../XEngine_DependLibrary/XEngine_Module/XEngine_Verification/Verification_Error.h"
6365

6466
extern bool bIsRun;
6567
extern bool bIsTest;
@@ -129,6 +131,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
129131
#pragma comment(lib,"../../x64/Debug/AuthorizeModule_Help.lib")
130132
#pragma comment(lib,"../../x64/Debug/AuthorizeModule_CDKey.lib")
131133
#pragma comment(lib,"../../x64/Debug/XEngine_InfoReport.lib")
134+
#pragma comment(lib,"../../x64/Debug/XEngine_Verification.lib")
132135
#elif _M_ARM64
133136
#pragma comment(lib,"../../ARM64/Debug/AuthorizeModule_Configure.lib")
134137
#pragma comment(lib,"../../ARM64/Debug/AuthorizeModule_Protocol.lib")
@@ -137,6 +140,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
137140
#pragma comment(lib,"../../ARM64/Debug/AuthorizeModule_Help.lib")
138141
#pragma comment(lib,"../../ARM64/Debug/AuthorizeModule_CDKey.lib")
139142
#pragma comment(lib,"../../ARM64/Debug/XEngine_InfoReport.lib")
143+
#pragma comment(lib,"../../ARM64/Debug/XEngine_Verification.lib")
140144
#elif _M_IX86
141145
#pragma comment(lib,"../../Debug/AuthorizeModule_Configure.lib")
142146
#pragma comment(lib,"../../Debug/AuthorizeModule_Protocol.lib")
@@ -145,6 +149,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
145149
#pragma comment(lib,"../../Debug/AuthorizeModule_Help.lib")
146150
#pragma comment(lib,"../../Debug/AuthorizeModule_CDKey.lib")
147151
#pragma comment(lib,"../../Debug/XEngine_InfoReport.lib")
152+
#pragma comment(lib,"../../Debug/XEngine_Verification.lib")
148153
#endif
149154
#else
150155
#ifdef _M_X64
@@ -155,6 +160,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
155160
#pragma comment(lib,"../../x64/Release/AuthorizeModule_Help.lib")
156161
#pragma comment(lib,"../../x64/Release/AuthorizeModule_CDKey.lib")
157162
#pragma comment(lib,"../../x64/Release/XEngine_InfoReport.lib")
163+
#pragma comment(lib,"../../x64/Release/XEngine_Verification.lib")
158164
#elif _M_ARM64
159165
#pragma comment(lib,"../../ARM64/Release/AuthorizeModule_Configure.lib")
160166
#pragma comment(lib,"../../ARM64/Release/AuthorizeModule_Protocol.lib")
@@ -163,6 +169,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
163169
#pragma comment(lib,"../../ARM64/Release/AuthorizeModule_Help.lib")
164170
#pragma comment(lib,"../../ARM64/Release/AuthorizeModule_CDKey.lib")
165171
#pragma comment(lib,"../../ARM64/Release/XEngine_InfoReport.lib")
172+
#pragma comment(lib,"../../ARM64/Release/XEngine_Verification.lib")
166173
#elif _M_IX86
167174
#pragma comment(lib,"../../Release/AuthorizeModule_Configure.lib")
168175
#pragma comment(lib,"../../Release/AuthorizeModule_Protocol.lib")
@@ -171,6 +178,7 @@ extern XENGINE_FUNCTIONSWITCH st_FunSwitch;
171178
#pragma comment(lib,"../../Release/AuthorizeModule_Help.lib")
172179
#pragma comment(lib,"../../Release/AuthorizeModule_CDKey.lib")
173180
#pragma comment(lib,"../../Release/XEngine_InfoReport.lib")
181+
#pragma comment(lib,"../../Release/XEngine_Verification.lib")
174182
#endif
175183
#endif
176184
#endif

0 commit comments

Comments
 (0)