mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-19 00:39:46 +00:00
Fixed const correctness issues in programs and tests
(cherry picked from commit e0225e4d7f18f4565224f4997af537533d06a80d) Conflicts: programs/ssl/ssl_client2.c programs/ssl/ssl_server2.c programs/test/ssl_test.c programs/x509/cert_app.c
This commit is contained in:
@@ -468,11 +468,11 @@ rsa_gen_key:nrbits:exponent:result
|
||||
rsa_context ctx;
|
||||
entropy_context entropy;
|
||||
ctr_drbg_context ctr_drbg;
|
||||
char *pers = "test_suite_rsa";
|
||||
const char *pers = "test_suite_rsa";
|
||||
|
||||
entropy_init( &entropy );
|
||||
TEST_ASSERT( ctr_drbg_init( &ctr_drbg, entropy_func, &entropy,
|
||||
(unsigned char *) pers, strlen( pers ) ) == 0 );
|
||||
(const unsigned char *) pers, strlen( pers ) ) == 0 );
|
||||
|
||||
rsa_init( &ctx, 0, 0 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user