---
title: SecKeychainGetCSPHandle
framework: security
role: symbol
role_heading: Function
path: security/seckeychaingetcsphandle
---

# SecKeychainGetCSPHandle

Returns the CSSM CSP handle for the given keychain object.

## Declaration

```occ
OSStatus SecKeychainGetCSPHandle(SecKeychainRef keychain, CSSM_CSP_HANDLE *cspHandle);
```

## Parameters

- `keychain`: A keychain object.
- `cspHandle`: On return, a pointer to the CSSM CSP handle for the given keychain. The handle is valid until the keychain object is released.

## Return Value

Return Value A result code. See Security Framework Result Codes.

## Discussion

Discussion important: This function is deprecated. The common security services manager module is no longer used.
