Modifying the state of a versioned key
To modify the state of a versioned key
Call the I_C_SetKeyParameters
and pass I_T_KeyLifeCycleState
and the new parameter state (restricted, retired, or active).
Example
The following code modifies version 4 of a key:
If you don’t include the key version in the key name, the latest active version is modified.
The above code places the latest key version in a restricted state.