mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 03:55:39 +01:00
Move the definition of function in zeroize
There is a static dependency in the test system for this file. To prevent the issue from happening, move the definition to the end of file so that the last return in the main remains in the same line.
This commit is contained in:
parent
990135eb4e
commit
1881ef53b7
@ -59,19 +59,6 @@ void usage( void )
|
||||
mbedtls_printf( " zeroize <FILE>\n" );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
int mbedtls_hardware_poll( void *data, unsigned char *output,
|
||||
size_t len, size_t *olen )
|
||||
{
|
||||
size_t i;
|
||||
(void) data;
|
||||
for( i = 0; i < len; ++i )
|
||||
output[i] = rand();
|
||||
*olen = len;
|
||||
return( 0 );
|
||||
}
|
||||
#endif
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
int exit_code = MBEDTLS_EXIT_FAILURE;
|
||||
@ -112,3 +99,16 @@ int main( int argc, char** argv )
|
||||
|
||||
return( exit_code );
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
|
||||
int mbedtls_hardware_poll( void *data, unsigned char *output,
|
||||
size_t len, size_t *olen )
|
||||
{
|
||||
size_t i;
|
||||
(void) data;
|
||||
for( i = 0; i < len; ++i )
|
||||
output[i] = rand();
|
||||
*olen = len;
|
||||
return( 0 );
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user