Contents

SecKeychainCopyDefault(_:)

Retrieves a pointer to the default keychain.

Declaration

func SecKeychainCopyDefault(_ keychain: UnsafeMutablePointer<SecKeychain?>) -> OSStatus

Parameters

  • keychain:

    On return, a pointer to the default keychain object. In Objective-C, call the Cfrelease function to release this object when you are finished using it.

Return Value

A result code. See Security Framework Result Codes. The result code errSecNoDefaultKeychain indicates that there is no default keychain.