Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS X support #2

Open
alranel opened this issue Nov 23, 2017 · 4 comments
Open

MacOS X support #2

alranel opened this issue Nov 23, 2017 · 4 comments

Comments

@alranel
Copy link
Member

alranel commented Nov 23, 2017

This library should target MacOS X as well, in both low-level mode (i.e. sending APDU commands like it does now) and PKCS#11 mode.

Example code for PKCS#11 can be found here.

@alranel
Copy link
Member Author

alranel commented Mar 29, 2018

pcsc-lite can be installed on Mac OS X with the following command:

brew install pcsc-lite

automake and libtool are also needed:

brew install automake
brew install autoconf

Then, ./configure can be invoked as follows:

./configure PKG_CONFIG_PATH=/usr/local/opt/pcsc-lite/lib/pkgconfig CPPFLAGS="-I/usr/local/opt/pcsc-lite/include/PCSC" LDFLAGS="-L/usr/local/opt/pcsc-lite/lib"

@alranel
Copy link
Member Author

alranel commented Mar 29, 2018

As of now, this library compiles on OS X. I haven't tested whether it reads the NIS code correctly, though.

We should also check whether the pcsc-lite dependency should removed on OS X. The pcsc-lite website states the following:

Apple reimplemented PC/SC above their own CryptoTokenKit API. You should not need to build pcsc-lite on macOS.

Reminder: we should enable TravisCI for OS X too.

@alranel
Copy link
Member Author

alranel commented Apr 1, 2018

I was able to compile and run the test programs (I needed to manually run /usr/local/opt/pcsc-lite/sbin/pcscd but I get a Segmentation fault.

Also, my reader (Cherry TC 1200) doesn't seem to be recognized by MacOS X as pcsctest is stuck on "Please insert a working reader". This needs further investigation.

@dadalicious
Copy link

dadalicious commented May 9, 2021

Any updates here? @alranel were you able to solve the problem. For me pcsctest is also stuck at "Please insert a working reader".

P.S. Your pcstest link is dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants