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
cae4c908
Commit
cae4c908
authored
Aug 13, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only modify returned keys on success.
parent
3972efae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
crypt.c
dlls/advapi32/crypt.c
+16
-7
No files found.
dlls/advapi32/crypt.c
View file @
cae4c908
...
...
@@ -470,10 +470,12 @@ BOOL WINAPI CryptCreateHash (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
hash
->
pProvider
=
prov
;
*
phHash
=
(
HCRYPTHASH
)
hash
;
if
(
prov
->
pFuncs
->
pCPCreateHash
(
prov
->
hPrivate
,
Algid
,
key
?
key
->
hPrivate
:
0
,
0
,
&
hash
->
hPrivate
))
return
TRUE
;
{
*
phHash
=
(
HCRYPTHASH
)
hash
;
return
TRUE
;
}
/* CSP error! */
CRYPT_Free
(
hash
);
...
...
@@ -521,7 +523,10 @@ BOOL WINAPI CryptDeriveKey (HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseData
key
->
pProvider
=
prov
;
if
(
prov
->
pFuncs
->
pCPDeriveKey
(
prov
->
hPrivate
,
Algid
,
hash
->
hPrivate
,
dwFlags
,
&
key
->
hPrivate
))
return
TRUE
;
{
*
phKey
=
(
HCRYPTKEY
)
key
;
return
TRUE
;
}
/* CSP error! */
CRYPT_Free
(
key
);
...
...
@@ -820,9 +825,11 @@ BOOL WINAPI CryptGenKey (HCRYPTPROV hProv, ALG_ID Algid, DWORD dwFlags, HCRYPTKE
key
->
pProvider
=
prov
;
*
phKey
=
(
HCRYPTKEY
)
key
;
if
(
prov
->
pFuncs
->
pCPGenKey
(
prov
->
hPrivate
,
Algid
,
dwFlags
,
&
key
->
hPrivate
))
return
TRUE
;
{
*
phKey
=
(
HCRYPTKEY
)
key
;
return
TRUE
;
}
/* CSP error! */
CRYPT_Free
(
key
);
...
...
@@ -957,9 +964,11 @@ BOOL WINAPI CryptGetUserKey (HCRYPTPROV hProv, DWORD dwKeySpec, HCRYPTKEY *phUse
key
->
pProvider
=
prov
;
*
phUserKey
=
(
HCRYPTKEY
)
key
;
if
(
prov
->
pFuncs
->
pCPGetUserKey
(
prov
->
hPrivate
,
dwKeySpec
,
&
key
->
hPrivate
))
return
TRUE
;
{
*
phUserKey
=
(
HCRYPTKEY
)
key
;
return
TRUE
;
}
/* CSP Error */
CRYPT_Free
(
key
);
...
...
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