Skip to content

Commit

Permalink
tee_client_api: define additional return codes
Browse files Browse the repository at this point in the history
Apply the precision from [1] which define 9 additional return
codes. The documentation is a verbatim copy of the description form [1].

[1] TEE Client API Specification v1.0 Errata and Precisions
    Version 2.0, §P.4 Define Additional Return Codes

Signed-off-by: Vincent Mailhol <[email protected]>
  • Loading branch information
vincent-mailhol committed Nov 1, 2023
1 parent 5f97856 commit 6afc2ac
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions libteec/include/tee_client_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,17 @@ extern "C" {
* generated output.
* TEEC_ERROR_TARGET_DEAD Trusted Application has panicked
* during the operation.
* TEE_ERROR_EXTERNAL_CANCEL Defined by the Trusted User Interface
* specification: An external event has caused a
* User Interface operation to be aborted.
* TEE_ERROR_OVERFLOW Internal TEE error – documented for completeness
* TEE_ERROR_TARGET_DEAD The Trusted Application has terminated.
* TEEC_ERROR_TARGET_DEAD The Trusted Application has terminated.
* TEE_ERROR_STORAGE_NO_SPACE Internal TEE error – documented for completeness
* TEE_ERROR_MAC_INVALID Internal TEE error – documented for completeness
* TEE_ERROR_SIGNATURE_INVALID Internal TEE error – documented for completeness
* TEE_ERROR_TIME_NOT_SET Internal TEE error – documented for completeness
* TEE_ERROR_TIME_NEEDS_RESET Internal TEE error – documented for completeness
*/

/**
Expand Down Expand Up @@ -186,6 +197,15 @@ extern "C" {
#define TEEC_ERROR_EXTERNAL_CANCEL 0xFFFF0011
#define TEEC_ERROR_TARGET_DEAD 0xFFFF3024
#define TEEC_ERROR_STORAGE_NO_SPACE 0xFFFF3041
#define TEE_ERROR_EXTERNAL_CANCEL 0xFFFF0011
#define TEE_ERROR_OVERFLOW 0xFFFF300F
#define TEE_ERROR_TARGET_DEAD 0xFFFF3024
#define TEEC_ERROR_TARGET_DEAD 0xFFFF3024
#define TEE_ERROR_STORAGE_NO_SPACE 0xFFFF3041
#define TEE_ERROR_MAC_INVALID 0xFFFF3071
#define TEE_ERROR_SIGNATURE_INVALID 0xFFFF3072
#define TEE_ERROR_TIME_NOT_SET 0xFFFF5000
#define TEE_ERROR_TIME_NEEDS_RESET 0xFFFF5001

/**
* Function error origins, of type TEEC_ErrorOrigin. These indicate where in
Expand Down

0 comments on commit 6afc2ac

Please sign in to comment.