mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01:00
tests: Add mbedtls_test_ prefix to *hexify functions
Add mbedtls_test_ prefix to hexify() and unhexify()
test helper functions.
Command to change *.function files:
find . -name "*.function" -exec awk -i inplace \
'{sub(/(un|)hexify\>/,"mbedtls_test_&")}1' {} \;
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
eab4a7a05d
commit
a0c9ff3e52
15 changed files with 101 additions and 101 deletions
|
|
@ -433,7 +433,7 @@ static void close_output( FILE* out_stream )
|
|||
}
|
||||
#endif /* __unix__ || __APPLE__ __MACH__ */
|
||||
|
||||
int unhexify( unsigned char *obuf, const char *ibuf )
|
||||
int mbedtls_test_unhexify( unsigned char *obuf, const char *ibuf )
|
||||
{
|
||||
unsigned char c, c2;
|
||||
int len = strlen( ibuf ) / 2;
|
||||
|
|
@ -467,7 +467,7 @@ int unhexify( unsigned char *obuf, const char *ibuf )
|
|||
return len;
|
||||
}
|
||||
|
||||
void hexify( unsigned char *obuf, const unsigned char *ibuf, int len )
|
||||
void mbedtls_test_hexify( unsigned char *obuf, const unsigned char *ibuf, int len )
|
||||
{
|
||||
unsigned char l, h;
|
||||
|
||||
|
|
@ -533,7 +533,7 @@ unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
|
|||
obuf = mbedtls_calloc( 1, *olen );
|
||||
TEST_HELPER_ASSERT( obuf != NULL );
|
||||
|
||||
(void) unhexify( obuf, ibuf );
|
||||
(void) mbedtls_test_unhexify( obuf, ibuf );
|
||||
|
||||
return( obuf );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue