mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 08:14:27 +01:00
Removed LCOV directives from code
This commit is contained in:
parent
77f4f39ea6
commit
4c284c9141
@ -368,8 +368,8 @@ int ctr_drbg_write_seed_file( ctr_drbg_context *ctx, const char *path )
|
|||||||
|
|
||||||
if( fwrite( buf, 1, CTR_DRBG_MAX_INPUT, f ) != CTR_DRBG_MAX_INPUT )
|
if( fwrite( buf, 1, CTR_DRBG_MAX_INPUT, f ) != CTR_DRBG_MAX_INPUT )
|
||||||
{
|
{
|
||||||
ret = POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR; /* LCOV_EXCL_LINE */
|
ret = POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR;
|
||||||
goto exit; /* LCOV_EXCL_LINE */
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
@ -400,8 +400,8 @@ int ctr_drbg_update_seed_file( ctr_drbg_context *ctx, const char *path )
|
|||||||
|
|
||||||
if( fread( buf, 1, n, f ) != n )
|
if( fread( buf, 1, n, f ) != n )
|
||||||
{
|
{
|
||||||
fclose( f ); /* LCOV_EXCL_LINE */
|
fclose( f );
|
||||||
return( POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR ); /* LCOV_EXCL_LINE */
|
return( POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose( f );
|
fclose( f );
|
||||||
|
@ -319,8 +319,8 @@ int hmac_drbg_write_seed_file( hmac_drbg_context *ctx, const char *path )
|
|||||||
|
|
||||||
if( fwrite( buf, 1, sizeof( buf ), f ) != sizeof( buf ) )
|
if( fwrite( buf, 1, sizeof( buf ), f ) != sizeof( buf ) )
|
||||||
{
|
{
|
||||||
ret = POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR; /* LCOV_EXCL_LINE */
|
ret = POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR;
|
||||||
goto exit; /* LCOV_EXCL_LINE */
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
@ -351,8 +351,8 @@ int hmac_drbg_update_seed_file( hmac_drbg_context *ctx, const char *path )
|
|||||||
|
|
||||||
if( fread( buf, 1, n, f ) != n )
|
if( fread( buf, 1, n, f ) != n )
|
||||||
{
|
{
|
||||||
fclose( f ); /* LCOV_EXCL_LINE */
|
fclose( f );
|
||||||
return( POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR ); /* LCOV_EXCL_LINE */
|
return( POLARSSL_ERR_HMAC_DRBG_FILE_IO_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose( f );
|
fclose( f );
|
||||||
|
Loading…
Reference in New Issue
Block a user