aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_sha256.c')
-rw-r--r--src/microhttpd/test_sha256.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/microhttpd/test_sha256.c b/src/microhttpd/test_sha256.c
index 5f6559e2..e6ccc7ca 100644
--- a/src/microhttpd/test_sha256.c
+++ b/src/microhttpd/test_sha256.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2019-2022 Evgeny Grin (Karlson2k) 3 Copyright (C) 2019-2023 Evgeny Grin (Karlson2k)
4 4
5 This test tool is free software; you can redistribute it and/or 5 This test tool is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as 6 modify it under the terms of the GNU General Public License as
@@ -361,7 +361,7 @@ test1_str (void)
361 exit (99); 361 exit (99);
362 } 362 }
363#endif /* MHD_SHA256_HAS_EXT_ERROR */ 363#endif /* MHD_SHA256_HAS_EXT_ERROR */
364 num_failed += check_result (__FUNCTION__, i, digest, 364 num_failed += check_result (MHD_FUNC_, i, digest,
365 data_units1[i].digest); 365 data_units1[i].digest);
366 } 366 }
367 MHD_SHA256_deinit (&ctx); 367 MHD_SHA256_deinit (&ctx);
@@ -391,7 +391,7 @@ test1_bin (void)
391 exit (99); 391 exit (99);
392 } 392 }
393#endif /* MHD_SHA256_HAS_EXT_ERROR */ 393#endif /* MHD_SHA256_HAS_EXT_ERROR */
394 num_failed += check_result (__FUNCTION__, i, digest, 394 num_failed += check_result (MHD_FUNC_, i, digest,
395 data_units2[i].digest); 395 data_units2[i].digest);
396 } 396 }
397 MHD_SHA256_deinit (&ctx); 397 MHD_SHA256_deinit (&ctx);
@@ -429,7 +429,7 @@ test2_str (void)
429 exit (99); 429 exit (99);
430 } 430 }
431#endif /* MHD_SHA256_HAS_EXT_ERROR */ 431#endif /* MHD_SHA256_HAS_EXT_ERROR */
432 num_failed += check_result (__FUNCTION__, i, digest, 432 num_failed += check_result (MHD_FUNC_, i, digest,
433 data_units1[i].digest); 433 data_units1[i].digest);
434 } 434 }
435 MHD_SHA256_deinit (&ctx); 435 MHD_SHA256_deinit (&ctx);
@@ -462,7 +462,7 @@ test2_bin (void)
462 exit (99); 462 exit (99);
463 } 463 }
464#endif /* MHD_SHA256_HAS_EXT_ERROR */ 464#endif /* MHD_SHA256_HAS_EXT_ERROR */
465 num_failed += check_result (__FUNCTION__, i, digest, 465 num_failed += check_result (MHD_FUNC_, i, digest,
466 data_units2[i].digest); 466 data_units2[i].digest);
467 } 467 }
468 MHD_SHA256_deinit (&ctx); 468 MHD_SHA256_deinit (&ctx);
@@ -510,7 +510,7 @@ test_unaligned (void)
510 exit (99); 510 exit (99);
511 } 511 }
512#endif /* MHD_SHA256_HAS_EXT_ERROR */ 512#endif /* MHD_SHA256_HAS_EXT_ERROR */
513 num_failed += check_result (__FUNCTION__, MAX_OFFSET - offset, 513 num_failed += check_result (MHD_FUNC_, MAX_OFFSET - offset,
514 unaligned_digest, tdata->digest); 514 unaligned_digest, tdata->digest);
515 } 515 }
516 free (digest_buf); 516 free (digest_buf);