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

Assertion error related to CKA_CS_UNKNOWN #42

Open
emillon opened this issue Apr 27, 2017 · 1 comment
Open

Assertion error related to CKA_CS_UNKNOWN #42

emillon opened this issue Apr 27, 2017 · 1 comment

Comments

@emillon
Copy link
Contributor

emillon commented Apr 27, 2017

The following program fails with an assertion error:

let a = Pkcs11.CK_ATTRIBUTE_TYPE.CKA_CS_UNKNOWN Unsigned.ULong.zero in
let b = Pkcs11.CK_ATTRIBUTE_TYPE.CKA_CLASS in
Pkcs11.CK_ATTRIBUTE_TYPE.compare' a b
Fatal error: exception "Assert_failure src/pkcs11_CK_ATTRIBUTE_TYPE.ml:509:27"

This is understandable of course, but this should not be an assertion error. Either the exception should be different, or the subcase with CKA_CS_UNKNOWN should try harder with the comparison.

@emillon
Copy link
Contributor Author

emillon commented Apr 27, 2017

N.B. there might be similar code paths with:

  • CKO_CS_UNKNOWN
  • CKM_CS_UNKNOWN
  • CKR_CS_UNKNOWN
  • CKU_CS_UNKNOWN

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

1 participant