mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 16:55:40 +01:00
- Fixed warnings with cast
This commit is contained in:
parent
1496d38028
commit
e22d7030c6
@ -612,7 +612,7 @@ int main( int argc, char *argv[] )
|
||||
fflush( stdout );
|
||||
|
||||
n = sizeof( buf );
|
||||
len = base64_encode( base, &n, opt.user_name, strlen( opt.user_name ) );
|
||||
len = base64_encode( base, &n, (unsigned char *) opt.user_name, strlen( opt.user_name ) );
|
||||
len = sprintf( (char *) buf, "%s\n", base );
|
||||
ret = write_ssl_and_get_response( &ssl, buf, len );
|
||||
if( ret < 300 || ret > 399 )
|
||||
@ -626,7 +626,7 @@ int main( int argc, char *argv[] )
|
||||
printf( " > Write password to server: %s", opt.user_pwd );
|
||||
fflush( stdout );
|
||||
|
||||
len = base64_encode( base, &n, opt.user_pwd, strlen( opt.user_pwd ) );
|
||||
len = base64_encode( base, &n, (unsigned char *) opt.user_pwd, strlen( opt.user_pwd ) );
|
||||
len = sprintf( (char *) buf, "%s\n", base );
|
||||
ret = write_ssl_and_get_response( &ssl, buf, len );
|
||||
if( ret < 200 || ret > 399 )
|
||||
|
Loading…
Reference in New Issue
Block a user