Antonio de Angelis | 12bc645 | 2018-08-01 10:24:50 +0100 | [diff] [blame] | 1 | /* |
Antonio de Angelis | ab000e8 | 2019-07-09 15:05:22 +0100 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
Antonio de Angelis | 12bc645 | 2018-08-01 10:24:50 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __PSA_AUDIT_DEFS_H__ |
| 9 | #define __PSA_AUDIT_DEFS_H__ |
| 10 | |
| 11 | #ifdef __cplusplus |
| 12 | extern "C" { |
| 13 | #endif |
| 14 | |
| 15 | #include <stdint.h> |
| 16 | #include "tfm_api.h" |
Antonio de Angelis | 12bc645 | 2018-08-01 10:24:50 +0100 | [diff] [blame] | 17 | |
| 18 | /*! |
| 19 | * \struct psa_audit_record |
| 20 | * |
| 21 | * \brief This structure contains the record that is added to the audit log |
| 22 | * by the requesting secure service |
| 23 | */ |
| 24 | struct psa_audit_record { |
| 25 | uint32_t size; /*!< Size in bytes of the id and payload fields */ |
| 26 | uint32_t id; /*!< ID of the record */ |
| 27 | uint8_t payload[]; /*!< Flexible array member for payload */ |
| 28 | }; |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
| 34 | #endif /* __PSA_AUDIT_DEFS_H__ */ |