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
671b023d
Commit
671b023d
authored
Jan 29, 2007
by
Bang Jun-Young
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix prototypes to match the PSDK.
parent
ba9e77b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
crypt.c
dlls/advapi32/crypt.c
+6
-6
crypt.h
dlls/advapi32/crypt.h
+3
-3
wincrypt.h
include/wincrypt.h
+7
-7
No files found.
dlls/advapi32/crypt.c
View file @
671b023d
...
@@ -1741,7 +1741,7 @@ BOOL WINAPI CryptHashSessionKey (HCRYPTHASH hHash, HCRYPTKEY hKey, DWORD dwFlags
...
@@ -1741,7 +1741,7 @@ BOOL WINAPI CryptHashSessionKey (HCRYPTHASH hHash, HCRYPTKEY hKey, DWORD dwFlags
* Success: TRUE
* Success: TRUE
* Failure: FALSE
* Failure: FALSE
*/
*/
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
BYTE
*
pbData
,
DWORD
dwDataLen
,
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
)
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
)
{
{
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
...
@@ -1856,7 +1856,7 @@ BOOL WINAPI CryptSignHashA (HCRYPTHASH hHash, DWORD dwKeySpec, LPCSTR sDescripti
...
@@ -1856,7 +1856,7 @@ BOOL WINAPI CryptSignHashA (HCRYPTHASH hHash, DWORD dwKeySpec, LPCSTR sDescripti
* Success: TRUE
* Success: TRUE
* Failure: FALSE
* Failure: FALSE
*/
*/
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
{
{
PCRYPTPROV
prov
;
PCRYPTPROV
prov
;
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
...
@@ -1889,7 +1889,7 @@ BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, BYTE *pbData, DW
...
@@ -1889,7 +1889,7 @@ BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, BYTE *pbData, DW
* Success: TRUE
* Success: TRUE
* Failure: FALSE
* Failure: FALSE
*/
*/
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
{
{
PCRYPTPROV
prov
;
PCRYPTPROV
prov
;
PCRYPTKEY
key
=
(
PCRYPTKEY
)
hKey
;
PCRYPTKEY
key
=
(
PCRYPTKEY
)
hKey
;
...
@@ -2063,7 +2063,7 @@ BOOL WINAPI CryptSetProviderExA (LPCSTR pszProvName, DWORD dwProvType, DWORD *pd
...
@@ -2063,7 +2063,7 @@ BOOL WINAPI CryptSetProviderExA (LPCSTR pszProvName, DWORD dwProvType, DWORD *pd
* Success: TRUE
* Success: TRUE
* Failure: FALSE
* Failure: FALSE
*/
*/
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
{
{
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
...
@@ -2122,7 +2122,7 @@ BOOL WINAPI CryptSetProvParam (HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData, DW
...
@@ -2122,7 +2122,7 @@ BOOL WINAPI CryptSetProvParam (HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData, DW
* NULL. It is supported only for compatibility with Microsoft's Cryptographic
* NULL. It is supported only for compatibility with Microsoft's Cryptographic
* Providers.
* Providers.
*/
*/
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
)
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
)
{
{
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
...
@@ -2155,7 +2155,7 @@ BOOL WINAPI CryptVerifySignatureW (HCRYPTHASH hHash, BYTE *pbSignature, DWORD dw
...
@@ -2155,7 +2155,7 @@ BOOL WINAPI CryptVerifySignatureW (HCRYPTHASH hHash, BYTE *pbSignature, DWORD dw
*
*
* See CryptVerifySignatureW.
* See CryptVerifySignatureW.
*/
*/
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
)
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
)
{
{
LPWSTR
wsDescription
;
LPWSTR
wsDescription
;
...
...
dlls/advapi32/crypt.h
View file @
671b023d
...
@@ -49,9 +49,9 @@ typedef struct tagPROVFUNCS
...
@@ -49,9 +49,9 @@ typedef struct tagPROVFUNCS
BOOL
(
WINAPI
*
pCPHashSessionKey
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPHashSessionKey
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPImportKey
)(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
(
WINAPI
*
pCPImportKey
)(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
(
WINAPI
*
pCPReleaseContext
)(
HCRYPTPROV
hProv
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPReleaseContext
)(
HCRYPTPROV
hProv
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetHashParam
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetHashParam
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetKeyParam
)(
HCRYPTPROV
hProv
,
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetKeyParam
)(
HCRYPTPROV
hProv
,
HCRYPTKEY
hKey
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetProvParam
)(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSetProvParam
)(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPSignHash
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCWSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
BOOL
(
WINAPI
*
pCPSignHash
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCWSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
BOOL
(
WINAPI
*
pCPVerifySignature
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPVerifySignature
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
);
}
PROVFUNCS
,
*
PPROVFUNCS
;
}
PROVFUNCS
,
*
PPROVFUNCS
;
...
...
include/wincrypt.h
View file @
671b023d
...
@@ -3052,28 +3052,28 @@ BOOL WINAPI CryptGetDefaultProviderW (DWORD dwProvType, DWORD *pdwReserved,
...
@@ -3052,28 +3052,28 @@ BOOL WINAPI CryptGetDefaultProviderW (DWORD dwProvType, DWORD *pdwReserved,
DWORD
dwFlags
,
LPWSTR
pszProvName
,
DWORD
*
pcbProvName
);
DWORD
dwFlags
,
LPWSTR
pszProvName
,
DWORD
*
pcbProvName
);
#define CryptGetDefaultProvider WINELIB_NAME_AW(CryptGetDefaultProvider)
#define CryptGetDefaultProvider WINELIB_NAME_AW(CryptGetDefaultProvider)
BOOL
WINAPI
CryptGetUserKey
(
HCRYPTPROV
hProv
,
DWORD
dwKeySpec
,
HCRYPTKEY
*
phUserKey
);
BOOL
WINAPI
CryptGetUserKey
(
HCRYPTPROV
hProv
,
DWORD
dwKeySpec
,
HCRYPTKEY
*
phUserKey
);
BOOL
WINAPI
CryptHashData
(
HCRYPTHASH
hHash
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptHashData
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptHashSessionKey
(
HCRYPTHASH
hHash
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptHashSessionKey
(
HCRYPTHASH
hHash
,
HCRYPTKEY
hKey
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
BYTE
*
pbData
,
DWORD
dwDataLen
,
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
);
BOOL
WINAPI
CryptReleaseContext
(
HCRYPTPROV
hProv
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptReleaseContext
(
HCRYPTPROV
hProv
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
);
BOOL
WINAPI
CryptSetProviderA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
);
BOOL
WINAPI
CryptSetProviderW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
);
BOOL
WINAPI
CryptSetProviderW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
);
#define CryptSetProvider WINELIB_NAME_AW(CryptSetProvider)
#define CryptSetProvider WINELIB_NAME_AW(CryptSetProvider)
BOOL
WINAPI
CryptSetProviderExA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderExA
(
LPCSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderExW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProviderExW
(
LPCWSTR
pszProvName
,
DWORD
dwProvType
,
DWORD
*
pdwReserved
,
DWORD
dwFlags
);
#define CryptSetProviderEx WINELIB_NAME_AW(CryptSetProviderEx)
#define CryptSetProviderEx WINELIB_NAME_AW(CryptSetProviderEx)
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptSignHashA
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCSTR
sDescription
,
BOOL
WINAPI
CryptSignHashA
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
BOOL
WINAPI
CryptSignHashW
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCWSTR
sDescription
,
BOOL
WINAPI
CryptSignHashW
(
HCRYPTHASH
hHash
,
DWORD
dwKeySpec
,
LPCWSTR
sDescription
,
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
DWORD
dwFlags
,
BYTE
*
pbSignature
,
DWORD
*
pdwSigLen
);
#define CryptSignHash WINELIB_NAME_AW(CryptSignHash)
#define CryptSignHash WINELIB_NAME_AW(CryptSignHash)
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
);
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
);
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
);
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
);
#define CryptVerifySignature WINELIB_NAME_AW(CryptVerifySignature)
#define CryptVerifySignature WINELIB_NAME_AW(CryptVerifySignature)
...
...
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