mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
crypt32: Cast-qual warnings fix.
This commit is contained in:
parent
5ace8745ce
commit
58f9b6076f
@ -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);
|
||||
|
@ -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;
|
||||
(LPCSTR)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,
|
||||
(LPCSTR)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;
|
||||
(LPCSTR)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,
|
||||
(LPSTR)pbEncoded + 1 + lenBytes, dataLen,
|
||||
(LPCSTR)pbEncoded + 1 + lenBytes, dataLen,
|
||||
str, bytesNeeded - sizeof(CERT_NAME_VALUE)) * 2;
|
||||
break;
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user