crypt32: Add a new element to SIP_ADD_NEWPROVIDER.

This commit is contained in:
Huw Davies 2014-05-27 13:25:01 +01:00 committed by Alexandre Julliard
parent 47de869fda
commit f4f01301f0
4 changed files with 6 additions and 1 deletions

View File

@ -210,7 +210,7 @@ BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
TRACE("%p\n", psNewProv);
if (!psNewProv ||
psNewProv->cbStruct != sizeof(SIP_ADD_NEWPROVIDER) ||
psNewProv->cbStruct < FIELD_OFFSET(SIP_ADD_NEWPROVIDER, pwszGetCapFuncName) ||
!psNewProv->pwszGetFuncName ||
!psNewProv->pwszPutFuncName ||
!psNewProv->pwszCreateFuncName ||

View File

@ -81,6 +81,7 @@ HRESULT WINAPI DllRegisterServer(void)
prov.pwszVerifyFuncName = verifyIndirectData;
prov.pwszRemoveFuncName = removeSignedDataMsg;
prov.pwszIsFunctionNameFmt2 = isMyTypeOfFile;
prov.pwszGetCapFuncName = NULL;
return CryptSIPAddProvider(&prov) ? S_OK : S_FALSE;
}

View File

@ -911,6 +911,7 @@ static BOOL WINTRUST_SIPPAddProvider(GUID* Subject, WCHAR* MagicNumber)
NewProv.pwszVerifyFuncName = CryptSIPVerifyIndirectData;
NewProv.pwszRemoveFuncName = CryptSIPRemoveSignedDataMsg;
NewProv.pwszIsFunctionNameFmt2 = NULL;
NewProv.pwszGetCapFuncName = NULL;
Ret = CryptSIPAddProvider(&NewProv);

View File

@ -156,6 +156,9 @@ typedef struct SIP_ADD_NEWPROVIDER_
WCHAR *pwszRemoveFuncName;
WCHAR *pwszIsFunctionNameFmt2;
/* NTDDI_VERSION >= NTDDI_WIN8 */
WCHAR *pwszGetCapFuncName;
} SIP_ADD_NEWPROVIDER, *PSIP_ADD_NEWPROVIDER;
#include <poppack.h>