Skip to content

Commit 216eb32

Browse files
committedOct 25, 2019
Make the project build with Visual Studio and WinHTTP
1 parent a190c6a commit 216eb32

File tree

5 files changed

+44
-8
lines changed

5 files changed

+44
-8
lines changed
 

‎src/RequestHandler_WinHTTP.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <winhttp.h>
88

99
#include "RequestHandler_WinHTTP.hpp"
10+
#include "../third_party/curl/isunreserved.hpp"
1011

1112
namespace cryptolens_io {
1213

‎third_party/curl/isunreserved.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ be used in advertising or otherwise to promote the sale, use or other dealings
2828
in this Software without prior written authorization of the copyright holder.
2929
3030
*/
31-
static bool Curl_isunreserved(unsigned char in)
31+
bool Curl_isunreserved(unsigned char in)
3232
{
3333
switch (in) {
3434
case '0': case '1': case '2': case '3': case '4':

‎third_party/curl/isunreserved.hpp

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace cryptolens_io {
2+
3+
namespace v20190401 {
4+
5+
namespace internal {
6+
7+
bool Curl_isunreserved(unsigned char in);
8+
9+
} // namespace internal
10+
11+
} // namespace v20190401
12+
13+
} // namespace cryptolens_io

‎vsprojects/Cryptolens.vcxproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,20 @@
161161
</ItemDefinitionGroup>
162162
<ItemGroup>
163163
<ClCompile Include="..\src\ActivateError.cpp" />
164-
<ClCompile Include="..\src\basic_Cryptolens.cpp" />
165164
<ClCompile Include="..\src\basic_SKM.cpp" />
165+
<ClCompile Include="..\src\cryptolens_internals.cpp" />
166166
<ClCompile Include="..\src\DataObject.cpp" />
167167
<ClCompile Include="..\src\LicenseKey.cpp" />
168168
<ClCompile Include="..\src\LicenseKeyChecker.cpp" />
169169
<ClCompile Include="..\src\LicenseKeyInformation.cpp" />
170170
<ClCompile Include="..\src\MachineCodeComputer_COM.cpp" />
171171
<ClCompile Include="..\src\MachineCodeComputer_static.cpp" />
172+
<ClCompile Include="..\src\RawLicenseKey.cpp" />
172173
<ClCompile Include="..\src\RequestHandler_WinHTTP.cpp" />
174+
<ClCompile Include="..\src\ResponseParser_ArduinoJson5.cpp" />
173175
<ClCompile Include="..\src\SignatureVerifier_CryptoAPI.cpp" />
174176
<ClCompile Include="..\third_party\base64_OpenBSD\base64.cpp" />
177+
<ClCompile Include="..\third_party\curl\isunreserved.cpp" />
175178
</ItemGroup>
176179
<ItemGroup>
177180
<ClInclude Include="..\include\cryptolens\ActivateError.hpp" />
@@ -194,6 +197,7 @@
194197
<ClInclude Include="..\include\cryptolens\RequestHandler_WinHTTP.hpp" />
195198
<ClInclude Include="..\include\cryptolens\base64.hpp" />
196199
<ClInclude Include="..\include\cryptolens\SignatureVerifier_CryptoAPI.hpp" />
200+
<ClInclude Include="..\third_party\curl\isunreserved.hpp" />
197201
</ItemGroup>
198202
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
199203
<ImportGroup Label="ExtensionTargets">

‎vsprojects/Cryptolens.vcxproj.filters

+24-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
</Filter>
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ClCompile Include="..\src\ActivateError.cpp">
18+
<ClCompile Include="..\src\cryptolens_internals.cpp">
1919
<Filter>Source Files</Filter>
2020
</ClCompile>
21-
<ClCompile Include="..\src\base64.cpp">
21+
<ClCompile Include="..\src\ActivateError.cpp">
2222
<Filter>Source Files</Filter>
2323
</ClCompile>
2424
<ClCompile Include="..\src\DataObject.cpp">
@@ -30,16 +30,19 @@
3030
<ClCompile Include="..\src\LicenseKeyChecker.cpp">
3131
<Filter>Source Files</Filter>
3232
</ClCompile>
33+
<ClCompile Include="..\src\RawLicenseKey.cpp">
34+
<Filter>Source Files</Filter>
35+
</ClCompile>
3336
<ClCompile Include="..\src\RequestHandler_WinHTTP.cpp">
3437
<Filter>Source Files</Filter>
3538
</ClCompile>
36-
<ClCompile Include="..\src\SignatureVerifier_CryptoAPI.cpp">
39+
<ClCompile Include="..\src\ResponseParser_ArduinoJson5.cpp">
3740
<Filter>Source Files</Filter>
3841
</ClCompile>
39-
<ClCompile Include="..\src\LicenseKeyInformation.cpp">
42+
<ClCompile Include="..\src\SignatureVerifier_CryptoAPI.cpp">
4043
<Filter>Source Files</Filter>
4144
</ClCompile>
42-
<ClCompile Include="..\src\basic_Cryptolens.cpp">
45+
<ClCompile Include="..\src\LicenseKeyInformation.cpp">
4346
<Filter>Source Files</Filter>
4447
</ClCompile>
4548
<ClCompile Include="..\src\MachineCodeComputer_COM.cpp">
@@ -48,6 +51,15 @@
4851
<ClCompile Include="..\src\MachineCodeComputer_static.cpp">
4952
<Filter>Source Files</Filter>
5053
</ClCompile>
54+
<ClCompile Include="..\src\basic_SKM.cpp">
55+
<Filter>Source Files</Filter>
56+
</ClCompile>
57+
<ClCompile Include="..\third_party\base64_OpenBSD\base64.cpp">
58+
<Filter>Source Files</Filter>
59+
</ClCompile>
60+
<ClCompile Include="..\third_party\curl\isunreserved.cpp">
61+
<Filter>Source Files</Filter>
62+
</ClCompile>
5163
</ItemGroup>
5264
<ItemGroup>
5365
<ClInclude Include="..\include\cryptolens\ActivateError.hpp">
@@ -107,5 +119,11 @@
107119
<ClInclude Include="..\include\cryptolens\Configuration_Windows.hpp">
108120
<Filter>Header Files</Filter>
109121
</ClInclude>
122+
<ClInclude Include="..\include\cryptolens\basic_SKM.hpp">
123+
<Filter>Header Files</Filter>
124+
</ClInclude>
125+
<ClInclude Include="..\third_party\curl\isunreserved.hpp">
126+
<Filter>Header Files</Filter>
127+
</ClInclude>
110128
</ItemGroup>
111-
</Project>
129+
</Project>

0 commit comments

Comments
 (0)
Please sign in to comment.