This function opens the data store with the specified logical name under the specified access mode. If user authentication credentials are required, they must be provided. Also, additional open parameters may be required to open a given data store and are supplied in the OpenParameters.
CSSM_DB_HANDLE CSSMAPI CSSM_DL_DbOpen
(CSSM_DL_HANDLE DLHandle,
const char *DbName,
const CSSM_DB_ACCESS_TYPE_PTR AccessRequest,
const CSSM_USER_AUTHENTICATION_PTR UserAuthentication,
const void *OpenParameters)
The handle to the opened data store. If the handle is NULL, an error has occurred. Use CSSM_GetError to obtain the error code.
CSSM_DL_DbClose