Skip to content

Commit

Permalink
ta: pkcs11: Add missing PKCS11_CKR_ helpers
Browse files Browse the repository at this point in the history
Adds used but missing PKCS11_CKR_ helpers:
- PKCS11_CKR_KEY_TYPE_INCONSISTENT
- PKCS11_CKR_KEY_NOT_WRAPPABLE
- PKCS11_CKR_KEY_UNEXTRACTABLE

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
  • Loading branch information
vesajaaskelainen authored and jforissier committed Aug 12, 2021
1 parent 73124d5 commit f3cc23f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ta/pkcs11/src/pkcs11_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,11 @@ static const struct any_id __maybe_unused string_rc[] = {
PKCS11_ID(PKCS11_CKR_ENCRYPTED_DATA_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_KEY_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_KEY_SIZE_RANGE),
PKCS11_ID(PKCS11_CKR_KEY_TYPE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_KEY_INDIGESTIBLE),
PKCS11_ID(PKCS11_CKR_KEY_FUNCTION_NOT_PERMITTED),
PKCS11_ID(PKCS11_CKR_KEY_NOT_WRAPPABLE),
PKCS11_ID(PKCS11_CKR_KEY_UNEXTRACTABLE),
PKCS11_ID(PKCS11_CKR_MECHANISM_INVALID),
PKCS11_ID(PKCS11_CKR_MECHANISM_PARAM_INVALID),
PKCS11_ID(PKCS11_CKR_OBJECT_HANDLE_INVALID),
Expand Down

0 comments on commit f3cc23f

Please sign in to comment.