Contents

SecKeychainGetVersion(_:)

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

Declaration

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

A result code. See Security Framework Result Codes.

Discussion

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