Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6f8b2f59
Commit
6f8b2f59
authored
Sep 23, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Avoid using CONST.
parent
b605553e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
crypt.c
dlls/advapi32/crypt.c
+6
-6
crypt.h
dlls/advapi32/crypt.h
+6
-6
registry.c
dlls/advapi32/registry.c
+2
-2
No files found.
dlls/advapi32/crypt.c
View file @
6f8b2f59
...
...
@@ -1827,7 +1827,7 @@ BOOL WINAPI CryptHashSessionKey (HCRYPTHASH hHash, HCRYPTKEY hKey, DWORD dwFlags
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
BOOL
WINAPI
CryptImportKey
(
HCRYPTPROV
hProv
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
,
HCRYPTKEY
hPubKey
,
DWORD
dwFlags
,
HCRYPTKEY
*
phKey
)
{
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
...
...
@@ -1947,7 +1947,7 @@ BOOL WINAPI CryptSignHashA (HCRYPTHASH hHash, DWORD dwKeySpec, LPCSTR sDescripti
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetHashParam
(
HCRYPTHASH
hHash
,
DWORD
dwParam
,
const
BYTE
*
pbData
,
DWORD
dwFlags
)
{
PCRYPTPROV
prov
;
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
...
...
@@ -1981,7 +1981,7 @@ BOOL WINAPI CryptSetHashParam (HCRYPTHASH hHash, DWORD dwParam, CONST BYTE *pbDa
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetKeyParam
(
HCRYPTKEY
hKey
,
DWORD
dwParam
,
const
BYTE
*
pbData
,
DWORD
dwFlags
)
{
PCRYPTPROV
prov
;
PCRYPTKEY
key
=
(
PCRYPTKEY
)
hKey
;
...
...
@@ -2156,7 +2156,7 @@ BOOL WINAPI CryptSetProviderExA (LPCSTR pszProvName, DWORD dwProvType, DWORD *pd
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
CONST
BYTE
*
pbData
,
DWORD
dwFlags
)
BOOL
WINAPI
CryptSetProvParam
(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
const
BYTE
*
pbData
,
DWORD
dwFlags
)
{
PCRYPTPROV
prov
=
(
PCRYPTPROV
)
hProv
;
...
...
@@ -2215,7 +2215,7 @@ BOOL WINAPI CryptSetProvParam (HCRYPTPROV hProv, DWORD dwParam, CONST BYTE *pbDa
* NULL. It is supported only for compatibility with Microsoft's Cryptographic
* Providers.
*/
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureW
(
HCRYPTHASH
hHash
,
const
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCWSTR
sDescription
,
DWORD
dwFlags
)
{
PCRYPTHASH
hash
=
(
PCRYPTHASH
)
hHash
;
...
...
@@ -2243,7 +2243,7 @@ BOOL WINAPI CryptVerifySignatureW (HCRYPTHASH hHash, CONST BYTE *pbSignature, DW
*
* See CryptVerifySignatureW.
*/
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
BOOL
WINAPI
CryptVerifySignatureA
(
HCRYPTHASH
hHash
,
const
BYTE
*
pbSignature
,
DWORD
dwSigLen
,
HCRYPTKEY
hPubKey
,
LPCSTR
sDescription
,
DWORD
dwFlags
)
{
LPWSTR
wsDescription
;
...
...
dlls/advapi32/crypt.h
View file @
6f8b2f59
...
...
@@ -45,15 +45,15 @@ typedef struct tagPROVFUNCS
BOOL
(
WINAPI
*
pCPGetKeyParam
)(
HCRYPTPROV
hProv
,
HCRYPTKEY
hKey
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPGetProvParam
)(
HCRYPTPROV
hProv
,
DWORD
dwParam
,
BYTE
*
pbData
,
DWORD
*
pdwDataLen
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPGetUserKey
)(
HCRYPTPROV
hProv
,
DWORD
dwKeySpec
,
HCRYPTKEY
*
phUserKey
);
BOOL
(
WINAPI
*
pCPHashData
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
CONST
BYTE
*
pbData
,
DWORD
dwDataLen
,
DWORD
dwFlags
);
BOOL
(
WINAPI
*
pCPHashData
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
const
BYTE
*
pbData
,
DWORD
dwDataLen
,
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
*
pCPSetHashParam
)(
HCRYPTPROV
hProv
,
HCRYPTHASH
hHash
,
DWORD
dwParam
,
CONST
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
,
CONST
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
,
const
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
*
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
;
#define MAGIC_CRYPTPROV 0xA39E741F
...
...
dlls/advapi32/registry.c
View file @
6f8b2f59
...
...
@@ -1176,7 +1176,7 @@ LSTATUS WINAPI RegDeleteKeyA( HKEY hkey, LPCSTR name )
* Failure: Error code
*/
LSTATUS
WINAPI
RegSetValueExW
(
HKEY
hkey
,
LPCWSTR
name
,
DWORD
reserved
,
DWORD
type
,
CONST
BYTE
*
data
,
DWORD
count
)
DWORD
type
,
const
BYTE
*
data
,
DWORD
count
)
{
UNICODE_STRING
nameW
;
...
...
@@ -1208,7 +1208,7 @@ LSTATUS WINAPI RegSetValueExW( HKEY hkey, LPCWSTR name, DWORD reserved,
* NT does definitely care (aj)
*/
LSTATUS
WINAPI
RegSetValueExA
(
HKEY
hkey
,
LPCSTR
name
,
DWORD
reserved
,
DWORD
type
,
CONST
BYTE
*
data
,
DWORD
count
)
const
BYTE
*
data
,
DWORD
count
)
{
ANSI_STRING
nameA
;
UNICODE_STRING
nameW
;
...
...
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