mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-05 22:19:11 +01:00
The Great Renaming
A simple execution of tmp/invoke-rename.pl
This commit is contained in:
parent
b5904d25ef
commit
2cf5a7c98e
291 changed files with 36012 additions and 36012 deletions
|
|
@ -3,7 +3,7 @@
|
|||
/* END_HEADER */
|
||||
|
||||
/* BEGIN_DEPENDENCIES
|
||||
* depends_on:POLARSSL_VERSION_C
|
||||
* depends_on:MBEDTLS_VERSION_C
|
||||
* END_DEPENDENCIES
|
||||
*/
|
||||
|
||||
|
|
@ -17,20 +17,20 @@ void check_compiletime_version( char *version_str )
|
|||
memset( build_str, 0, 100 );
|
||||
memset( build_str_full, 0, 100 );
|
||||
|
||||
polarssl_snprintf( build_str, 100, "%d.%d.%d", POLARSSL_VERSION_MAJOR,
|
||||
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
||||
mbedtls_snprintf( build_str, 100, "%d.%d.%d", MBEDTLS_VERSION_MAJOR,
|
||||
MBEDTLS_VERSION_MINOR, MBEDTLS_VERSION_PATCH );
|
||||
|
||||
polarssl_snprintf( build_str_full, 100, "mbed TLS %d.%d.%d", POLARSSL_VERSION_MAJOR,
|
||||
POLARSSL_VERSION_MINOR, POLARSSL_VERSION_PATCH );
|
||||
mbedtls_snprintf( build_str_full, 100, "mbed TLS %d.%d.%d", MBEDTLS_VERSION_MAJOR,
|
||||
MBEDTLS_VERSION_MINOR, MBEDTLS_VERSION_PATCH );
|
||||
|
||||
build_int = POLARSSL_VERSION_MAJOR << 24 |
|
||||
POLARSSL_VERSION_MINOR << 16 |
|
||||
POLARSSL_VERSION_PATCH << 8;
|
||||
build_int = MBEDTLS_VERSION_MAJOR << 24 |
|
||||
MBEDTLS_VERSION_MINOR << 16 |
|
||||
MBEDTLS_VERSION_PATCH << 8;
|
||||
|
||||
TEST_ASSERT( build_int == POLARSSL_VERSION_NUMBER );
|
||||
TEST_ASSERT( strcmp( build_str, POLARSSL_VERSION_STRING ) == 0 );
|
||||
TEST_ASSERT( strcmp( build_str_full, POLARSSL_VERSION_STRING_FULL ) == 0 );
|
||||
TEST_ASSERT( strcmp( version_str, POLARSSL_VERSION_STRING ) == 0 );
|
||||
TEST_ASSERT( build_int == MBEDTLS_VERSION_NUMBER );
|
||||
TEST_ASSERT( strcmp( build_str, MBEDTLS_VERSION_STRING ) == 0 );
|
||||
TEST_ASSERT( strcmp( build_str_full, MBEDTLS_VERSION_STRING_FULL ) == 0 );
|
||||
TEST_ASSERT( strcmp( version_str, MBEDTLS_VERSION_STRING ) == 0 );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
|
|
@ -48,15 +48,15 @@ void check_runtime_version( char *version_str )
|
|||
memset( build_str_full, 0, 100 );
|
||||
memset( get_str_full, 0, 100 );
|
||||
|
||||
get_int = version_get_number();
|
||||
version_get_string( get_str );
|
||||
version_get_string_full( get_str_full );
|
||||
get_int = mbedtls_version_get_number();
|
||||
mbedtls_version_get_string( get_str );
|
||||
mbedtls_version_get_string_full( get_str_full );
|
||||
|
||||
polarssl_snprintf( build_str, 100, "%d.%d.%d",
|
||||
mbedtls_snprintf( build_str, 100, "%d.%d.%d",
|
||||
(get_int >> 24) & 0xFF,
|
||||
(get_int >> 16) & 0xFF,
|
||||
(get_int >> 8) & 0xFF );
|
||||
polarssl_snprintf( build_str_full, 100, "mbed TLS %s", version_str );
|
||||
mbedtls_snprintf( build_str_full, 100, "mbed TLS %s", version_str );
|
||||
|
||||
TEST_ASSERT( strcmp( build_str, version_str ) == 0 );
|
||||
TEST_ASSERT( strcmp( build_str_full, get_str_full ) == 0 );
|
||||
|
|
@ -67,7 +67,7 @@ void check_runtime_version( char *version_str )
|
|||
/* BEGIN_CASE */
|
||||
void check_feature( char *feature, int result )
|
||||
{
|
||||
int check = version_check_feature( feature );
|
||||
int check = mbedtls_version_check_feature( feature );
|
||||
TEST_ASSERT( check == result );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue