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

Use rust's own bool type in abstraction crate #61

Merged
merged 2 commits into from
Nov 5, 2021

Commits on Nov 5, 2021

  1. Use rust's own bool type in abstraction crate

    The Bbool type was translating between the FFI's CK_BBOOL and
    rust's own bool, by providing a backing intermediate type. But
    the storage for a bool is guaranteed to be large enough for the
    job, and the point of conversion from byte back to bool is
    already structured to check for validity.
    
    Signed-off-by: Keith Koskie <[email protected]>
    vkkoskie committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    1b34cc0 View commit details
    Browse the repository at this point in the history
  2. Remove range error on u8->bool conversion

    Signed-off-by: Keith Koskie <[email protected]>
    vkkoskie committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    b61ce3e View commit details
    Browse the repository at this point in the history