mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Remove mbedtls_low_level_sterr() and mbedtls_high_level_strerr()
Just removed from the API. We can greatly simplify error.c but that will be for later. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
committed by
David Horstmann
parent
275951292c
commit
1ffdb18cdb
@ -5,3 +5,7 @@ API changes
|
|||||||
Mbed TLS error codes..
|
Mbed TLS error codes..
|
||||||
This will not affect most applications since in both cases, the
|
This will not affect most applications since in both cases, the
|
||||||
error values are between -32767 and -1 as before.
|
error values are between -32767 and -1 as before.
|
||||||
|
|
||||||
|
Removals
|
||||||
|
* Remove mbedtls_low_level_sterr() and mbedtls_high_level_strerr(),
|
||||||
|
since these concepts no longer exists. There is just mbedtls_strerror().
|
||||||
|
@ -30,36 +30,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
void mbedtls_strerror(int errnum, char *buffer, size_t buflen);
|
void mbedtls_strerror(int errnum, char *buffer, size_t buflen);
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Translate the high-level part of an Mbed TLS error code into a string
|
|
||||||
* representation.
|
|
||||||
*
|
|
||||||
* This function returns a const pointer to an un-modifiable string. The caller
|
|
||||||
* must not try to modify the string. It is intended to be used mostly for
|
|
||||||
* logging purposes.
|
|
||||||
*
|
|
||||||
* \param error_code error code
|
|
||||||
*
|
|
||||||
* \return The string representation of the error code, or \c NULL if the error
|
|
||||||
* code is unknown.
|
|
||||||
*/
|
|
||||||
const char *mbedtls_high_level_strerr(int error_code);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Translate the low-level part of an Mbed TLS error code into a string
|
|
||||||
* representation.
|
|
||||||
*
|
|
||||||
* This function returns a const pointer to an un-modifiable string. The caller
|
|
||||||
* must not try to modify the string. It is intended to be used mostly for
|
|
||||||
* logging purposes.
|
|
||||||
*
|
|
||||||
* \param error_code error code
|
|
||||||
*
|
|
||||||
* \return The string representation of the error code, or \c NULL if the error
|
|
||||||
* code is unknown.
|
|
||||||
*/
|
|
||||||
const char *mbedtls_low_level_strerr(int error_code);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
HEADER_INCLUDED
|
HEADER_INCLUDED
|
||||||
|
|
||||||
const char *mbedtls_high_level_strerr(int error_code)
|
static const char *mbedtls_high_level_strerr(int error_code)
|
||||||
{
|
{
|
||||||
int high_level_error_code;
|
int high_level_error_code;
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ const char *mbedtls_high_level_strerr(int error_code)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *mbedtls_low_level_strerr(int error_code)
|
static const char *mbedtls_low_level_strerr(int error_code)
|
||||||
{
|
{
|
||||||
int low_level_error_code;
|
int low_level_error_code;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user