Skip to content

Commit

Permalink
ta: pkcs11: Sort PKCS11_CKR_ helper lines
Browse files Browse the repository at this point in the history
Sort PKCS11_CKR_ helper lines to match their order in pkcs11_ta.h.

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 5dfe80d commit 73124d5
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions ta/pkcs11/src/pkcs11_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,66 +236,66 @@ static const struct any_id __maybe_unused string_session_state[] = {

static const struct any_id __maybe_unused string_rc[] = {
PKCS11_ID(PKCS11_CKR_OK),
PKCS11_ID(PKCS11_CKR_SLOT_ID_INVALID),
PKCS11_ID(PKCS11_CKR_GENERAL_ERROR),
PKCS11_ID(PKCS11_CKR_DEVICE_MEMORY),
PKCS11_ID(PKCS11_CKR_ARGUMENTS_BAD),
PKCS11_ID(PKCS11_CKR_BUFFER_TOO_SMALL),
PKCS11_ID(PKCS11_CKR_FUNCTION_FAILED),
PKCS11_ID(PKCS11_CKR_SIGNATURE_INVALID),
PKCS11_ID(PKCS11_CKR_ARGUMENTS_BAD),
PKCS11_ID(PKCS11_CKR_ATTRIBUTE_READ_ONLY),
PKCS11_ID(PKCS11_CKR_ATTRIBUTE_SENSITIVE),
PKCS11_ID(PKCS11_CKR_ATTRIBUTE_TYPE_INVALID),
PKCS11_ID(PKCS11_CKR_ATTRIBUTE_VALUE_INVALID),
PKCS11_ID(PKCS11_CKR_OBJECT_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_ACTION_PROHIBITED),
PKCS11_ID(PKCS11_CKR_DATA_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_DEVICE_MEMORY),
PKCS11_ID(PKCS11_CKR_ENCRYPTED_DATA_INVALID),
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_INDIGESTIBLE),
PKCS11_ID(PKCS11_CKR_KEY_FUNCTION_NOT_PERMITTED),
PKCS11_ID(PKCS11_CKR_MECHANISM_INVALID),
PKCS11_ID(PKCS11_CKR_SESSION_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_SLOT_ID_INVALID),
PKCS11_ID(PKCS11_CKR_MECHANISM_PARAM_INVALID),
PKCS11_ID(PKCS11_CKR_TEMPLATE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_TEMPLATE_INCOMPLETE),
PKCS11_ID(PKCS11_CKR_OBJECT_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_OPERATION_ACTIVE),
PKCS11_ID(PKCS11_CKR_OPERATION_NOT_INITIALIZED),
PKCS11_ID(PKCS11_CKR_PIN_INCORRECT),
PKCS11_ID(PKCS11_CKR_PIN_LOCKED),
PKCS11_ID(PKCS11_CKR_PIN_EXPIRED),
PKCS11_ID(PKCS11_CKR_PIN_INVALID),
PKCS11_ID(PKCS11_CKR_PIN_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_SESSION_EXISTS),
PKCS11_ID(PKCS11_CKR_PIN_EXPIRED),
PKCS11_ID(PKCS11_CKR_PIN_LOCKED),
PKCS11_ID(PKCS11_CKR_SESSION_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_SESSION_PARALLEL_NOT_SUPPORTED),
PKCS11_ID(PKCS11_CKR_SESSION_READ_ONLY),
PKCS11_ID(PKCS11_CKR_SESSION_EXISTS),
PKCS11_ID(PKCS11_CKR_SESSION_READ_ONLY_EXISTS),
PKCS11_ID(PKCS11_CKR_SESSION_READ_WRITE_SO_EXISTS),
PKCS11_ID(PKCS11_CKR_OPERATION_ACTIVE),
PKCS11_ID(PKCS11_CKR_KEY_FUNCTION_NOT_PERMITTED),
PKCS11_ID(PKCS11_CKR_OPERATION_NOT_INITIALIZED),
PKCS11_ID(PKCS11_CKR_TOKEN_WRITE_PROTECTED),
PKCS11_ID(PKCS11_CKR_SIGNATURE_INVALID),
PKCS11_ID(PKCS11_CKR_SIGNATURE_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_TEMPLATE_INCOMPLETE),
PKCS11_ID(PKCS11_CKR_TEMPLATE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_TOKEN_NOT_PRESENT),
PKCS11_ID(PKCS11_CKR_TOKEN_NOT_RECOGNIZED),
PKCS11_ID(PKCS11_CKR_ACTION_PROHIBITED),
PKCS11_ID(PKCS11_CKR_ATTRIBUTE_READ_ONLY),
PKCS11_ID(PKCS11_CKR_PIN_TOO_WEAK),
PKCS11_ID(PKCS11_CKR_CURVE_NOT_SUPPORTED),
PKCS11_ID(PKCS11_CKR_DOMAIN_PARAMS_INVALID),
PKCS11_ID(PKCS11_CKR_TOKEN_WRITE_PROTECTED),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_SIZE_RANGE),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_USER_ALREADY_LOGGED_IN),
PKCS11_ID(PKCS11_CKR_USER_ANOTHER_ALREADY_LOGGED_IN),
PKCS11_ID(PKCS11_CKR_USER_NOT_LOGGED_IN),
PKCS11_ID(PKCS11_CKR_USER_PIN_NOT_INITIALIZED),
PKCS11_ID(PKCS11_CKR_USER_TOO_MANY_TYPES),
PKCS11_ID(PKCS11_CKR_USER_TYPE_INVALID),
PKCS11_ID(PKCS11_CKR_DATA_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_ENCRYPTED_DATA_INVALID),
PKCS11_ID(PKCS11_CKR_ENCRYPTED_DATA_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_KEY_SIZE_RANGE),
PKCS11_ID(PKCS11_CKR_KEY_INDIGESTIBLE),
PKCS11_ID(PKCS11_CKR_SESSION_READ_ONLY_EXISTS),
PKCS11_ID(PKCS11_CKR_SIGNATURE_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_SIZE_RANGE),
PKCS11_ID(PKCS11_CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_USER_ANOTHER_ALREADY_LOGGED_IN),
PKCS11_ID(PKCS11_CKR_USER_TOO_MANY_TYPES),
PKCS11_ID(PKCS11_CKR_WRAPPED_KEY_INVALID),
PKCS11_ID(PKCS11_CKR_WRAPPED_KEY_LEN_RANGE),
PKCS11_ID(PKCS11_CKR_WRAPPING_KEY_HANDLE_INVALID),
PKCS11_ID(PKCS11_CKR_WRAPPING_KEY_SIZE_RANGE),
PKCS11_ID(PKCS11_CKR_WRAPPING_KEY_TYPE_INCONSISTENT),
PKCS11_ID(PKCS11_CKR_RANDOM_SEED_NOT_SUPPORTED),
PKCS11_ID(PKCS11_CKR_RANDOM_NO_RNG),
PKCS11_ID(PKCS11_CKR_DOMAIN_PARAMS_INVALID),
PKCS11_ID(PKCS11_CKR_CURVE_NOT_SUPPORTED),
PKCS11_ID(PKCS11_CKR_BUFFER_TOO_SMALL),
PKCS11_ID(PKCS11_CKR_PIN_TOO_WEAK),
PKCS11_ID(PKCS11_RV_NOT_FOUND),
PKCS11_ID(PKCS11_RV_NOT_IMPLEMENTED),
};
Expand Down

0 comments on commit 73124d5

Please sign in to comment.