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
28e1ec44
Commit
28e1ec44
authored
Aug 15, 2010
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Constify some variables.
parent
761f5ca1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
collectionstore.c
dlls/crypt32/collectionstore.c
+2
-2
crypt32_private.h
dlls/crypt32/crypt32_private.h
+1
-1
decode.c
dlls/crypt32/decode.c
+3
-3
encode.c
dlls/crypt32/encode.c
+10
-10
No files found.
dlls/crypt32/collectionstore.c
View file @
28e1ec44
...
...
@@ -134,7 +134,7 @@ static BOOL CRYPT_CollectionAddContext(PWINE_COLLECTIONSTORE store,
* Assumes the collection store's lock is held.
*/
static
void
*
CRYPT_CollectionAdvanceEnum
(
PWINE_COLLECTIONSTORE
store
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
PCONTEXT_FUNCS
contextFuncs
,
PWINE_STORE_LIST_ENTRY
storeEntry
,
const
CONTEXT_FUNCS
*
contextFuncs
,
PCWINE_CONTEXT_INTERFACE
contextInterface
,
void
*
pPrev
,
size_t
contextSize
)
{
void
*
ret
,
*
child
;
...
...
@@ -165,7 +165,7 @@ static void *CRYPT_CollectionAdvanceEnum(PWINE_COLLECTIONSTORE store,
/* We always want the same function pointers (from certs, crls)
* in the next store, so use the same offset into the next store.
*/
size_t
offset
=
(
LPBYTE
)
contextFuncs
-
(
LPBYTE
)
storeEntry
->
store
;
size_t
offset
=
(
const
BYTE
*
)
contextFuncs
-
(
LPBYTE
)
storeEntry
->
store
;
PWINE_STORE_LIST_ENTRY
storeNextEntry
=
LIST_ENTRY
(
storeNext
,
WINE_STORE_LIST_ENTRY
,
entry
);
PCONTEXT_FUNCS
storeNextContexts
=
...
...
dlls/crypt32/crypt32_private.h
View file @
28e1ec44
...
...
@@ -106,7 +106,7 @@ BOOL CRYPT_AsnDecodeCMSSignedInfo(const BYTE *pbEncoded, DWORD cbEncoded,
* If CRYPT_ENCODE_ALLOC_FLAG is set in dwFlags, *pbEncoded will be set to a
* pointer to the newly allocated memory.
*/
BOOL
CRYPT_EncodeEnsureSpace
(
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BOOL
CRYPT_EncodeEnsureSpace
(
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
,
DWORD
bytesNeeded
);
BOOL
CRYPT_AsnDecodePKCSDigestedData
(
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
...
...
dlls/crypt32/decode.c
View file @
28e1ec44
...
...
@@ -205,7 +205,7 @@ static BOOL CRYPT_GetLen(const BYTE *pbEncoded, DWORD cbEncoded, DWORD *len)
* pointer to the newly allocated memory.
*/
static
BOOL
CRYPT_DecodeEnsureSpace
(
DWORD
dwFlags
,
PCRYPT_DECODE_PARA
pDecodePara
,
void
*
pvStructInfo
,
DWORD
*
pcbStructInfo
,
const
CRYPT_DECODE_PARA
*
pDecodePara
,
void
*
pvStructInfo
,
DWORD
*
pcbStructInfo
,
DWORD
bytesNeeded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -232,7 +232,7 @@ static BOOL CRYPT_DecodeEnsureSpace(DWORD dwFlags,
return
ret
;
}
static
void
CRYPT_FreeSpace
(
PCRYPT_DECODE_PARA
pDecodePara
,
LPVOID
pv
)
static
void
CRYPT_FreeSpace
(
const
CRYPT_DECODE_PARA
*
pDecodePara
,
LPVOID
pv
)
{
if
(
pDecodePara
&&
pDecodePara
->
pfnFree
)
pDecodePara
->
pfnFree
(
pv
);
...
...
@@ -611,7 +611,7 @@ struct AsnArrayItemSize
*/
static
BOOL
CRYPT_AsnDecodeArray
(
const
struct
AsnArrayDescriptor
*
arrayDesc
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
DWORD
dwFlags
,
PCRYPT_DECODE_PARA
pDecodePara
,
void
*
pvStructInfo
,
DWORD
*
pcbStructInfo
,
const
CRYPT_DECODE_PARA
*
pDecodePara
,
void
*
pvStructInfo
,
DWORD
*
pcbStructInfo
,
DWORD
*
pcbDecoded
)
{
BOOL
ret
=
TRUE
;
...
...
dlls/crypt32/encode.c
View file @
28e1ec44
...
...
@@ -100,7 +100,7 @@ static BOOL WINAPI CRYPT_AsnEncodePKCSAttributes(DWORD dwCertEncodingType,
LPCSTR
lpszStructType
,
const
void
*
pvStructInfo
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
);
BOOL
CRYPT_EncodeEnsureSpace
(
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BOOL
CRYPT_EncodeEnsureSpace
(
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
,
DWORD
bytesNeeded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -910,7 +910,7 @@ BOOL WINAPI CRYPT_AsnEncodeOid(DWORD dwCertEncodingType,
}
static
BOOL
CRYPT_AsnEncodeStringCoerce
(
const
CERT_NAME_VALUE
*
value
,
BYTE
tag
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
BYTE
tag
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -939,7 +939,7 @@ static BOOL CRYPT_AsnEncodeStringCoerce(const CERT_NAME_VALUE *value,
}
static
BOOL
CRYPT_AsnEncodeBMPString
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -979,7 +979,7 @@ static BOOL CRYPT_AsnEncodeBMPString(const CERT_NAME_VALUE *value,
}
static
BOOL
CRYPT_AsnEncodeUTF8String
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -1940,7 +1940,7 @@ static BOOL WINAPI CRYPT_AsnEncodePKCSContentInfo(DWORD dwCertEncodingType,
}
static
BOOL
CRYPT_AsnEncodeUnicodeStringCoerce
(
const
CERT_NAME_VALUE
*
value
,
BYTE
tag
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
BYTE
tag
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -1972,7 +1972,7 @@ static BOOL CRYPT_AsnEncodeUnicodeStringCoerce(const CERT_NAME_VALUE *value,
return
ret
;
}
static
void
CRYPT_FreeSpace
(
PCRYPT_ENCODE_PARA
pEncodePara
,
LPVOID
pv
)
static
void
CRYPT_FreeSpace
(
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
LPVOID
pv
)
{
if
(
pEncodePara
&&
pEncodePara
->
pfnFree
)
pEncodePara
->
pfnFree
(
pv
);
...
...
@@ -1981,7 +1981,7 @@ static void CRYPT_FreeSpace(PCRYPT_ENCODE_PARA pEncodePara, LPVOID pv)
}
static
BOOL
CRYPT_AsnEncodeNumericString
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -2035,7 +2035,7 @@ static inline int isprintableW(WCHAR wc)
}
static
BOOL
CRYPT_AsnEncodePrintableString
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -2082,7 +2082,7 @@ static BOOL CRYPT_AsnEncodePrintableString(const CERT_NAME_VALUE *value,
}
static
BOOL
CRYPT_AsnEncodeIA5String
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
BOOL
ret
=
TRUE
;
...
...
@@ -2129,7 +2129,7 @@ static BOOL CRYPT_AsnEncodeIA5String(const CERT_NAME_VALUE *value,
}
static
BOOL
CRYPT_AsnEncodeUniversalString
(
const
CERT_NAME_VALUE
*
value
,
DWORD
dwFlags
,
PCRYPT_ENCODE_PARA
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
dwFlags
,
const
CRYPT_ENCODE_PARA
*
pEncodePara
,
BYTE
*
pbEncoded
,
DWORD
*
pcbEncoded
)
{
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