---
title: "SecKeychainGetVersion(_:)"
framework: security
role: symbol
role_heading: Function
path: "security/seckeychaingetversion(_:)"
---

# SecKeychainGetVersion(_:)

Determines the version of keychain services installed on the user’s system.

## Declaration

```swift
func SecKeychainGetVersion(_ returnVers: UnsafeMutablePointer<UInt32>) -> OSStatus
```

## Parameters

- `returnVers`: On return, a pointer to the version number of keychain services installed on the current system. See Keychain Settings Version for a list of values.

## Return Value

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

## Discussion

Discussion Your application can call the SecKeychainGetVersion(_:) function to find out which version of keychain services is installed on the user’s system.
