Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8f4a4914
Commit
8f4a4914
authored
Jan 28, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Separate storing a key container's keys from releasing them.
parent
21a3ae0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
rsaenh.c
dlls/rsaenh/rsaenh.c
+19
-1
No files found.
dlls/rsaenh/rsaenh.c
View file @
8f4a4914
...
...
@@ -932,7 +932,6 @@ static void store_key_pair(HCRYPTKEY hCryptKey, HKEY hKey, LPCSTR szValueName, D
HeapFree
(
GetProcessHeap
(),
0
,
pbKey
);
}
}
release_handle
(
&
handle_table
,
hCryptKey
,
RSAENH_MAGIC_KEY
);
}
}
...
...
@@ -1060,6 +1059,22 @@ static void store_key_container_keys(KEYCONTAINER *pKeyContainer)
}
/******************************************************************************
* release_key_container_keys [Internal]
*
* Releases key container's keys.
*
* PARAMS
* pKeyContainer [I] Pointer to the key container whose keys are to be released.
*/
static
void
release_key_container_keys
(
KEYCONTAINER
*
pKeyContainer
)
{
release_handle
(
&
handle_table
,
pKeyContainer
->
hKeyExchangeKeyPair
,
RSAENH_MAGIC_KEY
);
release_handle
(
&
handle_table
,
pKeyContainer
->
hSignatureKeyPair
,
RSAENH_MAGIC_KEY
);
}
/******************************************************************************
* destroy_key_container [Internal]
*
* Destructor for key containers.
...
...
@@ -1072,7 +1087,10 @@ static void destroy_key_container(OBJECTHDR *pObjectHdr)
KEYCONTAINER
*
pKeyContainer
=
(
KEYCONTAINER
*
)
pObjectHdr
;
if
(
!
(
pKeyContainer
->
dwFlags
&
CRYPT_VERIFYCONTEXT
))
{
store_key_container_keys
(
pKeyContainer
);
release_key_container_keys
(
pKeyContainer
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pKeyContainer
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment