mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-11 08:05:24 -04:00
Formatting & cosmetic fixes
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
parent
0d3b3a86d2
commit
84fc52c6b3
@ -6515,6 +6515,9 @@ static tls_prf_fn ssl_tls12prf_from_cs( int ciphersuite_id )
|
|||||||
const mbedtls_ssl_ciphersuite_t * const ciphersuite_info =
|
const mbedtls_ssl_ciphersuite_t * const ciphersuite_info =
|
||||||
mbedtls_ssl_ciphersuite_from_id( ciphersuite_id );
|
mbedtls_ssl_ciphersuite_from_id( ciphersuite_id );
|
||||||
|
|
||||||
|
if( ciphersuite_info == NULL )
|
||||||
|
return( NULL );
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA512_NO_SHA384)
|
#if defined(MBEDTLS_SHA512_C) && !defined(MBEDTLS_SHA512_NO_SHA384)
|
||||||
if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 )
|
if( ciphersuite_info->mac == MBEDTLS_MD_SHA384 )
|
||||||
return( tls_prf_sha384 );
|
return( tls_prf_sha384 );
|
||||||
@ -6522,7 +6525,7 @@ static tls_prf_fn ssl_tls12prf_from_cs( int ciphersuite_id )
|
|||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_SHA256_C)
|
#if defined(MBEDTLS_SHA256_C)
|
||||||
{
|
{
|
||||||
if( ciphersuite_info != NULL && ciphersuite_info->mac == MBEDTLS_MD_SHA256 )
|
if( ciphersuite_info->mac == MBEDTLS_MD_SHA256 )
|
||||||
return( tls_prf_sha256 );
|
return( tls_prf_sha256 );
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user