-
Notifications
You must be signed in to change notification settings - Fork 65
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
replace c_pcsclite with go-libpcsclite #82
Comments
This is really cool! Some thoughts: What's the OS level of support for re-implementing the pcscd communication? While this might work with PCSClite, the winscard APIs on MacOS and Windows are provided by the OS. I know MacOS you're expected to use libraries to make syscalls, for example. Can this be implemented as an internal package for this library? I don't necessarily want to depend on getting fixes into an upstream We'd probably want to make this opt-in if you provide a !cgo tag or something. |
I would be very interested in this, since this is my only dependency in C (and thus cgo), complicating the build process. https://github.com/FiloSottile/yubikey-agent is also getting quite popular, and would also benefit from this. :) |
Sorry for being so late, this library actually is stable, for some reason it work perfectly under Debian based OSes, I test it in under Ubuntu 20.04 (amd64) and Debian 9 and 10 (arm), but unfortunately under Centos OS it does not, I created a bug report but until now there is no response. |
Thanks for the reply ghaithsabba@ and no worries. We're all busy :) As I stated above I don't want to take on a dependency with 2 stars and last activity over a year ago. I'd rather just implement this from scratch internally. I'm happy to take on that work. Do you know what the pcsclite unix protocol looks like? (Please don't link to go-libpcsclite source) I can see some details here: https://github.com/LudovicRousseau/PCSC/blob/0680e8366e710f9310d3f108309fdfd24d18741a/src/winscard.c |
Unfortunately no I don't, I am actually planning on making a fork branch from go-libpcsclite and try to fix the bug and keep maintaining the library, so if you don't have enough time to develop it from scratch, I will try to speed up the development on the library. |
Okay for my own purpose, the protocol is defined here:
I'll take a crack at trying to write some code to integrate when I get the chance. |
I've started an implementation here that appears to work: #85 Will finish up when I get the chance. Likely won't be before this weekend. |
This a question not an issue, my question is I recently came across the library go-libpcsclite which is implemented completely in go, I tried to test it (not intensive) but it worked for me (signing and verifying).
So I ran a complete test using (go test -v ./... --wipe-yubikey) and it was 80% successful, if took the time to fix the other issues would you merge the change into the main repository.
The text was updated successfully, but these errors were encountered: