Skip to content

Commit

Permalink
tee_client_api: deprecate two TEE_ERROR_* macros not in the specifica…
Browse files Browse the repository at this point in the history
…tion

TEE_ERROR_EXTERNAL_CANCEL and TEE_ERROR_STORAGE_NO_SPACE are not part
of the specification [1]. TEEC_ERROR_EXTERNAL_CANCEL and
TEEC_ERROR_STORAGE_NO_SPACE should be preferred instead.

Add a message in the description to deprecate these two macros, but
keep them for backward compatibility.

[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]>
Acked-by: Etienne Carriere <[email protected]>
  • Loading branch information
vincent-mailhol committed Nov 3, 2023
1 parent a9cfb99 commit 8125349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libteec/include/tee_client_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,14 @@ extern "C" {
* TEE_ERROR_EXTERNAL_CANCEL Defined by the Trusted User Interface
* specification: An external event has caused a
* User Interface operation to be aborted.
* TEEC_ERROR_EXTERNAL_CANCEL Deprecated: not specified in client API, use
* TEE_ERROR_EXTERNAL_CANCEL intead.
* 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
* TEEC_ERROR_STORAGE_NO_SPACE Deprecated: not specified in client API, use
* TEE_ERROR_STORAGE_NO_SPACE instead.
* 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
Expand Down

0 comments on commit 8125349

Please sign in to comment.