hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
ifx-record-mime.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2024-2026 Infineon Technologies AG
2// SPDX-License-Identifier: MIT
3
9#ifndef IFX_RECORD_MIME_H
10#define IFX_RECORD_MIME_H
11
12#include <stddef.h>
13#include <stdint.h>
14#include "infineon/ifx-error.h"
16#include "infineon/ifx-utils.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22/* Macro definitions */
23/* Definitions of function identifiers */
24
28#define IFX_RECORD_MIME_NEW UINT8_C(0x01)
29
33#define IFX_RECORD_MIME_SET UINT8_C(0x02)
34
38#define IFX_RECORD_MIME_GET UINT8_C(0x03)
39
52 const ifx_blob_t *type);
53
64 const ifx_blob_t *payload);
65
76 ifx_blob_t *payload);
77
78#ifdef __cplusplus
79}
80
81#endif /* __cplusplus */
82#endif /* IFX_RECORD_MIME_H */
Infineon specific error code creation and parsing.
uint32_t ifx_status_t
Custom return code type used by all Infineon host software libraries.
Definition ifx-error.h:91
Model interface to create record types and set/get record fields.
ifx_status_t ifx_record_mime_set_payload(ifx_record_handle_t *handle, const ifx_blob_t *payload)
Sets the payload in the MIME record for the given record handle.
ifx_status_t ifx_record_mime_new(ifx_record_handle_t *handle, const ifx_blob_t *type)
Creates a new Multipurpose Internet Mail Extensions (MIME) record and handle of the created record....
ifx_status_t ifx_record_mime_get_payload(const ifx_record_handle_t *handle, ifx_blob_t *payload)
Gets the payload from the MIME record for the given record handle.
Provides utility functions and macros.
Data storage for data and data length where both are required as parameters.
Definition ifx-utils.h:189
Defines the handle for specific record type.