diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function index 0530ca00f..4f8ef524d 100644 --- a/tests/suites/test_suite_ssl.function +++ b/tests/suites/test_suite_ssl.function @@ -6206,7 +6206,7 @@ void ssl_ecjpake_set_password( int use_opaque_arg ) #else /* MBEDTLS_USE_PSA_CRYPTO */ (void) use_opaque_arg; #endif /* MBEDTLS_USE_PSA_CRYPTO */ - const unsigned char pwd_string[ sizeof(ECJPAKE_TEST_PWD) ] = ""; + unsigned char pwd_string[ sizeof(ECJPAKE_TEST_PWD) ] = ""; size_t pwd_len = 0; int ret; @@ -6231,7 +6231,7 @@ void ssl_ecjpake_set_password( int use_opaque_arg ) ECJPAKE_TEST_SET_PASSWORD( MBEDTLS_ERR_SSL_BAD_INPUT_DATA ); pwd_len = strlen( ECJPAKE_TEST_PWD ); - memcpy( (void*) pwd_string, ECJPAKE_TEST_PWD, pwd_len ); + memcpy( pwd_string, ECJPAKE_TEST_PWD, pwd_len ); #if defined( MBEDTLS_USE_PSA_CRYPTO ) if( use_opaque_arg )