[Tokend-Dev] Tokend development
André Cruz
andre.cruz at co.sapo.pt
Wed May 27 05:01:54 PDT 2009
Hello.
It seems I have two options. Either I develop a custom Tokend for this
citizen card or an opensc driver and use the opensc.Tokend.
The driver seems the best option since it enables cross-platform
support and the current osx driver for this citizen card seems based
on opensc anyway. First I'll try to obtain the source code and find
out why it's not working correctly.
I tried compiling the latest opensc trunk on osx but I couldn't get
past the configure stage. If I try just running ./bootstrap I get an
error:
configure.ac:100: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
configure.ac:262: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:324: error: possibly undefined macro: AC_CHECK_LIB
autoreconf: /usr/bin/autoconf failed with exit status: 1
I need to run "autoreconf --verbose --install" without the "--force"
flag so that the scripts are built. It only works the 2nd time though.
Next, when I run configure it breaks near the end:
checking for iconv in -liconv... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
./configure: line 23782: syntax error near unexpected token `newline'
./configure: line 23782: `PKG_CHECK_MODULES('
Is this a known problem?
Best regards,
André Cruz
On May 26, 2009, at 19:40 , Henry B. Hotz wrote:
> Step one is to figure out how to build the sample Tokend. I haven't
> been able to do that for the current version.
>
> I suggest you try darwinbuild (c.f. Google) and try configuring for
> older OSX versions. The supporting frameworks don't have the latest
> versions open sourced.
>
> On May 22, 2009, at 11:36 AM, André Cruz wrote:
>
>> Hello.
>>
>> I'm interested in developing a Tokend driver for the portuguese
>> citizen card (http://www.cartaodecidadao.pt/) which is a smartcard.
>> The reader I'm using is supported on osx so I think I just need a
>> tokend:
>>
>> $ pcsctest
>>
>> MUSCLE PC/SC Lite Test Program
>>
>> Testing SCardEstablishContext : Command successful.
>> Testing SCardGetStatusChange
>> Please insert a working reader : Command successful.
>> Testing SCardListReaders : Command successful.
>> Reader 01: Gemplus GemPC Twin 00 00
>> Enter the reader number : 1
>> Waiting for card insertion
>> : Command successful.
>> Testing SCardConnect : Command successful.
>> Testing SCardStatus : Command successful.
>> Current Reader Name : Gemplus GemPC Twin 00 00
>> Current Reader State : 0x34
>> Current Reader Protocol : 0x0
>> Current Reader ATR Size : 10 (0xa)
>> Current Reader ATR Value : 3B 95 95 40 FF D0 00 54 01 31
>> Testing SCardDisconnect : Command successful.
>> Testing SCardReleaseContext : Command successful.
>> Testing SCardEstablishContext : Command successful.
>> Testing SCardGetStatusChange
>> Please insert a working reader : Command successful.
>> Testing SCardListReaders : Command successful.
>> Reader 01: Gemplus GemPC Twin 00 00
>> Enter the reader number :
>>
>>
>> What I would like to know is where to start... It seems the
>> documentation is not done yet. What are the best resources to use so
>> as to learn what to do?
>>
>> Thanks,
>> André Cruz
>>
>> _______________________________________________
>> Tokend-Dev mailing list
>> Tokend-Dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/tokend-dev
>
> ------------------------------------------------------
> The opinions expressed in this message are mine,
> not those of Caltech, JPL, NASA, or the US Government.
> Henry.B.Hotz at jpl.nasa.gov, or hbhotz at oxy.edu
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/tokend-dev/attachments/20090527/2e660219/attachment.html>
More information about the Tokend-Dev
mailing list