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: How to build a new tokend for a smartcard.



--On May 1, 2006 11:25:16 AM -0500 Paul Nelson <email@hidden> wrote:

What is the recommended way to do this?  Is there a straightforward Xcode
project?

The Tokend interface is in that delicate stage of having just been born (for Tiger). Following a long and much-lamented procedure, Apple has not declared the interface stable (i.e. it's not a supported API), and if you're one of the Desperate Few, you're supposed to pitch in using the not-yet-API so that your blood and screams fertilize the stable API for Next Time. (Talk to developer relations and they'll support you, sort of. As well as take your name for notifications when the interface changes. Which it will, I Guarantee It.)


Tokend has a low-level C interface (defined in SecurityTokend.framework) which, in principle, you can implement entirely on your own. Just fill in the callback vector with your functions. Easy. (Yeah, right.)

Practically, the existing Tokends are written in C++ using an implementation harness that turns out to be >90% the same for all the tokens we've encountered so far. So the *easier* way to write one is to pick an existing Tokend and modify the card-specific stuff to fit your card. The last time we did that took one (long) day, but that was done by the guy who wrote most of the existing Tokends. :-)

So I suppose the instructions, such as they are, are
(1) Find someone (or several ones) familiar with CSSM and C++
(2) Decide which of the supported token types are most similar to yours
(3) Take the corresponding Tokend (from the Open Source repository) [*]
(4) Talk to developer relations to get some hand-holding
(5) Hack away.

It seems that building from the latest sources is not possible on an Intel
Mac.  Is this really true?

The "latest sources" that you see in the Open Source repository may not be "latest" anymore. Talk to developer support.


Cheers
 -- perry

[*] Some of the Tokends included in Mac OS X may not have their sources included in Open Source, due to various scruples of the card owners. Sorry; not Apple's call.
---------------------------------------------------------------------------
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: 
 >How to build a new tokend for a smartcard. (From: Paul Nelson <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.