-
Notifications
You must be signed in to change notification settings - Fork 96
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
Different output from "list-objects" depending on client platform #623
Comments
While in theory the protocol should work with both 32-bit and 64-bit systems, it might need to assume the same data model, in which GNU/Linux (LP64) and Windows (LLP64) have some differences. That's one of the reasons why we don't enable building p11-kit-client.dll on Windows by default. |
I've experienced the following command differs whether executed on a 32-bit client or 64-bit client against the same token (with forwarded socket). On a 32-bit the data object IDs are truncated and do not match the corresponding 64-bit value. For example one of these objects (converted to hex) is 4159ea64efdded8d while the pkcs11-tool client looks for efdded8d (4024298893). This makes all clients unusable on a 32-bit platform.
|
@abarisani Out of curiosity, is the issue you see a recent problem or have you seen it for a longer time? |
I am experiencing this as we speak while integrating p11-kit on a 32-bit installation using https://github.com/google/go-p11-kit as RPC server. I think the 32-bit client is requesting a |
I am running p11-kit as a server on Fedora 39. For the client side, I got one client on Linux and one on Windows. Both server and clients are running p11-kit v. 0.25.3.
Note that both clients are running in a bit of a non-standard environment, and that when running directly on my regular system I do not have this problem.
When running
p11-kit list-modules
on the client side, I can see my added module on both client platforms. However, when running p11-kitlist-objects <token>
, I get different results depending on the client platform.On the Linux client, things look to be in order:
On the Windows client, data for the token is missing:
To your knowledge, does p11-kit have any specific requirements for the combination of server and client platforms, e.g. not allowing mixing of 32- and 64-bit systems?
The text was updated successfully, but these errors were encountered: