mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01: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:
parent
3c2122ff9d
commit
ef3f8c747e
21 changed files with 112 additions and 93 deletions
|
|
@ -75,11 +75,12 @@ int main( int argc, char *argv[] )
|
|||
unsigned char o_priv_encrypted[512];
|
||||
unsigned char p_priv_decrypted[512];
|
||||
unsigned char o_priv_decrypted[512];
|
||||
char *pers = "o_p_test_example";
|
||||
const char *pers = "o_p_test_example";
|
||||
|
||||
entropy_init( &entropy );
|
||||
if( ( ret = ctr_drbg_init( &ctr_drbg, entropy_func, &entropy,
|
||||
(unsigned char *) pers, strlen( pers ) ) ) != 0 )
|
||||
(const unsigned char *) pers,
|
||||
strlen( pers ) ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! ctr_drbg_init returned %d\n", ret );
|
||||
goto exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue