Skip to content

How to test for supported functions? #78

@ximon18

Description

@ximon18

I recently created a PR for the Krill project to switch from the pkcs11 crate to the cryptoki crate and in doing so I discovered a difference: the pkcs11 crate requires lots of the pointers returned by C_GetFunctionList() to be non-null when the library is loaded, while cryptoki delays validation of function pointers until they are invoked.

If I want to verify as early as possible, and without actually invoking the functions, which functions a loaded library supports, how can I do that with cryptoki?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions