mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 18:14:07 -04:00
test: pake: remove useless check in ssl_ecjpake_set_password()
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
2e1e43fb82
commit
ba22c9c1ff
@ -6227,7 +6227,7 @@ void ssl_ecjpake_set_password( int use_opaque_arg )
|
|||||||
|
|
||||||
TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 );
|
TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 );
|
||||||
|
|
||||||
/* test with empty password */
|
/* test with empty password or unitialized password key (depending on use_opaque_arg) */
|
||||||
ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
||||||
|
|
||||||
pwd_len = strlen( ECJPAKE_TEST_PWD );
|
pwd_len = strlen( ECJPAKE_TEST_PWD );
|
||||||
@ -6236,9 +6236,6 @@ void ssl_ecjpake_set_password( int use_opaque_arg )
|
|||||||
#if defined( MBEDTLS_USE_PSA_CRYPTO )
|
#if defined( MBEDTLS_USE_PSA_CRYPTO )
|
||||||
if( use_opaque_arg )
|
if( use_opaque_arg )
|
||||||
{
|
{
|
||||||
/* test with uninitialized password key */
|
|
||||||
ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_BAD_INPUT_DATA );
|
|
||||||
|
|
||||||
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
|
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
|
||||||
|
|
||||||
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_DERIVE );
|
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_DERIVE );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user