From f3cc23fea5d6040b55658cb17d94dcb14d8181f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vesa=20J=C3=A4=C3=A4skel=C3=A4inen?= Date: Sun, 18 Jul 2021 14:59:05 +0300 Subject: [PATCH] ta: pkcs11: Add missing PKCS11_CKR_ helpers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Etienne Carriere Reviewed-by: Jerome Forissier --- ta/pkcs11/src/pkcs11_helpers.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ta/pkcs11/src/pkcs11_helpers.c b/ta/pkcs11/src/pkcs11_helpers.c index 22e79613eff..0c9cadff1c1 100644 --- a/ta/pkcs11/src/pkcs11_helpers.c +++ b/ta/pkcs11/src/pkcs11_helpers.c @@ -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),