-sync wintrust with wine 1.1.31

svn path=/trunk/; revision=43613
This commit is contained in:
Christoph von Wittich 2009-10-19 17:29:28 +00:00
parent cd6b288377
commit 75d8628bc1
3 changed files with 26 additions and 6 deletions

View file

@ -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)

View file

@ -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.
*/

View 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)