mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-05 09:40:32 +00:00
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
@ -1890,15 +1890,12 @@ size_t mbedtls_ssl_ciphersuite_get_cipher_key_bitlen( const mbedtls_ssl_ciphersu
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return key_bits;
|
return key_bits;
|
||||||
#elif defined(MBEDTLS_CIPHER_C)
|
#else
|
||||||
const mbedtls_cipher_info_t * const cipher_info =
|
const mbedtls_cipher_info_t * const cipher_info =
|
||||||
mbedtls_cipher_info_from_type( info->cipher );
|
mbedtls_cipher_info_from_type( info->cipher );
|
||||||
|
|
||||||
return( mbedtls_cipher_info_get_key_bitlen( cipher_info ) );
|
return( mbedtls_cipher_info_get_key_bitlen( cipher_info ) );
|
||||||
#else
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
(void)info;
|
|
||||||
return( 0 );
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_PK_C)
|
#if defined(MBEDTLS_PK_C)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user