mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 02:25:31 +00:00
Fixed spacing in entropy_gather()
This commit is contained in:
parent
75342a65e4
commit
ddd427a8fc
|
@ -211,21 +211,21 @@ static int entropy_gather_internal( entropy_context *ctx )
|
||||||
*/
|
*/
|
||||||
int entropy_gather( entropy_context *ctx )
|
int entropy_gather( entropy_context *ctx )
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
#if defined(POLARSSL_THREADING_C)
|
#if defined(POLARSSL_THREADING_C)
|
||||||
if( ( ret = polarssl_mutex_lock( &ctx->mutex ) ) != 0 )
|
if( ( ret = polarssl_mutex_lock( &ctx->mutex ) ) != 0 )
|
||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = entropy_gather_internal( ctx );
|
ret = entropy_gather_internal( ctx );
|
||||||
|
|
||||||
#if defined(POLARSSL_THREADING_C)
|
#if defined(POLARSSL_THREADING_C)
|
||||||
if( polarssl_mutex_unlock( &ctx->mutex ) != 0 )
|
if( polarssl_mutex_unlock( &ctx->mutex ) != 0 )
|
||||||
return( POLARSSL_ERR_THREADING_MUTEX_ERROR );
|
return( POLARSSL_ERR_THREADING_MUTEX_ERROR );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
int entropy_func( void *data, unsigned char *output, size_t len )
|
int entropy_func( void *data, unsigned char *output, size_t len )
|
||||||
|
|
Loading…
Reference in a new issue