Skip to content

Commit 565be29

Browse files
authored
Merge pull request #292 from libtom/pr/write-strings-test-part
Partial changes from #290 (char* vs. const char* - tests related part)
2 parents 0ceb1c1 + 3b663a1 commit 565be29

25 files changed

Lines changed: 80 additions & 80 deletions

src/hashes/blake2b.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ int blake2b_512_test(void)
399399
return CRYPT_NOP;
400400
#else
401401
static const struct {
402-
char *msg;
402+
const char *msg;
403403
unsigned char hash[64];
404404
} tests[] = {
405405
{ "",
@@ -450,7 +450,7 @@ int blake2b_384_test(void)
450450
return CRYPT_NOP;
451451
#else
452452
static const struct {
453-
char *msg;
453+
const char *msg;
454454
unsigned char hash[48];
455455
} tests[] = {
456456
{ "",
@@ -497,7 +497,7 @@ int blake2b_256_test(void)
497497
return CRYPT_NOP;
498498
#else
499499
static const struct {
500-
char *msg;
500+
const char *msg;
501501
unsigned char hash[32];
502502
} tests[] = {
503503
{ "",
@@ -550,7 +550,7 @@ int blake2b_160_test(void)
550550
return CRYPT_NOP;
551551
#else
552552
static const struct {
553-
char *msg;
553+
const char *msg;
554554
unsigned char hash[20];
555555
} tests[] = {
556556
{ "",

src/hashes/blake2s.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ int blake2s_256_test(void)
387387
return CRYPT_NOP;
388388
#else
389389
static const struct {
390-
char *msg;
390+
const char *msg;
391391
unsigned char hash[32];
392392
} tests[] = {
393393
{ "",
@@ -441,7 +441,7 @@ int blake2s_224_test(void)
441441
return CRYPT_NOP;
442442
#else
443443
static const struct {
444-
char *msg;
444+
const char *msg;
445445
unsigned char hash[28];
446446
} tests[] = {
447447
{ "",
@@ -485,7 +485,7 @@ int blake2s_160_test(void)
485485
return CRYPT_NOP;
486486
#else
487487
static const struct {
488-
char *msg;
488+
const char *msg;
489489
unsigned char hash[20];
490490
} tests[] = {
491491
{ "",
@@ -527,7 +527,7 @@ int blake2s_128_test(void)
527527
return CRYPT_NOP;
528528
#else
529529
static const struct {
530-
char *msg;
530+
const char *msg;
531531
unsigned char hash[16];
532532
} tests[] = {
533533
{ "",

src/hashes/md2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int md2_test(void)
191191
return CRYPT_NOP;
192192
#else
193193
static const struct {
194-
char *msg;
194+
const char *msg;
195195
unsigned char hash[16];
196196
} tests[] = {
197197
{ "",

src/hashes/md4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ int md4_test(void)
254254
return CRYPT_NOP;
255255
#else
256256
static const struct md4_test_case {
257-
char *input;
257+
const char *input;
258258
unsigned char hash[16];
259259
} tests[] = {
260260
{ "",

src/hashes/md5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ int md5_test(void)
314314
return CRYPT_NOP;
315315
#else
316316
static const struct {
317-
char *msg;
317+
const char *msg;
318318
unsigned char hash[16];
319319
} tests[] = {
320320
{ "",

src/hashes/rmd128.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ int rmd128_test(void)
353353
return CRYPT_NOP;
354354
#else
355355
static const struct {
356-
char *msg;
356+
const char *msg;
357357
unsigned char hash[16];
358358
} tests[] = {
359359
{ "",

src/hashes/rmd160.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ int rmd160_test(void)
412412
return CRYPT_NOP;
413413
#else
414414
static const struct {
415-
char *msg;
415+
const char *msg;
416416
unsigned char hash[20];
417417
} tests[] = {
418418
{ "",

src/hashes/rmd256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ int rmd256_test(void)
366366
return CRYPT_NOP;
367367
#else
368368
static const struct {
369-
char *msg;
369+
const char *msg;
370370
unsigned char hash[32];
371371
} tests[] = {
372372
{ "",

src/hashes/rmd320.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ int rmd320_test(void)
431431
return CRYPT_NOP;
432432
#else
433433
static const struct {
434-
char *msg;
434+
const char *msg;
435435
unsigned char hash[40];
436436
} tests[] = {
437437
{ "",

src/hashes/sha1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int sha1_test(void)
246246
return CRYPT_NOP;
247247
#else
248248
static const struct {
249-
char *msg;
249+
const char *msg;
250250
unsigned char hash[20];
251251
} tests[] = {
252252
{ "abc",

0 commit comments

Comments
 (0)