Trouble Shooting HP CDSA

CDSA API Errors

CDSA API Errors

When CDSA functions do not complete their designated operations successfully, typically, 0, NULL, CSSM_FAIL, or CSSM_FALSE values may be returned to calling programs. In order to gain more information regarding the failure, the CDSA function CSSM_GetError() may be called to retrieve the error code of the last CDSA error detected by the system. The error codes are defined in the CDSA include file cssmerr.h (located in /usr/include/cdsa). A brief error description and corresponding error code are reproduced below for convenience.

CSP Error Description

CSP Error Code

CSSM_CSP_UNKNOWN_ERROR1001

CSSM_CSP_REGISTER_ERROR1002

CSSM_CSP_VERSION_ERROR1003

CSSM_CSP_CONVERSION_ERROR1004

CSSM_CSP_NO_TOKENINFO1005

CSSM_CSP_INTERNAL_ERROR1006

CSSM_CSP_SERIAL_REQUIRED1007

CSSM_CSP_NOT_IMPLEMENTED1008

CSSM_CSP_GET_APIMEMFUNC_ERROR1009

CSSM_CSP_MEMORY_ERROR1020

CSSM_CSP_NOT_ENOUGH_BUFFER1021

CSSM_CSP_ERR_OUTBUF_LENGTH1022

CSSM_CSP_NO_OUTBUF1023

CSSM_CSP_ERR_INBUF_LENGTH1024

CSSM_CSP_ERR_KEYBUF_LENGTH1025

CSSM_CSP_NO_SLOT1026

CSSM_CSP_INVALID_CSP_HANDLE1030

CSSM_CSP_INVALID_POINTER1031

CSSM_CSP_INVALID_CONTEXT1032

CSSM_CSP_INVALID_CONTEXT_HANDLE1033

CSSM_CSP_INVALID_CONTEXT_POINTER1034

108

Appendix E

Page 108
Image 108
HP UX Security Products and Features Software manual Cdsa API Errors, 108