diff --git a/programs/pkey/dh_client.c b/programs/pkey/dh_client.c index 68b56aa3f..51da9ab41 100644 --- a/programs/pkey/dh_client.c +++ b/programs/pkey/dh_client.c @@ -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 ); diff --git a/programs/pkey/dh_server.c b/programs/pkey/dh_server.c index 54d6e366d..fb9c082ec 100644 --- a/programs/pkey/dh_server.c +++ b/programs/pkey/dh_server.c @@ -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 ); diff --git a/programs/pkey/key_app.c b/programs/pkey/key_app.c index fc0269e28..ac53cfddc 100644 --- a/programs/pkey/key_app.c +++ b/programs/pkey/key_app.c @@ -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;