mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
-sync wintrust with wine 1.1.31
svn path=/trunk/; revision=43613
This commit is contained in:
parent
cd6b288377
commit
75d8628bc1
3 changed files with 26 additions and 6 deletions
|
@ -1465,6 +1465,10 @@ struct AsnDecodeSequenceItem
|
|||
DWORD size;
|
||||
};
|
||||
|
||||
/* Align up to a DWORD_PTR boundary
|
||||
*/
|
||||
#define ALIGN_DWORD_PTR(x) (((x) + sizeof(DWORD_PTR) - 1) & ~(sizeof(DWORD_PTR) - 1))
|
||||
|
||||
/* Decodes the items in a sequence, where the items are described in items,
|
||||
* the encoded data are in pbEncoded with length cbEncoded. Decodes into
|
||||
* pvStructInfo. nextData is a pointer to the memory location at which the
|
||||
|
@ -1517,9 +1521,7 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
|
|||
if (ret)
|
||||
{
|
||||
/* Account for alignment padding */
|
||||
if (items[i].size % sizeof(DWORD))
|
||||
items[i].size += sizeof(DWORD) -
|
||||
items[i].size % sizeof(DWORD);
|
||||
items[i].size = ALIGN_DWORD_PTR(items[i].size);
|
||||
TRACE("item %d size: %d\n", i, items[i].size);
|
||||
if (nextData && items[i].hasPointer &&
|
||||
items[i].size > items[i].minSize)
|
||||
|
|
|
@ -54,6 +54,24 @@ HRESULT WINAPI SoftpubInitialize(CRYPT_PROVIDER_DATA *data)
|
|||
return ret;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DriverInitializePolicy(CRYPT_PROVIDER_DATA *data)
|
||||
{
|
||||
FIXME("stub\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DriverCleanupPolicy(CRYPT_PROVIDER_DATA *data)
|
||||
{
|
||||
FIXME("stub\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI DriverFinalPolicy(CRYPT_PROVIDER_DATA *data)
|
||||
{
|
||||
FIXME("stub\n");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/* Assumes data->pWintrustData->u.pFile exists. Makes sure a file handle is
|
||||
* open for the file.
|
||||
*/
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
@ stdcall CryptSIPVerifyIndirectData(ptr ptr)
|
||||
@ stdcall -private DllRegisterServer()
|
||||
@ stdcall -private DllUnregisterServer()
|
||||
@ stub DriverCleanupPolicy
|
||||
@ stub DriverFinalPolicy
|
||||
@ stub DriverInitializePolicy
|
||||
@ stdcall DriverCleanupPolicy(ptr)
|
||||
@ stdcall DriverFinalPolicy(ptr)
|
||||
@ stdcall DriverInitializePolicy(ptr)
|
||||
@ stub FindCertsByIssuer
|
||||
@ stdcall GenericChainCertificateTrust(ptr)
|
||||
@ stdcall GenericChainFinalProv(ptr)
|
||||
|
|
Loading…
Reference in a new issue