diff options
| author | tb <> | 2022-12-08 18:10:52 +0000 |
|---|---|---|
| committer | tb <> | 2022-12-08 18:10:52 +0000 |
| commit | 6541019b45a9f956f955ab7ed3b998ab14303bce (patch) | |
| tree | bf3ba15b2796bab886b4938b96dc101af1771d77 /src | |
| parent | df2809e6c6ede4bd5a5ed9828ba48d9fd56ee84e (diff) | |
| download | openbsd-6541019b45a9f956f955ab7ed3b998ab14303bce.tar.gz openbsd-6541019b45a9f956f955ab7ed3b998ab14303bce.tar.bz2 openbsd-6541019b45a9f956f955ab7ed3b998ab14303bce.zip | |
bio chain test: lose some do_{,bio_} prefixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bio/bio_chain.c | 24 |
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 | ||
| 37 | static int | 37 | static int |
| 38 | do_bio_chain_pop_test(void) | 38 | bio_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 | ||
| 198 | static int | 198 | static int |
| 199 | do_bio_link_chains_at(size_t i, size_t j, int use_bio_push) | 199 | link_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 | ||
| 491 | static int | 491 | static int |
| 492 | do_bio_link_chains(int use_bio_push) | 492 | link_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 | ||
| 506 | static int | 506 | static int |
| 507 | do_bio_push_link_test(void) | 507 | bio_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 | ||
| 514 | static int | 514 | static int |
| 515 | do_bio_set_next_link_test(void) | 515 | bio_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 | ||
| 522 | int | 522 | int |
| @@ -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 | } |
