mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +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;
|
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,
|
/* Decodes the items in a sequence, where the items are described in items,
|
||||||
* the encoded data are in pbEncoded with length cbEncoded. Decodes into
|
* the encoded data are in pbEncoded with length cbEncoded. Decodes into
|
||||||
* pvStructInfo. nextData is a pointer to the memory location at which the
|
* pvStructInfo. nextData is a pointer to the memory location at which the
|
||||||
|
@ -1517,9 +1521,7 @@ static BOOL CRYPT_AsnDecodeSequenceItems(DWORD dwCertEncodingType,
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
/* Account for alignment padding */
|
/* Account for alignment padding */
|
||||||
if (items[i].size % sizeof(DWORD))
|
items[i].size = ALIGN_DWORD_PTR(items[i].size);
|
||||||
items[i].size += sizeof(DWORD) -
|
|
||||||
items[i].size % sizeof(DWORD);
|
|
||||||
TRACE("item %d size: %d\n", i, items[i].size);
|
TRACE("item %d size: %d\n", i, items[i].size);
|
||||||
if (nextData && items[i].hasPointer &&
|
if (nextData && items[i].hasPointer &&
|
||||||
items[i].size > items[i].minSize)
|
items[i].size > items[i].minSize)
|
||||||
|
|
|
@ -54,6 +54,24 @@ HRESULT WINAPI SoftpubInitialize(CRYPT_PROVIDER_DATA *data)
|
||||||
return ret;
|
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
|
/* Assumes data->pWintrustData->u.pFile exists. Makes sure a file handle is
|
||||||
* open for the file.
|
* open for the file.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
@ stdcall CryptSIPVerifyIndirectData(ptr ptr)
|
@ stdcall CryptSIPVerifyIndirectData(ptr ptr)
|
||||||
@ stdcall -private DllRegisterServer()
|
@ stdcall -private DllRegisterServer()
|
||||||
@ stdcall -private DllUnregisterServer()
|
@ stdcall -private DllUnregisterServer()
|
||||||
@ stub DriverCleanupPolicy
|
@ stdcall DriverCleanupPolicy(ptr)
|
||||||
@ stub DriverFinalPolicy
|
@ stdcall DriverFinalPolicy(ptr)
|
||||||
@ stub DriverInitializePolicy
|
@ stdcall DriverInitializePolicy(ptr)
|
||||||
@ stub FindCertsByIssuer
|
@ stub FindCertsByIssuer
|
||||||
@ stdcall GenericChainCertificateTrust(ptr)
|
@ stdcall GenericChainCertificateTrust(ptr)
|
||||||
@ stdcall GenericChainFinalProv(ptr)
|
@ stdcall GenericChainFinalProv(ptr)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue