Juan Lang : rsaenh: Don't store a key to the registry when it' s being read from the registry.

Alexandre Julliard julliard at winehq.org
Thu Jan 29 09:15:05 CST 2009


Module: wine
Branch: master
Commit: fbc26f3855ad3b9235b22d0a9b5a0a25cc150f80
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fbc26f3855ad3b9235b22d0a9b5a0a25cc150f80

Author: Juan Lang <juan.lang at gmail.com>
Date:   Wed Jan 28 21:49:31 2009 -0800

rsaenh: Don't store a key to the registry when it's being read from the registry.

---

 dlls/rsaenh/rsaenh.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index c94603a..843bb28 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -321,13 +321,13 @@ static BOOL crypt_export_key(
     DWORD *pdwDataLen
 );
 
-BOOL WINAPI 
-RSAENH_CPImportKey(
+static BOOL import_key(
     HCRYPTPROV hProv, 
     CONST BYTE *pbData, 
     DWORD dwDataLen, 
     HCRYPTKEY hPubKey, 
     DWORD dwFlags, 
+    BOOL fStoreKey,
     HCRYPTKEY *phKey
 );
 
@@ -1184,8 +1184,8 @@ static BOOL read_key_value(HCRYPTPROV hKeyContainer, HKEY hKey, LPCSTR szValueNa
                 if (CryptUnprotectData(&blobIn, NULL, NULL, NULL, NULL,
                     dwFlags, &blobOut))
                 {
-                    ret = RSAENH_CPImportKey(hKeyContainer, blobOut.pbData, blobOut.cbData, 0, 0,
-                                             phCryptKey);
+                    ret = import_key(hKeyContainer, blobOut.pbData, blobOut.cbData, 0, 0,
+                                     FALSE, phCryptKey);
                     LocalFree(blobOut.pbData);
                 }
             }




More information about the wine-cvs mailing list