Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libckteec: Fix return value for wrong size CK_ULONG
We should return CKR_ATTRIBUTE_VALUE_INVALID to indicate that value is incorrect. CKR_ATTRIBUTE_TYPE_INVALID is used to indicate that unknown attribute was provided. Specified in: PKCS #11 Cryptographic Token Interface Base Specification Version 2.40 Plus Errata 01 4.1.1 Creating objects "2. If the supplied template specifies an invalid value for a valid attribute, then the attempt should fail with the error code CKR_ATTRIBUTE_VALUE_INVALID." Signed-off-by: Vesa Jääskeläinen <[email protected]> Reviewed-by: Etienne Carriere <[email protected]>
- Loading branch information