Skip to content
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

Add support for 32bit arches #18

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Commits on Jun 3, 2022

  1. Update cargo dependencies

    Grimler91 committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    b9cab50 View commit details
    Browse the repository at this point in the history
  2. lib.rs: unavailable_information should be c_ulong

    All entries in token_info array should be c_ulong, based on definition
    of CK_TOKEN_INFO in opencryptoki's pkcs11types.h.
    Grimler91 committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    b7347c2 View commit details
    Browse the repository at this point in the history
  3. pkcs11: add repr(u64) to enums with VendorDefined = 0x80000000

    Otherwise we get an overflow:
    
    error: literal out of range for `isize`
      --> src/pkcs11/object_class.rs:18:21
       |
    18 |     VendorDefined = 0x80000000,
       |                     ^^^^^^^^^^
       |
       = note: `#[deny(overflowing_literals)]` on by default
       = note: the literal `0x80000000` (decimal `2147483648`) does not fit into the type `isize` and will become `-2147483648isize`
    Grimler91 committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    ca2becf View commit details
    Browse the repository at this point in the history
  4. pkcs11: do not assume c_ulong is u64

    Instead use macros to check size of pointers, and thereby determine if
    we are on 32bit or 64bit platform.  On 32bit platforms c_ulong is u32,
    and otherwise u64.
    
    This works well for android, but I suppose there might be other exotic
    platforms where size of c_ulong and size of pointers do not
    necessarily follow each other.
    Grimler91 committed Jun 3, 2022
    Configuration menu
    Copy the full SHA
    8f837ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e35fda3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    831e300 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. Configuration menu
    Copy the full SHA
    35c367f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e220fe2 View commit details
    Browse the repository at this point in the history