KRSP_RecoveryRequest
CSSM_RETURN CSSMKRSPI KRSP_RecoveryRequest
(CSSM_KRSP_HANDLE KRSPHandle,
CSSM_CC_HANDLE KRRequestContextHandle,
const CSSM_CONTEXT_PTR KRRequestContext,
CSSM_DATA_PTR KRInData,
CSSM_CRYPTO_DATA_PTR UserCallback,
uint32 *EstimatedTime,
CSSM_HANDLE_PTR ReferenceHandle)
This function performs a key recovery request operation. The KRInData contains known input parameters for the recovery request operation. A UserCallback function may be supplied to allow the recovery operation to interact with the user interface, if necessary. If the recovery request operation is successful, a ReferenceHandle and an EstimatedTime parameter is returned; the ReferenceHandle is to be used to invoke the KRSP_RecoveryRetrieve function, after the EstimatedTime in seconds.
- KRSPHandle (input)
The handle that describes the add-in key recovery service provider module used to perform up calls to CSSM for the memory functions managed by CSSM.
- KRRequestContextHandle (input)
The handle that describes the context of this key recovery operation used to link to the KRSP-managed information.
- KRRequestContext (input)
Pointer to CSSM_CONTEXT structure that describes the attributes with this key recovery context.
- KRInData (input)
Input data for key recovery requests. For encapsulation schemes, the key recovery fields are included in this parameter.
- UserCallback (input)
A callback function that may be used to collect further information from the user interface.
- EstimatedTime (output)
The estimated time after which the CSSM_KR_RecoveryRetrieve call should be invoked to obtain recovery results.
- ReferenceHandle (output)
Handle returned when recovery request is successful. This handle may be used to invoke the CSSM_KR_RecoveryRetrieve function.
A CSSM return value. This function returns CSSM_OK if successful and returns an error code if an error has occurred.
- CSSM_INVALID_KR_HANDLE
Invalid handle.
- CSSM_KR_INVALID_HANDLE
Invalid recovery context handle.
- CSSM_KR_INVALID_RECOVERY_CONTEXT
Invalid context value.
- CSSM_KR_INVALID_POINTER
Invalid pointer.
- CSSM_MEMORY_ERROR
Memory error.
Contents | Next section | Index |