Function

SecKeychainOpen(_:_:)

Opens a keychain.

Declaration

func SecKeychainOpen(_ pathName: UnsafePointer<Int8>, _ keychain: UnsafeMutablePointer<SecKeychain?>) -> OSStatus

Parameters

pathName

A constant character string representing the POSIX path to the keychain to open.

keychain

On return, a pointer to the keychain object. You must call the CFRelease function to release this object when you are finished using it.

Return Value

Discussion

Use this function to retrieve a pointer to a keychain object given the path of the keychain. You don't need to close the keychain, but do release the memory that the pointer occupies when you are finished with it.

See Also

Keychain Management

func SecKeychainGetVersion(UnsafeMutablePointer<UInt32>) -> OSStatus

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

typealias SecKeychainStatus

A value that defines the current status of a keychain.

SecKeychainStatus Values

Valid values for the keychain status type.