diff options
| author | tb <> | 2023-08-12 06:25:26 +0000 |
|---|---|---|
| committer | tb <> | 2023-08-12 06:25:26 +0000 |
| commit | 8f22b42d57e51fa5ab64c58917cc0b1bcdbe0a0c (patch) | |
| tree | a5beacecf70dc57423a7d9072ba222ae63b320b2 /src | |
| parent | f18e92270cdb06ffb7cc5c6c559a94e4500df316 (diff) | |
| download | openbsd-8f22b42d57e51fa5ab64c58917cc0b1bcdbe0a0c.tar.gz openbsd-8f22b42d57e51fa5ab64c58917cc0b1bcdbe0a0c.tar.bz2 openbsd-8f22b42d57e51fa5ab64c58917cc0b1bcdbe0a0c.zip | |
Use printf for consistency
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/dh/dhtest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/dh/dhtest.c b/src/regress/lib/libcrypto/dh/dhtest.c index cfbfb98c55..47203fa574 100644 --- a/src/regress/lib/libcrypto/dh/dhtest.c +++ b/src/regress/lib/libcrypto/dh/dhtest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dhtest.c,v 1.9 2023/08/12 06:23:59 tb Exp $ */ | 1 | /* $OpenBSD: dhtest.c,v 1.10 2023/08/12 06:25:26 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -121,13 +121,13 @@ main(int argc, char *argv[]) | |||
| 121 | if (!DH_check(a, &i)) | 121 | if (!DH_check(a, &i)) |
| 122 | goto err; | 122 | goto err; |
| 123 | if (i & DH_CHECK_P_NOT_PRIME) | 123 | if (i & DH_CHECK_P_NOT_PRIME) |
| 124 | puts("p value is not prime\n"); | 124 | printf("p value is not prime\n"); |
| 125 | if (i & DH_CHECK_P_NOT_SAFE_PRIME) | 125 | if (i & DH_CHECK_P_NOT_SAFE_PRIME) |
| 126 | puts("p value is not a safe prime\n"); | 126 | printf("p value is not a safe prime\n"); |
| 127 | if (i & DH_UNABLE_TO_CHECK_GENERATOR) | 127 | if (i & DH_UNABLE_TO_CHECK_GENERATOR) |
| 128 | puts("unable to check the generator value\n"); | 128 | printf("unable to check the generator value\n"); |
| 129 | if (i & DH_NOT_SUITABLE_GENERATOR) | 129 | if (i & DH_NOT_SUITABLE_GENERATOR) |
| 130 | puts("the g value is not a generator\n"); | 130 | printf("the g value is not a generator\n"); |
| 131 | 131 | ||
| 132 | printf("\np = "); | 132 | printf("\np = "); |
| 133 | if (!BN_print_fp(stdout, DH_get0_p(a))) | 133 | if (!BN_print_fp(stdout, DH_get0_p(a))) |
