In OS X 10.7 'Lion' Apple stopped distributing tokend-s with the operating system and also deprecated CDSA (what tokend is built upon) as well as OpenSSL (what OpenSC uses for software crypto operations).
With 10.5.6, Apple switched from a homebuilt smart card reader driver to the more feature complete, de facto standard open source CCID driver maintained by Ludovic Rousseau, that mitigated at least some of the underlying bugs.
Build instructions for a tokend were not publicly available. OpenSC.tokend is the open source tokend implementation from OpenSC, with support for many different real world PKI smart cards found in the wild. OpenSC.tokend The open source OS X smart card driverĪ tokend makes the keys and certificates on your smart card appear in Keychain Access.app and available to applications like Safari or Chrome.