Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Keychain unlock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keychain unlock



Hello,

My application creates a keychain and stores some keys and a Generic Password information related to my application.

We also hook an unlock callback via SecKeychaiinAddCallback ( myProc, kSecKeychainUnlockEventMask, nil);

When I manually unlock that keychain from the Keychain Access application my unlock callback routine is called. I then retrieve my special application login information by calling SecKeychainFindGenericPassword. Everything works fine in this scenario.

From Apple Mail if I create a signed message with the identity key in my keychain I get a password dialog to unlock that keychain. I then drop in my unlock callback routine and I get prompted again for a password to that same keychain when I call SecKeychainFindGenericPassword.

I can also reproduce the above problem if I try to access an item in the Keychain with the keychain locked from Keychain Access.

Any idea why I get prompted twice to unlock the same keychain from 2 different applications? Is unlock keychain means unlock the entire keychain or is it unlock only used items in that keychain? Is there a way to force unlock on the entire keychain so I only get prompted ones?

Thanks,

Haider
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.