- Fixed renumber error code for POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR

This commit is contained in:
Paul Bakker 2011-12-15 19:50:22 +00:00
parent ccdb028629
commit 3f9b650b4b

View File

@ -67,7 +67,7 @@ int main( int argc, char *argv[] )
#if defined(POLARSSL_FS_IO)
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");
ret = ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" );