summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-08-12 06:25:26 +0000
committertb <>2023-08-12 06:25:26 +0000
commit60397ec4d8315868778bccc17bd8b6d5557b7bd0 (patch)
treea5beacecf70dc57423a7d9072ba222ae63b320b2 /src
parent8532495961e4df3e1e6cd866be1d162df72610ac (diff)
downloadopenbsd-60397ec4d8315868778bccc17bd8b6d5557b7bd0.tar.gz
openbsd-60397ec4d8315868778bccc17bd8b6d5557b7bd0.tar.bz2
openbsd-60397ec4d8315868778bccc17bd8b6d5557b7bd0.zip
Use printf for consistency
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/dh/dhtest.c10
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)))