blob: 479d76d54da5b66905e6d0d7997aaac677c6606c [file] [log] [blame]
Antonio de Angelis12bc6452018-08-01 10:24:50 +01001/*
Antonio de Angelisab000e82019-07-09 15:05:22 +01002 * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
Antonio de Angelis12bc6452018-08-01 10:24:50 +01003 *
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
12extern "C" {
13#endif
14
15#include <stdint.h>
16#include "tfm_api.h"
Antonio de Angelis12bc6452018-08-01 10:24:50 +010017
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 */
24struct 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__ */