mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 15:45:37 +00:00
Explicit conversions to int from size_t for MSVC (64-bit) in apps
This commit is contained in:
parent
256a4afb57
commit
0748895b68
|
@ -219,7 +219,7 @@ int main( int argc, char *argv[] )
|
|||
fflush( stdout );
|
||||
|
||||
n = dhm.len;
|
||||
if( ( ret = dhm_make_public( &dhm, dhm.len, buf, n,
|
||||
if( ( ret = dhm_make_public( &dhm, (int) dhm.len, buf, n,
|
||||
ctr_drbg_random, &ctr_drbg ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! dhm_make_public returned %d\n\n", ret );
|
||||
|
|
|
@ -182,7 +182,7 @@ int main( int argc, char *argv[] )
|
|||
|
||||
memset( buf, 0, sizeof( buf ) );
|
||||
|
||||
if( ( ret = dhm_make_params( &dhm, mpi_size( &dhm.P ), buf, &n,
|
||||
if( ( ret = dhm_make_params( &dhm, (int) mpi_size( &dhm.P ), buf, &n,
|
||||
ctr_drbg_random, &ctr_drbg ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! dhm_make_params returned %d\n\n", ret );
|
||||
|
|
|
@ -170,7 +170,7 @@ int main( int argc, char *argv[] )
|
|||
fgets( buf, 1024, f );
|
||||
fclose( f );
|
||||
|
||||
i = strlen( buf );
|
||||
i = (int) strlen( buf );
|
||||
if( buf[i - 1] == '\n' ) buf[i - 1] = '\0';
|
||||
if( buf[i - 2] == '\r' ) buf[i - 2] = '\0';
|
||||
opt.password = buf;
|
||||
|
|
Loading…
Reference in a new issue