mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Renamed error_strerror() to the less conflicting polarssl_strerror()
Ability to keep old function error_strerror() as well with POLARSSL_ERROR_STRERROR_BC. Also works with POLARSSL_ERROR_STRERROR_DUMMY.
This commit is contained in:
@@ -325,6 +325,17 @@
|
||||
*/
|
||||
#define POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
||||
|
||||
/**
|
||||
* \def POLARSSL_ERROR_STRERROR_BC
|
||||
*
|
||||
* Make available the backward compatible error_strerror() next to the
|
||||
* current polarssl_strerror().
|
||||
*
|
||||
* Disable if you run into name conflicts and want to really remove the
|
||||
* error_strerror()
|
||||
*/
|
||||
#define POLARSSL_ERROR_STRERROR_BC
|
||||
|
||||
/**
|
||||
* \def POLARSSL_ERROR_STRERROR_DUMMY
|
||||
*
|
||||
|
@@ -103,7 +103,11 @@ extern "C" {
|
||||
* \param buffer buffer to place representation in
|
||||
* \param buflen length of the buffer
|
||||
*/
|
||||
void polarssl_strerror( int errnum, char *buffer, size_t buflen );
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
void error_strerror( int errnum, char *buffer, size_t buflen );
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user