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: Help plz: How can i get my dl plugin to work with keychain access?



On Sep 25, 2006, at 6:15 AM, Lutz Helwing wrote:

Hi,

i really got stuck here so some help would be very necessary: i wrote a (yet) dummy plugin which is properly loaded (it seems) when i start keychain access and writes some messages to console. What i now want to achieve is that, my plugin generates some values which are then displayed by keychain access when i select the plugin in the keychain list. Does anyone have an idea what i have to do? Is this possible without changing and rebuilding the security framework? Maybe it's only a matter of return values?
Any help would be really appreciated :)

The good news is that you should be able to do this. (We certainly have dynamically loaded DLs in the system, and they don't use any Magic Apple Pixie Sauce to work.)


The bad news is that the space of possible Things That Can Go Wrong is vast.

Keychain Access is probably not the best test bed for developing a DL (though you want it to be happy when you're done). Write yourself a simple test program that uses CSSM APIs to load and attach your plugin and give it a few simple things to do. Inspect the MDS for your (loaded) plugin to see if it looks okay. Make very sure that the meta- table information returned by your DL is correct - the higher layers (the Sec* APIs, which are called by KCA) use the meta-information to dynamically adapt to your DL's structure, so if you inadvertently lie about yourself, things emphatically Will Not Work.

Cheers
-- perry
---------------------------------------------------------------------------
Perry The Cynic email@hidden
To a blind optimist, an optimistic realist must seem like an Accursed Cynic.
---------------------------------------------------------------------------




_______________________________________________
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: 
 >Help plz: How can i get my dl plugin to work with keychain access? (From: Lutz Helwing <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.