mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 19:05:55 +01:00
Fix minor style issues
This commit is contained in:
parent
9eac4f7c4e
commit
82788fb63b
@ -495,7 +495,7 @@ int ecp_point_read_binary( const ecp_group *grp, ecp_point *pt,
|
|||||||
int ret;
|
int ret;
|
||||||
size_t plen;
|
size_t plen;
|
||||||
|
|
||||||
if ( ilen < 1 )
|
if( ilen < 1 )
|
||||||
return( POLARSSL_ERR_ECP_BAD_INPUT_DATA );
|
return( POLARSSL_ERR_ECP_BAD_INPUT_DATA );
|
||||||
|
|
||||||
if( buf[0] == 0x00 )
|
if( buf[0] == 0x00 )
|
||||||
|
@ -497,8 +497,8 @@ void net_usleep( unsigned long usec )
|
|||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || \
|
#if !defined(_WIN32) && ( defined(__unix__) || defined(__unix) || \
|
||||||
(defined(__APPLE__) && defined(__MACH__)))
|
( defined(__APPLE__) && defined(__MACH__) ) )
|
||||||
tv.tv_usec = (suseconds_t) usec;
|
tv.tv_usec = (suseconds_t) usec;
|
||||||
#else
|
#else
|
||||||
tv.tv_usec = usec;
|
tv.tv_usec = usec;
|
||||||
|
@ -260,7 +260,7 @@ static const int ciphersuite_preference[] =
|
|||||||
TLS_PSK_WITH_NULL_SHA256,
|
TLS_PSK_WITH_NULL_SHA256,
|
||||||
TLS_PSK_WITH_NULL_SHA,
|
TLS_PSK_WITH_NULL_SHA,
|
||||||
|
|
||||||
#endif
|
#endif /* SSL_CIPHERSUITES */
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3338,7 +3338,7 @@ static int ssl_handshake_init( ssl_context *ssl )
|
|||||||
(ssl_session *) polarssl_malloc( sizeof(ssl_session) );
|
(ssl_session *) polarssl_malloc( sizeof(ssl_session) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( ssl->handshake == NULL)
|
if( ssl->handshake == NULL )
|
||||||
{
|
{
|
||||||
ssl->handshake = (ssl_handshake_params *)
|
ssl->handshake = (ssl_handshake_params *)
|
||||||
polarssl_malloc( sizeof(ssl_handshake_params) );
|
polarssl_malloc( sizeof(ssl_handshake_params) );
|
||||||
|
Loading…
Reference in New Issue
Block a user