From 1922d8c2cf7dcaacafd17394849577794b1f10eb Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周六, 13 9月 2014 06:24:55 +0800
Subject: [PATCH] signature windows

---
 src/bootstrap/win/CryptoHelper.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bootstrap/win/CryptoHelper.cpp b/src/bootstrap/win/CryptoHelper.cpp
index 27c528a..50f337b 100644
--- a/src/bootstrap/win/CryptoHelper.cpp
+++ b/src/bootstrap/win/CryptoHelper.cpp
@@ -1,6 +1,6 @@
 #include "CryptoHelper.h"
 // The RSA public-key key exchange algorithm
-#define ENCRYPT_ALGORITHM         CALG_RSA_KEYX
+#define ENCRYPT_ALGORITHM         CALG_RSA_SIGN
 // The high order WORD 0x0200 (decimal 512)
 // determines the key length in bits.
 #define KEYLENGTH                 0x02000000
@@ -53,7 +53,7 @@
                                wszContainerName,
                                MS_ENHANCED_PROV,
                                PROV_RSA_FULL,
-    CRYPT_MACHINE_KEYSET))
+    0))
        {
          // An error occurred in acquiring the context. This could mean
          // that the key container requested does not exist. In this case,
@@ -64,7 +64,7 @@
                      if(!CryptAcquireContext(&m_hCryptProv,
                                             wszContainerName,
                                             MS_ENHANCED_PROV,   PROV_RSA_FULL,
-                                            CRYPT_MACHINE_KEYSET|CRYPT_NEWKEYSET))
+                                            CRYPT_NEWKEYSET))
                      {
                            dwErrCode = GetLastError();
                             return HRESULT_FROM_WIN32(dwErrCode);

--
Gitblit v1.9.1