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
7c7e1943
Commit
7c7e1943
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Win64 printf format warning fixes.
parent
162218b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
Makefile.in
dlls/rsaenh/Makefile.in
+1
-1
rsaenh.c
dlls/rsaenh/rsaenh.c
+25
-25
No files found.
dlls/rsaenh/Makefile.in
View file @
7c7e1943
EXTRADEFS
=
-DCOM_NO_WINDOWS_H
-DWINE_NO_LONG_AS_INT
EXTRADEFS
=
-DCOM_NO_WINDOWS_H
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
...
...
dlls/rsaenh/rsaenh.c
View file @
7c7e1943
...
...
@@ -1298,7 +1298,7 @@ static BOOL tls1_prf(HCRYPTPROV hProv, HCRYPTPROV hSecret, CONST PCRYPT_DATA_BLO
BOOL
result
=
FALSE
;
CRYPT_DATA_BLOB
blobLabelSeed
;
TRACE
(
"(hProv=%08lx, hSecret=%08lx, pblobLabel=%p, pblobSeed=%p, pbBuffer=%p, dwBufferLen=%
l
d)
\n
"
,
TRACE
(
"(hProv=%08lx, hSecret=%08lx, pblobLabel=%p, pblobSeed=%p, pbBuffer=%p, dwBufferLen=%d)
\n
"
,
hProv
,
hSecret
,
pblobLabel
,
pblobSeed
,
pbBuffer
,
dwBufferLen
);
if
(
!
lookup_handle
(
&
handle_table
,
hSecret
,
RSAENH_MAGIC_KEY
,
(
OBJECTHDR
**
)
&
pSecret
))
{
...
...
@@ -1449,7 +1449,7 @@ BOOL WINAPI RSAENH_CPAcquireContext(HCRYPTPROV *phProv, LPSTR pszContainer,
CHAR
szKeyContainerName
[
MAX_PATH
];
CHAR
szRegKey
[
MAX_PATH
];
TRACE
(
"(phProv=%p, pszContainer=%s, dwFlags=%08
lx, pVTable=%p)
\n
"
,
phProv
,
TRACE
(
"(phProv=%p, pszContainer=%s, dwFlags=%08
x, pVTable=%p)
\n
"
,
phProv
,
debugstr_a
(
pszContainer
),
dwFlags
,
pVTable
);
if
(
pszContainer
&&
*
pszContainer
)
...
...
@@ -1545,7 +1545,7 @@ BOOL WINAPI RSAENH_CPCreateHash(HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
CRYPTHASH
*
pCryptHash
;
const
PROV_ENUMALGS_EX
*
peaAlgidInfo
;
TRACE
(
"(hProv=%08lx, Algid=%08x, hKey=%08lx, dwFlags=%08
lx, phHash=%p)
\n
"
,
hProv
,
Algid
,
hKey
,
TRACE
(
"(hProv=%08lx, Algid=%08x, hKey=%08lx, dwFlags=%08
x, phHash=%p)
\n
"
,
hProv
,
Algid
,
hKey
,
dwFlags
,
phHash
);
peaAlgidInfo
=
get_algid_info
(
hProv
,
Algid
);
...
...
@@ -1726,7 +1726,7 @@ BOOL WINAPI RSAENH_CPDuplicateHash(HCRYPTPROV hUID, HCRYPTHASH hHash, DWORD *pdw
{
CRYPTHASH
*
pSrcHash
,
*
pDestHash
;
TRACE
(
"(hUID=%08lx, hHash=%08lx, pdwReserved=%p, dwFlags=%08
lx, phHash=%p)
\n
"
,
hUID
,
hHash
,
TRACE
(
"(hUID=%08lx, hHash=%08lx, pdwReserved=%p, dwFlags=%08
x, phHash=%p)
\n
"
,
hUID
,
hHash
,
pdwReserved
,
dwFlags
,
phHash
);
if
(
!
is_valid_handle
(
&
handle_table
,
hUID
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -1782,7 +1782,7 @@ BOOL WINAPI RSAENH_CPDuplicateKey(HCRYPTPROV hUID, HCRYPTKEY hKey, DWORD *pdwRes
{
CRYPTKEY
*
pSrcKey
,
*
pDestKey
;
TRACE
(
"(hUID=%08lx, hKey=%08lx, pdwReserved=%p, dwFlags=%08
lx, phKey=%p)
\n
"
,
hUID
,
hKey
,
TRACE
(
"(hUID=%08lx, hKey=%08lx, pdwReserved=%p, dwFlags=%08
x, phKey=%p)
\n
"
,
hUID
,
hKey
,
pdwReserved
,
dwFlags
,
phKey
);
if
(
!
is_valid_handle
(
&
handle_table
,
hUID
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -1853,8 +1853,8 @@ BOOL WINAPI RSAENH_CPEncrypt(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTHASH hHash,
BYTE
*
in
,
out
[
RSAENH_MAX_BLOCK_SIZE
],
o
[
RSAENH_MAX_BLOCK_SIZE
];
DWORD
dwEncryptedLen
,
i
,
j
,
k
;
TRACE
(
"(hProv=%08lx, hKey=%08lx, hHash=%08lx, Final=%d, dwFlags=%08
l
x, pbData=%p, "
"pdwDataLen=%p, dwBufLen=%
l
d)
\n
"
,
hProv
,
hKey
,
hHash
,
Final
,
dwFlags
,
pbData
,
pdwDataLen
,
TRACE
(
"(hProv=%08lx, hKey=%08lx, hHash=%08lx, Final=%d, dwFlags=%08x, pbData=%p, "
"pdwDataLen=%p, dwBufLen=%d)
\n
"
,
hProv
,
hKey
,
hHash
,
Final
,
dwFlags
,
pbData
,
pdwDataLen
,
dwBufLen
);
if
(
!
is_valid_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2006,7 +2006,7 @@ BOOL WINAPI RSAENH_CPDecrypt(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTHASH hHash,
DWORD
i
,
j
,
k
;
DWORD
dwMax
;
TRACE
(
"(hProv=%08lx, hKey=%08lx, hHash=%08lx, Final=%d, dwFlags=%08
l
x, pbData=%p, "
TRACE
(
"(hProv=%08lx, hKey=%08lx, hHash=%08lx, Final=%d, dwFlags=%08x, pbData=%p, "
"pdwDataLen=%p)
\n
"
,
hProv
,
hKey
,
hHash
,
Final
,
dwFlags
,
pbData
,
pdwDataLen
);
if
(
!
is_valid_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2124,7 +2124,7 @@ BOOL WINAPI RSAENH_CPExportKey(HCRYPTPROV hProv, HCRYPTKEY hKey, HCRYPTKEY hPubK
ALG_ID
*
pAlgid
=
(
ALG_ID
*
)(
pBlobHeader
+
1
);
DWORD
dwDataLen
;
TRACE
(
"(hProv=%08lx, hKey=%08lx, hPubKey=%08lx, dwBlobType=%08
lx, dwFlags=%08l
x, pbData=%p,"
TRACE
(
"(hProv=%08lx, hKey=%08lx, hPubKey=%08lx, dwBlobType=%08
x, dwFlags=%08
x, pbData=%p,"
"pdwDataLen=%p)
\n
"
,
hProv
,
hKey
,
hPubKey
,
dwBlobType
,
dwFlags
,
pbData
,
pdwDataLen
);
if
(
!
is_valid_handle
(
&
handle_table
,
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2285,7 +2285,7 @@ BOOL WINAPI RSAENH_CPImportKey(HCRYPTPROV hProv, CONST BYTE *pbData, DWORD dwDat
DWORD
dwKeyLen
;
BOOL
ret
;
TRACE
(
"(hProv=%08lx, pbData=%p, dwDataLen=%
ld, hPubKey=%08lx, dwFlags=%08lx, phKey=%p)
\n
"
,
TRACE
(
"(hProv=%08lx, pbData=%p, dwDataLen=%
d, hPubKey=%08lx, dwFlags=%08x, phKey=%p)
\n
"
,
hProv
,
pbData
,
dwDataLen
,
hPubKey
,
dwFlags
,
phKey
);
if
(
!
lookup_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
,
...
...
@@ -2442,7 +2442,7 @@ BOOL WINAPI RSAENH_CPGenKey(HCRYPTPROV hProv, ALG_ID Algid, DWORD dwFlags, HCRYP
KEYCONTAINER
*
pKeyContainer
;
CRYPTKEY
*
pCryptKey
;
TRACE
(
"(hProv=%08lx, aiAlgid=%d, dwFlags=%08
l
x, phKey=%p)
\n
"
,
hProv
,
Algid
,
dwFlags
,
phKey
);
TRACE
(
"(hProv=%08lx, aiAlgid=%d, dwFlags=%08x, phKey=%p)
\n
"
,
hProv
,
Algid
,
dwFlags
,
phKey
);
if
(
!
lookup_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
...
...
@@ -2534,7 +2534,7 @@ BOOL WINAPI RSAENH_CPGenKey(HCRYPTPROV hProv, ALG_ID Algid, DWORD dwFlags, HCRYP
*/
BOOL
WINAPI
RSAENH_CPGenRandom
(
HCRYPTPROV
hProv
,
DWORD
dwLen
,
BYTE
*
pbBuffer
)
{
TRACE
(
"(hProv=%08lx, dwLen=%
l
d, pbBuffer=%p)
\n
"
,
hProv
,
dwLen
,
pbBuffer
);
TRACE
(
"(hProv=%08lx, dwLen=%d, pbBuffer=%p)
\n
"
,
hProv
,
dwLen
,
pbBuffer
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
{
...
...
@@ -2572,7 +2572,7 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
{
CRYPTHASH
*
pCryptHash
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwParam=%08
lx, pbData=%p, pdwDataLen=%p, dwFlags=%08lx)
\n
"
,
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwParam=%08
x, pbData=%p, pdwDataLen=%p, dwFlags=%08x)
\n
"
,
hProv
,
hHash
,
dwParam
,
pbData
,
pdwDataLen
,
dwFlags
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2670,7 +2670,7 @@ BOOL WINAPI RSAENH_CPSetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
{
CRYPTKEY
*
pCryptKey
;
TRACE
(
"(hProv=%08lx, hKey=%08lx, dwParam=%08
lx, pbData=%p, dwFlags=%08lx)
\n
"
,
hProv
,
hKey
,
TRACE
(
"(hProv=%08lx, hKey=%08lx, dwParam=%08
x, pbData=%p, dwFlags=%08x)
\n
"
,
hProv
,
hKey
,
dwParam
,
pbData
,
dwFlags
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2770,7 +2770,7 @@ BOOL WINAPI RSAENH_CPGetKeyParam(HCRYPTPROV hProv, HCRYPTKEY hKey, DWORD dwParam
CRYPTKEY
*
pCryptKey
;
DWORD
dwBitLen
;
TRACE
(
"(hProv=%08lx, hKey=%08lx, dwParam=%08
lx, pbData=%p, pdwDataLen=%p dwFlags=%08lx)
\n
"
,
TRACE
(
"(hProv=%08lx, hKey=%08lx, dwParam=%08
x, pbData=%p, pdwDataLen=%p dwFlags=%08x)
\n
"
,
hProv
,
hKey
,
dwParam
,
pbData
,
pdwDataLen
,
dwFlags
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -2880,7 +2880,7 @@ BOOL WINAPI RSAENH_CPGetProvParam(HCRYPTPROV hProv, DWORD dwParam, BYTE *pbData,
0xf3
,
0x81
,
/**/
0x00
,
/**/
0xfa
,
0xe8
,
0x26
,
/**/
0x00
,
/**/
0xca
};
TRACE
(
"(hProv=%08lx, dwParam=%08
lx, pbData=%p, pdwDataLen=%p, dwFlags=%08lx)
\n
"
,
TRACE
(
"(hProv=%08lx, dwParam=%08
x, pbData=%p, pdwDataLen=%p, dwFlags=%08x)
\n
"
,
hProv
,
dwParam
,
pbData
,
pdwDataLen
,
dwFlags
);
if
(
!
pdwDataLen
)
{
...
...
@@ -3039,7 +3039,7 @@ BOOL WINAPI RSAENH_CPDeriveKey(HCRYPTPROV hProv, ALG_ID Algid, HCRYPTHASH hBaseD
BYTE
abHashValue
[
RSAENH_MAX_HASH_SIZE
*
2
];
DWORD
dwLen
;
TRACE
(
"(hProv=%08lx, Algid=%d, hBaseData=%08lx, dwFlags=%08
lx phKey=%p)
\n
"
,
hProv
,
Algid
,
TRACE
(
"(hProv=%08lx, Algid=%d, hBaseData=%08lx, dwFlags=%08
x phKey=%p)
\n
"
,
hProv
,
Algid
,
hBaseData
,
dwFlags
,
phKey
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -3182,7 +3182,7 @@ BOOL WINAPI RSAENH_CPGetUserKey(HCRYPTPROV hProv, DWORD dwKeySpec, HCRYPTKEY *ph
{
KEYCONTAINER
*
pKeyContainer
;
TRACE
(
"(hProv=%08lx, dwKeySpec=%08
l
x, phUserKey=%p)
\n
"
,
hProv
,
dwKeySpec
,
phUserKey
);
TRACE
(
"(hProv=%08lx, dwKeySpec=%08x, phUserKey=%p)
\n
"
,
hProv
,
dwKeySpec
,
phUserKey
);
if
(
!
lookup_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
,
(
OBJECTHDR
**
)
&
pKeyContainer
))
...
...
@@ -3243,7 +3243,7 @@ BOOL WINAPI RSAENH_CPHashData(HCRYPTPROV hProv, HCRYPTHASH hHash, CONST BYTE *pb
{
CRYPTHASH
*
pCryptHash
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, pbData=%p, dwDataLen=%
ld, dwFlags=%08lx)
\n
"
,
TRACE
(
"(hProv=%08lx, hHash=%08lx, pbData=%p, dwDataLen=%
d, dwFlags=%08x)
\n
"
,
hProv
,
hHash
,
pbData
,
dwDataLen
,
dwFlags
);
if
(
dwFlags
)
...
...
@@ -3300,7 +3300,7 @@ BOOL WINAPI RSAENH_CPHashSessionKey(HCRYPTPROV hProv, HCRYPTHASH hHash, HCRYPTKE
CRYPTKEY
*
pKey
;
DWORD
i
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, hKey=%08lx, dwFlags=%08
l
x)
\n
"
,
hProv
,
hHash
,
hKey
,
dwFlags
);
TRACE
(
"(hProv=%08lx, hHash=%08lx, hKey=%08lx, dwFlags=%08x)
\n
"
,
hProv
,
hHash
,
hKey
,
dwFlags
);
if
(
!
lookup_handle
(
&
handle_table
,
(
unsigned
int
)
hKey
,
RSAENH_MAGIC_KEY
,
(
OBJECTHDR
**
)
&
pKey
)
||
(
GET_ALG_CLASS
(
pKey
->
aiAlgid
)
!=
ALG_CLASS_DATA_ENCRYPT
))
...
...
@@ -3341,7 +3341,7 @@ BOOL WINAPI RSAENH_CPHashSessionKey(HCRYPTPROV hProv, HCRYPTHASH hHash, HCRYPTKE
*/
BOOL
WINAPI
RSAENH_CPReleaseContext
(
HCRYPTPROV
hProv
,
DWORD
dwFlags
)
{
TRACE
(
"(hProv=%08lx, dwFlags=%08
l
x)
\n
"
,
hProv
,
dwFlags
);
TRACE
(
"(hProv=%08lx, dwFlags=%08x)
\n
"
,
hProv
,
dwFlags
);
if
(
!
release_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
{
...
...
@@ -3386,7 +3386,7 @@ BOOL WINAPI RSAENH_CPSetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
CRYPTKEY
*
pCryptKey
;
int
i
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwParam=%08
lx, pbData=%p, dwFlags=%08lx)
\n
"
,
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwParam=%08
x, pbData=%p, dwFlags=%08x)
\n
"
,
hProv
,
hHash
,
dwParam
,
pbData
,
dwFlags
);
if
(
!
is_valid_handle
(
&
handle_table
,
(
unsigned
int
)
hProv
,
RSAENH_MAGIC_CONTAINER
))
...
...
@@ -3483,7 +3483,7 @@ BOOL WINAPI RSAENH_CPSignHash(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwKeySpe
BYTE
abHashValue
[
RSAENH_MAX_HASH_SIZE
];
ALG_ID
aiAlgid
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwKeySpec=%08
lx, sDescription=%s, dwFlags=%08l
x, "
TRACE
(
"(hProv=%08lx, hHash=%08lx, dwKeySpec=%08
x, sDescription=%s, dwFlags=%08
x, "
"pbSignature=%p, pdwSigLen=%p)
\n
"
,
hProv
,
hHash
,
dwKeySpec
,
debugstr_w
(
sDescription
),
dwFlags
,
pbSignature
,
pdwSigLen
);
...
...
@@ -3564,8 +3564,8 @@ BOOL WINAPI RSAENH_CPVerifySignature(HCRYPTPROV hProv, HCRYPTHASH hHash, CONST B
BYTE
abHashValue
[
RSAENH_MAX_HASH_SIZE
];
BOOL
res
=
FALSE
;
TRACE
(
"(hProv=%08lx, hHash=%08lx, pbSignature=%p, dwSigLen=%
l
d, hPubKey=%08lx, sDescription=%s, "
"dwFlags=%08
l
x)
\n
"
,
hProv
,
hHash
,
pbSignature
,
dwSigLen
,
hPubKey
,
debugstr_w
(
sDescription
),
TRACE
(
"(hProv=%08lx, hHash=%08lx, pbSignature=%p, dwSigLen=%d, hPubKey=%08lx, sDescription=%s, "
"dwFlags=%08x)
\n
"
,
hProv
,
hHash
,
pbSignature
,
dwSigLen
,
hPubKey
,
debugstr_w
(
sDescription
),
dwFlags
);
if
(
dwFlags
&
~
(
CRYPT_NOHASHOID
|
CRYPT_X931_FORMAT
))
{
...
...
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