From 244fe4acf652024e7c876f6498c46317be42ed9d Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 17 May 2023 07:42:38 +0000 Subject: Use crypto_internal.h's CTASSERT() Now that this macro is available in a header, let's use that version rather than copies in several .c files. discussed with jsing --- src/lib/libcrypto/bn/bn_isqrt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/bn/bn_isqrt.c') diff --git a/src/lib/libcrypto/bn/bn_isqrt.c b/src/lib/libcrypto/bn/bn_isqrt.c index 4a757b02ce..1dff1b0562 100644 --- a/src/lib/libcrypto/bn/bn_isqrt.c +++ b/src/lib/libcrypto/bn/bn_isqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_isqrt.c,v 1.7 2023/03/27 10:25:02 tb Exp $ */ +/* $OpenBSD: bn_isqrt.c,v 1.8 2023/05/17 07:42:38 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * @@ -22,9 +22,7 @@ #include #include "bn_local.h" - -#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \ - __attribute__((__unused__)) +#include "crypto_internal.h" /* * Calculate integer square root of |n| using a variant of Newton's method. -- cgit v1.2.3-55-g6feb