summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-11-15 16:26:00 +0000
committertb <>2025-11-15 16:26:00 +0000
commit9cb630c43b7d2da3370998204f2fe1c3db365968 (patch)
tree7ca4f0acc256d4e7d20e578b0a2a3d8880a2ad99 /src
parent825e052c574fe0fd3afe3cf1322f333551ca4888 (diff)
downloadopenbsd-9cb630c43b7d2da3370998204f2fe1c3db365968.tar.gz
openbsd-9cb630c43b7d2da3370998204f2fe1c3db365968.tar.bz2
openbsd-9cb630c43b7d2da3370998204f2fe1c3db365968.zip
bn_test: remove dead code
We haven't defined SIXTY_FOUR_BITS in a long time, if ever. The last #undef SIXTY_FOUR_BITS were removed when we cleaned up opensslconf.h. Code behind #ifdef SIXTY_FOUR_BITS is therefore dead.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_test.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c
index 5348788f50..de3fb7cd00 100644
--- a/src/regress/lib/libcrypto/bn/bn_test.c
+++ b/src/regress/lib/libcrypto/bn/bn_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_test.c,v 1.23 2025/02/12 21:22:15 tb Exp $ */ 1/* $OpenBSD: bn_test.c,v 1.24 2025/11/15 16:26:00 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 *
@@ -474,17 +474,6 @@ test_div(BIO *bp, BN_CTX *ctx)
474static void 474static void
475print_word(BIO *bp, BN_ULONG w) 475print_word(BIO *bp, BN_ULONG w)
476{ 476{
477#ifdef SIXTY_FOUR_BIT
478 if (sizeof(w) > sizeof(unsigned long)) {
479 unsigned long h = (unsigned long)(w >> 32), l = (unsigned long)(w);
480
481 if (h)
482 BIO_printf(bp, "%lX%08lX", h, l);
483 else
484 BIO_printf(bp, "%lX", l);
485 return;
486 }
487#endif
488 BIO_printf(bp, BN_HEX_FMT1, w); 477 BIO_printf(bp, BN_HEX_FMT1, w);
489} 478}
490 479