Make CIPHER_C guard code as alternate of USE_PSA_CRYPTO in mbedtls_ssl_ciphersuite_get_cipher_key_bitlen()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
4f4f271850
commit
689557ca12
1 changed files with 2 additions and 5 deletions
|
@ -1890,15 +1890,12 @@ size_t mbedtls_ssl_ciphersuite_get_cipher_key_bitlen( const mbedtls_ssl_ciphersu
|
|||
return 0;
|
||||
|
||||
return key_bits;
|
||||
#elif defined(MBEDTLS_CIPHER_C)
|
||||
#else
|
||||
const mbedtls_cipher_info_t * const cipher_info =
|
||||
mbedtls_cipher_info_from_type( info->cipher );
|
||||
|
||||
return( mbedtls_cipher_info_get_key_bitlen( cipher_info ) );
|
||||
#else
|
||||
(void)info;
|
||||
return( 0 );
|
||||
#endif
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_PK_C)
|
||||
|
|
Loading…
Reference in a new issue