-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unknown error code on ARMv7 #4
Labels
bug
Something isn't working
Comments
After merging PR #3 the issue is solved. Environment:
Clone and compile:
Test:
Note: Also tested by building on an x86_64 host with the command:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running on a Raspberry Pi 4b target (an ARMv7 architecture platform)
keyls
fails with an unknown error code:I traced this failure to the call to the
Ctx::new()
fn in thepkcs11
crate, specifically to the invocation of theC_GetFunctionList()
PKCS#11 function). UsingLD_DEBUG
we see that immediately after looking up theC_GetFunctionList
symbol the library is thenfini
shed with.Injected
eprintln!()
calls in a local copy of the PKCS#11 v0.5.0 crate around the call showed the print before the call but not the print after the call:Note that
pkcs11-tool
didn't have any such problems using the same PKCS#11 library file on the same Raspberry Pi 4b host.Also note that a quick test using the
cryptoki
crate instead of thepkcs11
crate showed that thepkcs11
crate fails but thecryptoki
crate succeeds.The text was updated successfully, but these errors were encountered: