Destroys an object.
CK_OBJECT_HANDLE hObject )
{
CK_OBJECT_HANDLE xPalHandle = CK_INVALID_HANDLE;
CK_BYTE_PTR pcLabel = NULL;
CK_ULONG xLabelLength = 0;
if( xPalHandle == CK_INVALID_HANDLE )
{
xResult = CKR_OBJECT_HANDLE_INVALID;
}
if( xResult == CKR_OK )
{
if( xResult == CKR_OK )
{
}
else
{
LogError( (
"Failed to destroy object. PKCS11_PAL_DestroyObject failed." ) );
}
}
else
{
LogError( (
"Failed to destroy object. The session was invalid." ) );
}
return xResult;
}
- Parameters
-
[in] | hSession | Handle of a valid PKCS #11 session. |
[in] | hObject | Handle of the object to be destroyed. |
- Warning
- In this implementation, if either the device public key or the device private key (labels pkcs11configLABEL_DEVICE_PUBLIC_KEY_FOR_TLS and pkcs11configLABEL_DEVICE_PRIVATE_KEY_FOR_TLS) are deleted, both keys will be destroyed.
- Returns
- CKR_OK if successful.