Commit aaf285c1 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

crypt32: Constify some variables.

parent c3f9a4c3
...@@ -145,7 +145,7 @@ static BOOL WINAPI CRYPT_EncodeContentLength(DWORD dwCertEncodingType, ...@@ -145,7 +145,7 @@ static BOOL WINAPI CRYPT_EncodeContentLength(DWORD dwCertEncodingType,
return ret; return ret;
} }
static BOOL CRYPT_EncodeDataContentInfoHeader(CDataEncodeMsg *msg, static BOOL CRYPT_EncodeDataContentInfoHeader(const CDataEncodeMsg *msg,
CRYPT_DATA_BLOB *header) CRYPT_DATA_BLOB *header)
{ {
BOOL ret; BOOL ret;
...@@ -623,7 +623,7 @@ typedef struct _CMSG_SIGNED_ENCODE_INFO_WITH_CMS ...@@ -623,7 +623,7 @@ typedef struct _CMSG_SIGNED_ENCODE_INFO_WITH_CMS
PCERT_BLOB rgAttrCertEncoded; PCERT_BLOB rgAttrCertEncoded;
} CMSG_SIGNED_ENCODE_INFO_WITH_CMS, *PCMSG_SIGNED_ENCODE_INFO_WITH_CMS; } CMSG_SIGNED_ENCODE_INFO_WITH_CMS, *PCMSG_SIGNED_ENCODE_INFO_WITH_CMS;
static BOOL CRYPT_IsValidSigner(CMSG_SIGNER_ENCODE_INFO_WITH_CMS *signer) static BOOL CRYPT_IsValidSigner(const CMSG_SIGNER_ENCODE_INFO_WITH_CMS *signer)
{ {
if (signer->cbSize != sizeof(CMSG_SIGNER_ENCODE_INFO) && if (signer->cbSize != sizeof(CMSG_SIGNER_ENCODE_INFO) &&
signer->cbSize != sizeof(CMSG_SIGNER_ENCODE_INFO_WITH_CMS)) signer->cbSize != sizeof(CMSG_SIGNER_ENCODE_INFO_WITH_CMS))
...@@ -720,7 +720,7 @@ static BOOL CRYPT_ConstructBlob(CRYPT_DATA_BLOB *out, const CRYPT_DATA_BLOB *in) ...@@ -720,7 +720,7 @@ static BOOL CRYPT_ConstructBlob(CRYPT_DATA_BLOB *out, const CRYPT_DATA_BLOB *in)
} }
static BOOL CRYPT_ConstructBlobArray(DWORD *outCBlobs, static BOOL CRYPT_ConstructBlobArray(DWORD *outCBlobs,
PCRYPT_DATA_BLOB *outPBlobs, DWORD cBlobs, const PCRYPT_DATA_BLOB pBlobs) PCRYPT_DATA_BLOB *outPBlobs, DWORD cBlobs, const CRYPT_DATA_BLOB *pBlobs)
{ {
BOOL ret = TRUE; BOOL ret = TRUE;
...@@ -1647,7 +1647,7 @@ static BOOL CDecodeMsg_DecodeHashedContent(CDecodeMsg *msg, ...@@ -1647,7 +1647,7 @@ static BOOL CDecodeMsg_DecodeHashedContent(CDecodeMsg *msg,
} }
static BOOL CDecodeMsg_DecodeSignedContent(CDecodeMsg *msg, static BOOL CDecodeMsg_DecodeSignedContent(CDecodeMsg *msg,
CRYPT_DER_BLOB *blob) const CRYPT_DER_BLOB *blob)
{ {
BOOL ret; BOOL ret;
CRYPT_SIGNED_INFO *signedInfo; CRYPT_SIGNED_INFO *signedInfo;
...@@ -1666,7 +1666,7 @@ static BOOL CDecodeMsg_DecodeSignedContent(CDecodeMsg *msg, ...@@ -1666,7 +1666,7 @@ static BOOL CDecodeMsg_DecodeSignedContent(CDecodeMsg *msg,
* It doesn't just use msg's type, to allow a recursive call from an implicitly * It doesn't just use msg's type, to allow a recursive call from an implicitly
* typed message once the outer content info has been decoded. * typed message once the outer content info has been decoded.
*/ */
static BOOL CDecodeMsg_DecodeContent(CDecodeMsg *msg, CRYPT_DER_BLOB *blob, static BOOL CDecodeMsg_DecodeContent(CDecodeMsg *msg, const CRYPT_DER_BLOB *blob,
DWORD type) DWORD type)
{ {
BOOL ret; BOOL ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment