-
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
Status access violation #240
Comments
Hey! I tried your example but it fails with SoftHSM on both versions :( Couldn't find a commit which changed parts that would cause this to fail between 0.7.0 and 0.8.0. If you have time, you could Which line is failing in your code? |
Hello, @hug-dev! First of all, thanks for the reply and the amazing work on the crate. I'm prototyping here, so git bisect won't help. This is the line failing:
I also tried setting the pin and the error persisted. I made some tests and this is the last commit fully working:
So, the probable bug was introduced here: 3ec788c |
ah nice find! Interesting, I did not spot anything in the commit that could have caused this isse 🤔 |
Do you also know if your PKCS11 implementation ( |
I don't know. It is provided by Gemalto's Safenet Authentication Client. How can I check that? I forked this repository and made two tests. Upgraded the pkcs11-headers to the version 3.1 and downgraded the headers to the version 2.40. On both scenarios the error persisted. I don't know the ins and outs of the cryptoki or the concrete implementation of this crate, but I think it indicates that the incompatibility doesn't come from the "cryptoki-sys/vendor/pkcs11.h" file. |
At least here in Supported APIs they say PKCS11 v2.20 😢 But I don't see how you would get an error from it.. |
Are you getting an error with SoftHSM as well? What is the error? |
I get:
on line
|
When I updated from version 0.7.0 to 0.8.0 I ran into this error: (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)
Platform: Windows 11
The code above runs perfectly on version 0.7.0, but it doesn't on version 0.8.0.
The text was updated successfully, but these errors were encountered: