Fixed const correctness issues in programs and tests
diff --git a/programs/pkey/dh_client.c b/programs/pkey/dh_client.c
index db9283a..b3a2476 100644
--- a/programs/pkey/dh_client.c
+++ b/programs/pkey/dh_client.c
@@ -70,7 +70,7 @@
unsigned char *p, *end;
unsigned char buf[2048];
unsigned char hash[20];
- char *pers = "dh_client";
+ const char *pers = "dh_client";
entropy_context entropy;
ctr_drbg_context ctr_drbg;
@@ -92,7 +92,8 @@
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;