Displaying 1 result from an estimated 1 matches for "ck_long".
Did you mean:
ck_ulong
[Bug 3561] New: Open SSH does not support 1-byte structure packing on non-windows systems for PKCS11
2023 Apr 10
6
[Bug 3561] New: Open SSH does not support 1-byte structure packing on non-windows systems for PKCS11
...ssignee: unassigned-bugs at mindrot.org
Reporter: doug.springer at idahoscientific.com
The PKCS11 specification is very clear on byte packing (1 byte), but
openssh does not even attempt to do so for anything besides Windows.
Instead, it relies on the compiler to set the size of CK_ULONG, CK_LONG
to unsigned long, which may be 32 or 64 depending on system and
compiler. While the PKCS11 API is painful in it's original form, it is
a very simple matter to add a definition for the appropriate packed
syntax, and define it for the compiler, or rely on a pragma.
This should at least be config...