From 9cb630c43b7d2da3370998204f2fe1c3db365968 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 15 Nov 2025 16:26:00 +0000 Subject: 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. --- src/regress/lib/libcrypto/bn/bn_test.c | 13 +------------ 1 file changed, 1 insertion(+), 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 @@ -/* $OpenBSD: bn_test.c,v 1.23 2025/02/12 21:22:15 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.24 2025/11/15 16:26:00 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -474,17 +474,6 @@ test_div(BIO *bp, BN_CTX *ctx) static void print_word(BIO *bp, BN_ULONG w) { -#ifdef SIXTY_FOUR_BIT - if (sizeof(w) > sizeof(unsigned long)) { - unsigned long h = (unsigned long)(w >> 32), l = (unsigned long)(w); - - if (h) - BIO_printf(bp, "%lX%08lX", h, l); - else - BIO_printf(bp, "%lX", l); - return; - } -#endif BIO_printf(bp, BN_HEX_FMT1, w); } -- cgit v1.2.3-55-g6feb