CSSM_CL_CertGetKeyInfo
CSSM_KEY_PTR CSSMAPI CSSM_CL_CertGetKeyInfo
(CSSM_CL_HANDLE CLHandle,
const CSSM_DATA_PTR Cert)
This function returns the public key and integral information about the key from the specified certificate. The key structure returned is a compound object. It can be used in any function requiring a key, such as creating a cryptographic context.
- 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 in OID.
- CSSM_CL_MEMORY_ERROR
Not enough memory.
- CSSM_CL_UNSUPPORTED_OPERATION
Add-in does not support this function.
- CSSM_CL_CERT_GET_KEY_INFO_FAIL
Unable to get key information.
CSSM_CL_CertGetFirstFieldValue
Contents | Next section | Index |