Drop POLARSSL_ERROR_STRERROR_BC
This commit is contained in:
parent
fc51f40a1a
commit
f9c1387b9d
@ -6,6 +6,7 @@ Features
|
||||
* Support for DTLS 1.0 and 1.2 (RFC 6347).
|
||||
|
||||
API Changes
|
||||
* Remove POLARSSL_ERROR_STRERROR_BC (use mbedtls_strerror()).
|
||||
* Headers are now found in the 'mbedtls' directory (previously 'polarssl').
|
||||
* Change SSL_DISABLE_RENEGOTIATION config.h flag to SSL_RENEGOTIATION
|
||||
(support for renegotiation now needs explicit enabling in config.h).
|
||||
|
@ -644,20 +644,6 @@
|
||||
*/
|
||||
#define POLARSSL_PK_PARSE_EC_EXTENDED
|
||||
|
||||
/**
|
||||
* \def POLARSSL_ERROR_STRERROR_BC
|
||||
*
|
||||
* Make available the backward compatible error_strerror() next to the
|
||||
* current polarssl_strerror().
|
||||
*
|
||||
* For new code, it is recommended to use polarssl_strerror() instead and
|
||||
* disable this.
|
||||
*
|
||||
* 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
|
||||
*
|
||||
|
@ -109,10 +109,6 @@ extern "C" {
|
||||
*/
|
||||
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
|
||||
}
|
||||
#endif
|
||||
|
@ -747,13 +747,6 @@ void polarssl_strerror( int ret, char *buf, size_t buflen )
|
||||
polarssl_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
void error_strerror( int ret, char *buf, size_t buflen )
|
||||
{
|
||||
polarssl_strerror( ret, buf, buflen );
|
||||
}
|
||||
#endif /* POLARSSL_ERROR_STRERROR_BC */
|
||||
|
||||
#else /* POLARSSL_ERROR_C */
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_DUMMY)
|
||||
@ -769,12 +762,6 @@ void polarssl_strerror( int ret, char *buf, size_t buflen )
|
||||
buf[0] = '\0';
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
void error_strerror( int ret, char *buf, size_t buflen )
|
||||
{
|
||||
polarssl_strerror( ret, buf, buflen );
|
||||
}
|
||||
#endif /* POLARSSL_ERROR_STRERROR_BC */
|
||||
#endif /* POLARSSL_ERROR_STRERROR_DUMMY */
|
||||
|
||||
#endif /* POLARSSL_ERROR_C */
|
||||
|
@ -237,9 +237,6 @@ static const char *features[] = {
|
||||
#if defined(POLARSSL_PK_PARSE_EC_EXTENDED)
|
||||
"POLARSSL_PK_PARSE_EC_EXTENDED",
|
||||
#endif /* POLARSSL_PK_PARSE_EC_EXTENDED */
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
"POLARSSL_ERROR_STRERROR_BC",
|
||||
#endif /* POLARSSL_ERROR_STRERROR_BC */
|
||||
#if defined(POLARSSL_ERROR_STRERROR_DUMMY)
|
||||
"POLARSSL_ERROR_STRERROR_DUMMY",
|
||||
#endif /* POLARSSL_ERROR_STRERROR_DUMMY */
|
||||
|
@ -109,13 +109,6 @@ LOW_LEVEL_CODE_CHECKS
|
||||
polarssl_snprintf( buf, buflen, "UNKNOWN ERROR CODE (%04X)", use_ret );
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
void error_strerror( int ret, char *buf, size_t buflen )
|
||||
{
|
||||
polarssl_strerror( ret, buf, buflen );
|
||||
}
|
||||
#endif /* POLARSSL_ERROR_STRERROR_BC */
|
||||
|
||||
#else /* POLARSSL_ERROR_C */
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_DUMMY)
|
||||
@ -131,12 +124,6 @@ void polarssl_strerror( int ret, char *buf, size_t buflen )
|
||||
buf[0] = '\0';
|
||||
}
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
void error_strerror( int ret, char *buf, size_t buflen )
|
||||
{
|
||||
polarssl_strerror( ret, buf, buflen );
|
||||
}
|
||||
#endif /* POLARSSL_ERROR_STRERROR_BC */
|
||||
#endif /* POLARSSL_ERROR_STRERROR_DUMMY */
|
||||
|
||||
#endif /* POLARSSL_ERROR_C */
|
||||
|
@ -17,13 +17,5 @@ void error_strerror( int code, char *result_str )
|
||||
polarssl_strerror( code, buf, 500 );
|
||||
|
||||
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
||||
|
||||
#if defined(POLARSSL_ERROR_STRERROR_BC)
|
||||
memset( buf, 0, sizeof( buf ) );
|
||||
|
||||
error_strerror( code, buf, 500 );
|
||||
|
||||
TEST_ASSERT( strcmp( buf, result_str ) == 0 );
|
||||
#endif
|
||||
}
|
||||
/* END_CASE */
|
||||
|
Loading…
Reference in New Issue
Block a user