diff options
Diffstat (limited to 'lib/libcrypto/crypto_lock.c')
-rw-r--r-- | lib/libcrypto/crypto_lock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcrypto/crypto_lock.c b/lib/libcrypto/crypto_lock.c index bd8315c264e..6d9dbab22bd 100644 --- a/lib/libcrypto/crypto_lock.c +++ b/lib/libcrypto/crypto_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crypto_lock.c,v 1.4 2023/05/19 00:54:27 deraadt Exp $ */ +/* $OpenBSD: crypto_lock.c,v 1.5 2023/06/04 17:28:35 tb Exp $ */ /* * Copyright (c) 2018 Brent Cook <bcook@openbsd.org> * @@ -19,6 +19,8 @@ #include <openssl/crypto.h> +#include "crypto_internal.h" + static pthread_mutex_t locks[] = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, @@ -63,9 +65,6 @@ static pthread_mutex_t locks[] = { PTHREAD_MUTEX_INITIALIZER, }; -#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \ - __attribute__((__unused__)) - CTASSERT((sizeof(locks) / sizeof(*locks)) == CRYPTO_NUM_LOCKS); void |