CL_CertGetKeyInfo
CSSM_KEY_PTR CSSMCLI CL_CertGetKeyInfo
(CSSM_CL_HANDLE CLHandle,
const CSSM_DATA_PTR Cert)
This function obtains information about the certificate's public key. Ideally, this information comprises the key fields the application needs to create a cryptographic context that uses this certificate's key.
- CLHandle (input)
The handle that describes the add-in certificate library module used to perform this function.
- Cert (input)
A pointer to the CSSM_DATA structure containing the certificate from which to extract the public key information.
A pointer to the CSSM_KEY structure containing the public key and possibly other key information. If the pointer is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
- CSSM_CL_INVALID_CL_HANDLE
Invalid Certificate Library Handle.
- CSSM_CL_INVALID_DATA_POINTER
Invalid pointer input.
- CSSM_CL_UNKNOWN_FORMAT
Unrecognized certificate format.
- CSSM_CL_UNKNOWN_TAG
Unknown field tag.
- CSSM_CL_MEMORY_ERROR
Not enough memory.
- CSSM_CL_CERT_GET_KEY_INFO_FAIL
Unable to get key information.
CL_CertGetFirstFieldValue
Contents | Next section | Index |