Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain callbacks




On Jan 12, 2006, at 9:11 AM, Will Hickie wrote:

I've got an application that adds callbacks to the keychain. So far all works as intended, in that my callback is being called.

One crucial event that seems to be missing is an event to let us know that a user cancled or could not complete a keychain access.

i.e.

1. user attempts to unlock a keychain, but enters invalid passwords.
2. user attempts to unlock a keychain but hits cancel.


Please tell me there is a hidden API or something that will let me get notification of this!!

There isn't. Instead, a "user canceled" error is returned directly from the function being called. For Sec*-level functions, userCanceledErr (-128) is returned. If you're calling CSSM-level functions, one of the CSSMERR_*_USER_CANCELED error codes is returned (see cssmapple.h).


Can you help me understand why it's crucial to receive a notification when a user hits Cancel?

-k


Will _______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >Keychain callbacks (From: Will Hickie <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.