mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 21:48:30 +00:00
- Fixed renumber error code for POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR
This commit is contained in:
parent
ccdb028629
commit
3f9b650b4b
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ int main( int argc, char *argv[] )
|
||||||
#if defined(POLARSSL_FS_IO)
|
#if defined(POLARSSL_FS_IO)
|
||||||
ret = ctr_drbg_update_seed_file( &ctr_drbg, "seedfile" );
|
ret = ctr_drbg_update_seed_file( &ctr_drbg, "seedfile" );
|
||||||
|
|
||||||
if( ret == 1 )
|
if( ret == POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR )
|
||||||
{
|
{
|
||||||
printf("Failed to open seedfile. Generating one.\n");
|
printf("Failed to open seedfile. Generating one.\n");
|
||||||
ret = ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" );
|
ret = ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" );
|
||||||
|
|
Loading…
Reference in a new issue