mbed TLS v2.23.0
error.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2006-2018, ARM Limited, All Rights Reserved
8  * SPDX-License-Identifier: Apache-2.0
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may
11  * not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  * This file is part of mbed TLS (https://tls.mbed.org)
23  */
24 #ifndef MBEDTLS_ERROR_H
25 #define MBEDTLS_ERROR_H
26 
27 #if !defined(MBEDTLS_CONFIG_FILE)
28 #include "mbedtls/config.h"
29 #else
30 #include MBEDTLS_CONFIG_FILE
31 #endif
32 
33 #include <stddef.h>
34 
112 #ifdef __cplusplus
113 extern "C" {
114 #endif
115 
116 #define MBEDTLS_ERR_ERROR_GENERIC_ERROR -0x0001
117 #define MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED -0x006E
128 void mbedtls_strerror( int errnum, char *buffer, size_t buflen );
129 
143 const char * mbedtls_high_level_strerr( int error_code );
144 
158 const char * mbedtls_low_level_strerr( int error_code );
159 
160 #ifdef __cplusplus
161 }
162 #endif
163 
164 #endif /* error.h */
mbedtls_low_level_strerr
const char * mbedtls_low_level_strerr(int error_code)
Translate the low-level part of an Mbed TLS error code into a string representation.
mbedtls_high_level_strerr
const char * mbedtls_high_level_strerr(int error_code)
Translate the high-level part of an Mbed TLS error code into a string representation.
config.h
Configuration options (set of defines)