Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
The DrtCreateDerivedKeySecurityProvider function creates the derived key security provider for a Distributed Routing Table.
Syntax
HRESULT DrtCreateDerivedKeySecurityProvider(
[in] PCCERT_CONTEXT pRootCert,
[out] PCCERT_CONTEXT pLocalCert,
DRT_SECURITY_PROVIDER **ppSecurityProvider
);
Parameters
[in] pRootCert
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.
[out] pLocalCert
Pointer to the DRT_SECURITY_PROVIDER module to be included in the DRT_SETTINGS structure.
ppSecurityProvider
Receives a pointer to the created security provider.
Return value
This function returns S_OK on success. Other possible values include:
| Return code | Description |
|---|---|
|
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. |
Remarks
The security provider created by this function is specific to the DRT it was created for. It cannot be shared by multiple DRT instances.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 Professional [desktop apps only] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | drt.h |
| Library | Drtprov.lib |
| DLL | Drt.dll |