You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ project (cryptolens)
4
4
set (CRYPTOLENS_BUILD_TESTS OFFCACHEBOOL"build tests?")
5
5
set (CRYPTOLENS_CURL_EMBED_CACERTS OFFCACHEBOOL"embed the ca certs in the library instead of using system default files?")
6
6
7
-
set (SRC "src/ActivateError.cpp""src/DataObject.cpp""src/LicenseKey.cpp""src/LicenseKeyChecker.cpp""src/LicenseKeyInformation.cpp""src/base64.cpp""src/basic_SKM.cpp")
7
+
set (SRC "src/ActivateError.cpp""src/DataObject.cpp""src/LicenseKey.cpp""src/LicenseKeyChecker.cpp""src/LicenseKeyInformation.cpp""src/MachineCodeComputer_static.cpp""src/basic_Cryptolens.cpp""src/basic_SKM.cpp""third_party/base64_OpenBSD/base64.cpp")
Copy file name to clipboardExpand all lines: README.md
+52-33Lines changed: 52 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
On this page, we have outlined several examples of how to get started with the Cryptolens Client API for C++.
4
4
5
-
> **Note**, Cryptolens Client API for C++ currently supports **activation** and **deactivation** methods. Support for more methods is coming soon.
5
+
> **Note**, Cryptolens Client API for C++ currently supports a subset of the full Cryptolens Web API. Please contact us (XXX: Add link) if you need something in particular.
6
6
7
7
You can find the API documentation here: [https://help.cryptolens.io/api/cpp/](https://help.cryptolens.io/api/cpp/).
8
8
@@ -70,6 +70,8 @@ Now we can build the example project:
70
70
* Set configuration and platform in the same way as when building the library
71
71
* Build and run the project.
72
72
73
+
Instructions for how to add the library to your own project can be found [here](https://help.cryptolens.io/cpp/). XXX: Fix link
74
+
73
75
## Library overview
74
76
75
77
This section contains an overview of the standard way to implement the library in an
@@ -78,33 +80,44 @@ application. The first step is to include the appropriate headers:
78
80
```cpp
79
81
#include<cryptolens/core.hpp>
80
82
#include<cryptolens/Error.hpp>
81
-
#include<cryptolens/RequestHandler_XXX.hpp>
82
-
#include<cryptolens/SignatureVerifier_YYY.hpp>
83
+
#include<cryptolens/Configuration_XXX.hpp>
84
+
#include<cryptolens/MachineCodeComputer_YYY.hpp>
85
+
86
+
namespacecryptolens = ::cryptolens_io::v20190401;
83
87
```
84
88
85
-
We currently support the following RequestHandlers and SignatureVerifiers
89
+
Besides including headers the above code sets up a namespace alias for the api version of the C++
90
+
library we are using.
91
+
92
+
The `Configuration` class allows for using different libraries for parsing JSON, making HTTPS
93
+
requests, performing cryptographic operations as well as minor changes in the behaviour of the
94
+
library. We currently support the following `Configurations` and `MachineCodeComputers`:
| `Configuration_Unix` | Good default configuration for Unix-like based systems. Uses ArduinoJson 5, libcurl and OpenSSL. Checks if the license key has expired against the users system time. |
99
+
| `Configuration_Unix_IgnoreExpires` | Same as `Configuration_Unix`, but does not check if the license key has expired against the users system time. |
100
+
| `Configuration_Windows` | Good default configuration for Windows based systems. Uses ArduinoJson 5, WinHTTP and CryptoAPI. Checks if the license key has expired against the users system time. |
101
+
| `Configuration_Windows_IgnoreExpires` | Same as `Configuration_Windows`, but does not check if the license key has expired against the users system time. |
0 commit comments