From f6437cfaed1dd0acd1ec63e1c282d0e7edfa4522 Mon Sep 17 00:00:00 2001 From: davidwed <davidwe@posteo.de> Date: 周六, 07 9月 2019 21:54:13 +0800 Subject: [PATCH] Fix a compilier error with msys2-mingw64 ( ld.exe: cannot find -ldl ) (#35) --- src/tools/base_lib/CryptoHelper.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tools/base_lib/CryptoHelper.h b/src/tools/base_lib/CryptoHelper.h index cce02cc..c1751f8 100644 --- a/src/tools/base_lib/CryptoHelper.h +++ b/src/tools/base_lib/CryptoHelper.h @@ -3,6 +3,7 @@ #include <memory> #include <cstddef> +#include <string> namespace license { using namespace std; @@ -20,17 +21,17 @@ class CryptoHelper { protected: - CryptoHelper(); + inline CryptoHelper(){}; public: virtual void generateKeyPair() = 0; virtual const string exportPrivateKey() const = 0; virtual const string exportPublicKey() const = 0; - virtual const string signString(const unsigned char* privateKey, + virtual const string signString(const void* privateKey, size_t pklen, const string& license) const = 0; static unique_ptr<CryptoHelper> getInstance(); - virtual ~CryptoHelper(); + inline virtual ~CryptoHelper(){}; }; } #endif -- Gitblit v1.9.1