crypt32: Add a new element to SIP_ADD_NEWPROVIDER.
This commit is contained in:
parent
47de869fda
commit
f4f01301f0
|
@ -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 ||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue