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
950b838e
Commit
950b838e
authored
Sep 05, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Cast-qual warnings fix.
parent
c0d2923c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
encode.c
dlls/crypt32/encode.c
+3
-3
protectdata.c
dlls/crypt32/protectdata.c
+4
-4
str.c
dlls/crypt32/str.c
+1
-1
No files found.
dlls/crypt32/encode.c
View file @
950b838e
...
...
@@ -1019,7 +1019,7 @@ static BOOL WINAPI CRYPT_AsnEncodeNameValue(DWORD dwCertEncodingType,
__TRY
{
const
CERT_NAME_VALUE
*
value
=
(
CERT_NAME_VALUE
*
)
pvStructInfo
;
const
CERT_NAME_VALUE
*
value
=
(
const
CERT_NAME_VALUE
*
)
pvStructInfo
;
switch
(
value
->
dwValueType
)
{
...
...
@@ -1159,7 +1159,7 @@ static BOOL WINAPI CRYPT_AsnEncodeRdnAttr(DWORD dwCertEncodingType,
static
int
BLOBComp
(
const
void
*
l
,
const
void
*
r
)
{
CRYPT_DER_BLOB
*
a
=
(
CRYPT_DER_BLOB
*
)
l
,
*
b
=
(
CRYPT_DER_BLOB
*
)
r
;
const
CRYPT_DER_BLOB
*
a
=
(
const
CRYPT_DER_BLOB
*
)
l
,
*
b
=
(
const
CRYPT_DER_BLOB
*
)
r
;
int
ret
;
if
(
!
(
ret
=
memcmp
(
a
->
pbData
,
b
->
pbData
,
min
(
a
->
cbData
,
b
->
cbData
))))
...
...
@@ -1564,7 +1564,7 @@ static BOOL WINAPI CRYPT_AsnEncodeUnicodeNameValue(DWORD dwCertEncodingType,
__TRY
{
const
CERT_NAME_VALUE
*
value
=
(
CERT_NAME_VALUE
*
)
pvStructInfo
;
const
CERT_NAME_VALUE
*
value
=
(
const
CERT_NAME_VALUE
*
)
pvStructInfo
;
switch
(
value
->
dwValueType
)
{
...
...
dlls/crypt32/protectdata.c
View file @
950b838e
...
...
@@ -555,7 +555,7 @@ void free_protect_data(struct protect_data_t * pInfo)
/* copies a string into a data blob */
static
BYTE
*
convert_str_to_blob
(
char
*
str
,
DATA_BLOB
*
blob
)
BYTE
*
convert_str_to_blob
(
LPCSTR
str
,
DATA_BLOB
*
blob
)
{
if
(
!
str
||
!
blob
)
return
NULL
;
...
...
@@ -590,11 +590,11 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
pInfo
->
count0
=
0x0001
;
convert_str_to_blob
(
(
char
*
)
crypt_magic_str
,
&
pInfo
->
info0
);
convert_str_to_blob
(
crypt_magic_str
,
&
pInfo
->
info0
);
pInfo
->
count1
=
0x0001
;
convert_str_to_blob
(
(
char
*
)
crypt_magic_str
,
&
pInfo
->
info1
);
convert_str_to_blob
(
crypt_magic_str
,
&
pInfo
->
info1
);
pInfo
->
null0
=
0x0000
;
...
...
@@ -606,7 +606,7 @@ BOOL fill_protect_data(struct protect_data_t * pInfo, LPCWSTR szDataDescr,
pInfo
->
unknown0
=
0x0000
;
pInfo
->
unknown1
=
0x0000
;
convert_str_to_blob
(
(
char
*
)
crypt_magic_str
,
&
pInfo
->
data0
);
convert_str_to_blob
(
crypt_magic_str
,
&
pInfo
->
data0
);
pInfo
->
null1
=
0x0000
;
pInfo
->
unknown2
=
0x0000
;
...
...
dlls/crypt32/str.c
View file @
950b838e
...
...
@@ -572,7 +572,7 @@ static DWORD CRYPT_GetNextValueW(LPCWSTR str, DWORD dwFlags, LPCWSTR separators,
while
(
*
separators
)
map
[
*
separators
++
]
=
1
;
while
(
*
str
&&
(
*
str
>=
0xff
||
!
map
[
*
(
unsigned
short
*
)
str
]))
while
(
*
str
&&
(
*
str
>=
0xff
||
!
map
[
*
(
const
unsigned
short
*
)
str
]))
str
++
;
token
->
end
=
str
;
}
...
...
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