Mbed TLS v4.1.1
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
6/*
7 * Copyright The Mbed TLS Contributors
8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 */
10#ifndef MBEDTLS_ERROR_H
11#define MBEDTLS_ERROR_H
12
13#include "mbedtls/build_info.h"
14#include "mbedtls/private/error_common.h" // for MBEDTLS_ERROR_ADD + see below
15// MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED
16// MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED
17
18#include <stddef.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
33void mbedtls_strerror(int errnum, char *buffer, size_t buflen);
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* error.h */
void mbedtls_strerror(int errnum, char *buffer, size_t buflen)
Translate an Mbed TLS error code into a string representation. The result is truncated if necessary a...
Build-time configuration info.