C_ErrorString

Synopsis

CK_RV C_ErrorString(CK_RV ret, char * errstr, unsigned int len);

Description

Convert a Cryptoki error code into a printable string. Note that this function is not a part of the PKCS#11 definition.

The sample programs use this extensively to map Cryptoki error numbers to meaningful text to display to the user.