-
Notifications
You must be signed in to change notification settings - Fork 713
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
FINeID: Initial FINeID v3 support #2567
Conversation
So the comments from #1608 still apply!? |
Yes. I can work on fixing the issues if someone tells me which ones are still relevant and should be done first. |
I think all of them are still relevant and the prioritization from #1608 (comment) still applies. |
I started by doing the simple stylistic fixes and the logout one. I'll keep all my changes in separate commits for now to easily tell which changes are mine and which ones come from the original. I'm not a subject matter expert (this is the first time I'm dealing with smart cards in any way) so some of the review comments don't make much sense. There are also some questions about them, for example one review says to use existing definitions ( |
- New driver fineid, signing tested, decipher untested - Add custom 0x30 asn1 sequence parsing as struct - Improve asn1 parse logging when choice type not resolved - ACL parsing not implemented (hardcoded as select/read only)
Removed the unnecessary function and rebased. One of the review comments say this:
I don't know what a proper test would entail but merely doing
|
The If you are able to list the keys with Right now, I ran the CI for you and the build fails. Can you check the errors? |
Removed default_key and fixed one signedness bug. Some of the test failures seem strange, like the fuzz test that does not seem to touch this file at all. |
Not sure what the outcomes should be but here's the console output:
|
This looks like the card is not recognized here. Your changes also break the oseid tests so it looks like there is still something wrong:
|
Upon further examination it turns out that my card is not v3 but in fact v5 so this driver would not work on it in any case. There's very little point in keeping this open any more so closing. |
how hard/different would it be to adjust the code for the v5 version? |
Honestly, I have no idea. I did try to look a bit but just the fact that the code builds with Autotools and just getting it to behave reasonably in a debugger under an IDE was so unpleasant that I gave up. Though if you are open to the idea of migrating to build with Meson, then I can do that with reasonable effort. It would make the dev experience a lot nicer, especially for newcomers. |
I am ok with adding a meson build system if you are interested in working on that. We already did that with other project (libcacard) so I should be able to help there too. But we would probably need to maintain both of them at a time. Or just open an issue so we can see if there would be large interest for this. |
Out of curiosity, why is that? Meson works on most of the esoteric platforms such as Solaris and HP-UX. I guess AIX is the only real holdout but there are even people working on that, FWICT. If this is the case then a workable approach is to specify that Meson is the default one and the people who can't switch to it get to maintain the Autotools build themselves. In this way the maintenance burden lies solely on the people who benefit from it as opposed to everybody else. Requiring contributors to update both build systems for their pull requests is probably even worse than the current setup. |
Probably because some people are afraid of changes :) Indeed it will not be forever. But there are really no significant changes going on in the build system of opensc itself for recent years and adding a file to three lists instead of two now (autotools and windows Makefile.mak -- not sure why we have it though and if it is needed, but AppVeyor builds need that now and) |
I haven't looked into it yet, have been busy with other stuff. I was hoping to get something done this week But if someone else is itching to start then by all means go for it. |
This is the closed mr #1608 rebased against current master. There are no code changes from that version.