Skip to content

Assertion error related to CKA_CS_UNKNOWN #42

@emillon

Description

@emillon

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.

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