DrtCreateDerivedKeySecurityProvider function (drt.h)
The DrtCreateDerivedKeySecurityProvider function creates the derived key security provider for a Distributed Routing Table.
HRESULT DrtCreateDerivedKeySecurityProvider( [in] PCCERT_CONTEXT pRootCert, [out] PCCERT_CONTEXT pLocalCert, DRT_SECURITY_PROVIDER **ppSecurityProvider );
Pointer to the certificate that is the "root" portion of the chain. This is used to ensure that keys derived from the same chain can be verified.
Receives a pointer to the created security provider.
This function returns S_OK on success. Other possible values include:
||pRootCert is NULL.|
||The system could not allocate memory for the security provider.|
||No certificate store attached or there is an error in the certificate chain.|
The security provider created by this function is specific to the DRT it was created for. It cannot be shared by multiple DRT instances.
|Minimum supported client||Windows 7 Professional [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|