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

bug: is_fn_supported() always returns true #155

Open
arjennienhuis opened this issue Jun 21, 2023 · 2 comments
Open

bug: is_fn_supported() always returns true #155

arjennienhuis opened this issue Jun 21, 2023 · 2 comments

Comments

@arjennienhuis
Copy link
Contributor

is_fn_supported() returns true for all libraries and functions I tested with. This makes sense when reading the spec:

Both say:

Every function in the Cryptoki API MUST have an entry point defined in the Cryptoki library’s CK_FUNCTION_LIST structure. If a particular function in the Cryptoki API is not supported by a library, then the function pointer for that function in the library’s CK_FUNCTION_LIST structure should point to a function stub which simply returns CKR_FUNCTION_NOT_SUPPORTED.

@ionut-arm
Copy link
Member

Somewhat late on this one, but given how many implementations treat compliance with the spec merely as a "nice to have", it's probably safer to keep the check..

@hug-dev
Copy link
Member

hug-dev commented Nov 14, 2024

Is it a bug if it makes sense with the spec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants