From 31a7069580c5c1283d698f07f552c4dd435a4c2b Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Nov 2024 08:56:44 +0000 Subject: Bye bye CRYPTO_THREADID After we ripped it out of RSA blinding and finally the error stack, it can go play in the attic with ENGINE and all the other abominations from this particular keyboard. ok jsing --- src/lib/libcrypto/cryptlib.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'src/lib/libcrypto/cryptlib.c') diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c index f58b6f6bd2..df2b9f6a55 100644 --- a/src/lib/libcrypto/cryptlib.c +++ b/src/lib/libcrypto/cryptlib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptlib.c,v 1.58 2024/11/01 10:05:18 tb Exp $ */ +/* $OpenBSD: cryptlib.c,v 1.59 2024/11/02 08:56:44 tb Exp $ */ /* ==================================================================== * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. * @@ -306,31 +306,6 @@ void } LCRYPTO_ALIAS(CRYPTO_get_dynlock_destroy_callback); -void -CRYPTO_THREADID_current(CRYPTO_THREADID *id) -{ - memset(id, 0, sizeof(*id)); - id->val = (unsigned long)pthread_self(); -} - -int -CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b) -{ - return memcmp(a, b, sizeof(*a)); -} - -void -CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src) -{ - memcpy(dest, src, sizeof(*src)); -} - -unsigned long -CRYPTO_THREADID_hash(const CRYPTO_THREADID *id) -{ - return id->val; -} - #if !defined(OPENSSL_CPUID_SETUP) && !defined(OPENSSL_CPUID_OBJ) void OPENSSL_cpuid_setup(void) -- cgit v1.2.3-55-g6feb