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
58f9b607
Commit
58f9b607
authored
Oct 24, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Cast-qual warnings fix.
parent
5ace8745
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
crl.c
dlls/crypt32/crl.c
+1
-1
decode.c
dlls/crypt32/decode.c
+4
-4
encode.c
dlls/crypt32/encode.c
+1
-1
No files found.
dlls/crypt32/crl.c
View file @
58f9b607
...
...
@@ -429,7 +429,7 @@ static BOOL WINAPI CRLContext_SetProperty(void *context, DWORD dwPropId,
}
case
CERT_DATE_STAMP_PROP_ID
:
ret
=
ContextPropertyList_SetProperty
(
properties
,
dwPropId
,
(
LPBYTE
)
pvData
,
sizeof
(
FILETIME
));
(
const
BYTE
*
)
pvData
,
sizeof
(
FILETIME
));
break
;
default:
FIXME
(
"%d: stub
\n
"
,
dwPropId
);
...
...
dlls/crypt32/decode.c
View file @
58f9b607
...
...
@@ -1333,7 +1333,7 @@ static BOOL WINAPI CRYPT_AsnDecodeNameValueInternal(DWORD dwCertEncodingType,
case
ASN_UTF8STRING
:
valueType
=
CERT_RDN_UTF8_STRING
;
bytesNeeded
+=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPSTR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
NULL
,
0
)
*
2
;
(
LP
C
STR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
NULL
,
0
)
*
2
;
break
;
default:
SetLastError
(
CRYPT_E_ASN1_BADTAG
);
...
...
@@ -1394,7 +1394,7 @@ static BOOL WINAPI CRYPT_AsnDecodeNameValueInternal(DWORD dwCertEncodingType,
LPWSTR
str
=
(
LPWSTR
)
value
->
Value
.
pbData
;
value
->
Value
.
cbData
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPSTR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
(
LP
C
STR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
str
,
bytesNeeded
-
sizeof
(
CERT_NAME_VALUE
))
*
2
;
break
;
}
...
...
@@ -1508,7 +1508,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUnicodeNameValueInternal(
case
ASN_UTF8STRING
:
valueType
=
CERT_RDN_UTF8_STRING
;
bytesNeeded
+=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LPSTR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
NULL
,
0
)
*
2
;
(
LP
C
STR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
NULL
,
0
)
*
2
;
break
;
default:
SetLastError
(
CRYPT_E_ASN1_BADTAG
);
...
...
@@ -1561,7 +1561,7 @@ static BOOL WINAPI CRYPT_AsnDecodeUnicodeNameValueInternal(
break
;
case
ASN_UTF8STRING
:
value
->
Value
.
cbData
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
(
LP
STR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
(
LP
CSTR
)
pbEncoded
+
1
+
lenBytes
,
dataLen
,
str
,
bytesNeeded
-
sizeof
(
CERT_NAME_VALUE
))
*
2
;
break
;
}
...
...
dlls/crypt32/encode.c
View file @
58f9b607
...
...
@@ -600,7 +600,7 @@ static BOOL WINAPI CRYPT_AsnEncodeCRLEntries(DWORD dwCertEncodingType,
{
DWORD
cCRLEntry
=
*
(
const
DWORD
*
)
pvStructInfo
;
DWORD
bytesNeeded
,
dataLen
,
lenBytes
,
i
;
const
CRL_ENTRY
*
rgCRLEntry
=
*
(
const
CRL_ENTRY
**
)
const
CRL_ENTRY
*
rgCRLEntry
=
*
(
const
CRL_ENTRY
*
const
*
)
((
const
BYTE
*
)
pvStructInfo
+
sizeof
(
DWORD
));
BOOL
ret
=
TRUE
;
...
...
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