summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/regress/lib/libcrypto/bio/bio_chain.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/regress/lib/libcrypto/bio/bio_chain.c b/src/regress/lib/libcrypto/bio/bio_chain.c
index 143c4e147b..45282843f6 100644
--- a/src/regress/lib/libcrypto/bio/bio_chain.c
+++ b/src/regress/lib/libcrypto/bio/bio_chain.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bio_chain.c,v 1.1 2022/12/08 17:49:02 tb Exp $ */ 1/* $OpenBSD: bio_chain.c,v 1.2 2022/12/08 18:10:52 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -35,7 +35,7 @@ BIO_prev(BIO *bio)
35} 35}
36 36
37static int 37static int
38do_bio_chain_pop_test(void) 38bio_chain_pop_test(void)
39{ 39{
40 BIO *bio[N_CHAIN_BIOS]; 40 BIO *bio[N_CHAIN_BIOS];
41 BIO *prev, *next; 41 BIO *prev, *next;
@@ -196,7 +196,7 @@ do_bio_chain_pop_test(void)
196 */ 196 */
197 197
198static int 198static int
199do_bio_link_chains_at(size_t i, size_t j, int use_bio_push) 199link_chains_at(size_t i, size_t j, int use_bio_push)
200{ 200{
201 BIO *A[N_CHAIN_BIOS], *B[N_CHAIN_BIOS]; 201 BIO *A[N_CHAIN_BIOS], *B[N_CHAIN_BIOS];
202 BIO *oldhead_start, *oldhead_end, *oldtail_start, *oldtail_end; 202 BIO *oldhead_start, *oldhead_end, *oldtail_start, *oldtail_end;
@@ -489,14 +489,14 @@ do_bio_link_chains_at(size_t i, size_t j, int use_bio_push)
489} 489}
490 490
491static int 491static int
492do_bio_link_chains(int use_bio_push) 492link_chains(int use_bio_push)
493{ 493{
494 size_t i, j; 494 size_t i, j;
495 int failure = 0; 495 int failure = 0;
496 496
497 for (i = 0; i < N_CHAIN_BIOS; i++) { 497 for (i = 0; i < N_CHAIN_BIOS; i++) {
498 for (j = 0; j < N_CHAIN_BIOS; j++) { 498 for (j = 0; j < N_CHAIN_BIOS; j++) {
499 failure |= do_bio_link_chains_at(i, j, use_bio_push); 499 failure |= link_chains_at(i, j, use_bio_push);
500 } 500 }
501 } 501 }
502 502
@@ -504,19 +504,19 @@ do_bio_link_chains(int use_bio_push)
504} 504}
505 505
506static int 506static int
507do_bio_push_link_test(void) 507bio_push_link_test(void)
508{ 508{
509 int use_bio_push = 1; 509 int use_bio_push = 1;
510 510
511 return do_bio_link_chains(use_bio_push); 511 return link_chains(use_bio_push);
512} 512}
513 513
514static int 514static int
515do_bio_set_next_link_test(void) 515bio_set_next_link_test(void)
516{ 516{
517 int use_bio_push = 0; 517 int use_bio_push = 0;
518 518
519 return do_bio_link_chains(use_bio_push); 519 return link_chains(use_bio_push);
520} 520}
521 521
522int 522int
@@ -524,9 +524,9 @@ main(int argc, char **argv)
524{ 524{
525 int failed = 0; 525 int failed = 0;
526 526
527 failed |= do_bio_chain_pop_test(); 527 failed |= bio_chain_pop_test();
528 failed |= do_bio_push_link_test(); 528 failed |= bio_push_link_test();
529 failed |= do_bio_set_next_link_test(); 529 failed |= bio_set_next_link_test();
530 530
531 return failed; 531 return failed;
532} 532}