open-license-manager
2014-10-13 852dc2056835679e2beb4b1ee9bfe4385ab27bf2
src/tools/base_lib/win/CryptoHelperWindows.h
@@ -8,15 +8,25 @@
#ifndef CRYPTOHELPERWINDOWS_H_
#define CRYPTOHELPERWINDOWS_H_
#define _WIN32_WINNT 0x0400
//#define _WIN32_WINNT 0x0400
#include <windows.h>
#include <wincrypt.h>
#include <tchar.h>
#include <string>
#include "../CryptoHelper.h"
namespace license {
using namespace std;
class CryptoHelperWindows: public CryptoHelper {
private :
   void acquireContext();
   //   Handle to the cryptography provider.
   HCRYPTPROV m_hCryptProv;
   //   Handle to the cryptography key.
   HCRYPTKEY m_hCryptKey;
public:
   CryptoHelperWindows();
@@ -24,7 +34,7 @@
   virtual const string exportPrivateKey() const;
   virtual const string exportPublicKey() const;
   virtual string signString(const void* privateKey, size_t pklen,
   virtual const string signString(const void* privateKey, size_t pklen,
         const string& license) const;
   virtual ~CryptoHelperWindows();