[chore] 1st release
This commit is contained in:
parent
dd366eaf5b
commit
a143b03e7c
@ -1,5 +1,6 @@
|
|||||||
#include "OSUtils.h"
|
#include "OSUtils.h"
|
||||||
|
|
||||||
|
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
|
||||||
#include <ShlObj.h>
|
#include <ShlObj.h>
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
<ProjectGuid>{51345E59-83E5-4389-93A9-0131B40522B7}</ProjectGuid>
|
<ProjectGuid>{51345E59-83E5-4389-93A9-0131B40522B7}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>libLicenseClient</RootNamespace>
|
<RootNamespace>libLicenseClient</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
@ -60,6 +60,7 @@
|
|||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||||
|
<AdditionalOptions>/Zc:strictStrings- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
@ -79,6 +80,7 @@
|
|||||||
<LanguageStandard>stdcpplatest</LanguageStandard>
|
<LanguageStandard>stdcpplatest</LanguageStandard>
|
||||||
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
<CreateHotpatchableImage>false</CreateHotpatchableImage>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>None</DebugInformationFormat>
|
||||||
|
<AdditionalOptions>/Zc:strictStrings- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ImportGroup Label="PropertySheets">
|
<ImportGroup Label="PropertySheets">
|
||||||
<Import Project="..\thirdparty\boost-1.66.0\boost.props" />
|
<Import Project="..\thirdparty\boost-1.67.0\boost.props" />
|
||||||
<Import Project="..\thirdparty\curl-7.58.0\curl-static.props" />
|
<Import Project="..\thirdparty\curl-7.58.0\curl-static.props" />
|
||||||
<Import Project="..\thirdparty\zlib-1.2.11\zlib-static.props" />
|
<Import Project="..\thirdparty\zlib-1.2.11\zlib-static.props" />
|
||||||
<Import Project="..\thirdparty\libzip-1.4.0\libzip-static.props" />
|
<Import Project="..\thirdparty\libzip-1.4.0\libzip-static.props" />
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#include "HTTPClient.h"
|
#include "HTTPClient.h"
|
||||||
|
|
||||||
|
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|||||||
@ -52,7 +52,7 @@ namespace
|
|||||||
{
|
{
|
||||||
|
|
||||||
static const std::string productId = "coc";
|
static const std::string productId = "coc";
|
||||||
static const std::string serverPath = "http://localhost:3000/api/v1";
|
static const std::string serverPath = "https://license.apis.sk/api/v1";
|
||||||
|
|
||||||
static const uint32_t initializationVectorSize = AES::BLOCKSIZE;
|
static const uint32_t initializationVectorSize = AES::BLOCKSIZE;
|
||||||
static const uint32_t macTagSize = 16;
|
static const uint32_t macTagSize = 16;
|
||||||
@ -386,7 +386,7 @@ std::vector<ModuleUpdate> LicenseClient::checkForUpdates(HTTPClient & httpClient
|
|||||||
// Something changes - Server sent us updated licenseFile
|
// Something changes - Server sent us updated licenseFile
|
||||||
{
|
{
|
||||||
const auto& licenseData = checkUpdatesResponse.licenseFile.value();
|
const auto& licenseData = checkUpdatesResponse.licenseFile.value();
|
||||||
std::ofstream os(m_licenseFile);
|
std::ofstream os(m_licenseFile, std::ofstream::binary);
|
||||||
os.write(licenseData.data(), licenseData.size());
|
os.write(licenseData.data(), licenseData.size());
|
||||||
}
|
}
|
||||||
loadActivationData();
|
loadActivationData();
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
#include "SystemParamsProvider_win.h"
|
#include "SystemParamsProvider_win.h"
|
||||||
|
|
||||||
|
struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
|
||||||
#define _WIN32_DCOM
|
#define _WIN32_DCOM
|
||||||
#include <comdef.h>
|
#include <comdef.h>
|
||||||
#include <Wbemidl.h>
|
#include <Wbemidl.h>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<ProjectGuid>{E781AE2E-4A02-4D63-9CAC-1AEBACD9CD73}</ProjectGuid>
|
<ProjectGuid>{E781AE2E-4A02-4D63-9CAC-1AEBACD9CD73}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>libLicenseClientTest</RootNamespace>
|
<RootNamespace>libLicenseClientTest</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
@ -61,13 +61,13 @@
|
|||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
|
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
|
||||||
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
|
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
|
||||||
<Import Project="..\..\thirdparty\boost-1.66.0\boost.props" />
|
<Import Project="..\..\thirdparty\boost-1.67.0\boost.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
|
<Import Project="..\..\thirdparty\gtest-20180224\gtest-static.props" />
|
||||||
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
|
<Import Project="..\..\thirdparty\gtest-20180224\gmock-static.props" />
|
||||||
<Import Project="..\..\thirdparty\boost-1.66.0\boost.props" />
|
<Import Project="..\..\thirdparty\boost-1.67.0\boost.props" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user