Gerald Pfeifer : rsaenh: Simplify store_key_container_permissions.

Alexandre Julliard julliard at winehq.org
Wed May 26 11:49:07 CDT 2010


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Mon May 24 21:43:15 2010 +0200

rsaenh: Simplify store_key_container_permissions.

---

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

diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 89bb786..d7d63b1 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -1167,16 +1167,6 @@ static void store_key_container_keys(KEYCONTAINER *pKeyContainer)
 static void store_key_container_permissions(KEYCONTAINER *pKeyContainer)
 {
     HKEY hKey;
-    DWORD dwFlags;
-
-    /* On WinXP, persistent keys are stored in a file located at:
-     * $AppData$\\Microsoft\\Crypto\\RSA\\$SID$\\some_hex_string
-     */
-
-    if (pKeyContainer->dwFlags & CRYPT_MACHINE_KEYSET)
-        dwFlags = CRYPTPROTECT_LOCAL_MACHINE;
-    else
-        dwFlags = 0;
 
     if (create_container_key(pKeyContainer, KEY_WRITE, &hKey))
     {




More information about the wine-cvs mailing list