Fix undeclared dependency of test function
The ssl_tranform structure lacks some members accessed by this function when CBC is not enabled. This was found by test-ref-configs.pl and all.sh test_when_no_ciphersuites_have_mac, so no need to add a new test. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
62af37d616
commit
913a204a33
1 changed files with 4 additions and 3 deletions
|
@ -3452,7 +3452,7 @@ exit:
|
|||
}
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_SSL_PROTO_TLS1_2 */
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC:MBEDTLS_AES_C:MBEDTLS_SSL_PROTO_TLS1_2 */
|
||||
void ssl_decrypt_non_etm_cbc( int cipher_type, int hash_id, int trunc_hmac,
|
||||
int plaintext_len, int pad_long )
|
||||
{
|
||||
|
@ -3461,8 +3461,9 @@ void ssl_decrypt_non_etm_cbc( int cipher_type, int hash_id, int trunc_hmac,
|
|||
* of padding and MAC.
|
||||
*
|
||||
* Actually depends on TLS >= 1.0 (SSL 3.0 computes the MAC differently),
|
||||
* but since the test framework doesn't support alternation in dependency
|
||||
* statements, just depend on TLS 1.2.
|
||||
* and either AES, ARIA, Camellia or DES, but since the test framework
|
||||
* doesn't support alternation in dependency statements, just depend on
|
||||
* TLS 1.2 and AES.
|
||||
*/
|
||||
mbedtls_ssl_context ssl; /* ONLY for debugging */
|
||||
mbedtls_ssl_transform t0, t1;
|
||||
|
|
Loading…
Reference in a new issue