diff options
author | tb <> | 2024-11-02 08:56:44 +0000 |
---|---|---|
committer | tb <> | 2024-11-02 08:56:44 +0000 |
commit | 31a7069580c5c1283d698f07f552c4dd435a4c2b (patch) | |
tree | 670c4c5f084daab91e58803677014caa67a53f8d /src/lib/libcrypto/cryptlib.c | |
parent | 5a3101c1d5e1f9f99c2d29cfd71180caf58af69b (diff) | |
download | openbsd-31a7069580c5c1283d698f07f552c4dd435a4c2b.tar.gz openbsd-31a7069580c5c1283d698f07f552c4dd435a4c2b.tar.bz2 openbsd-31a7069580c5c1283d698f07f552c4dd435a4c2b.zip |
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
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
-rw-r--r-- | src/lib/libcrypto/cryptlib.c | 27 |
1 files changed, 1 insertions, 26 deletions
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 @@ | |||
1 | /* $OpenBSD: cryptlib.c,v 1.58 2024/11/01 10:05:18 tb Exp $ */ | 1 | /* $OpenBSD: cryptlib.c,v 1.59 2024/11/02 08:56:44 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -306,31 +306,6 @@ void | |||
306 | } | 306 | } |
307 | LCRYPTO_ALIAS(CRYPTO_get_dynlock_destroy_callback); | 307 | LCRYPTO_ALIAS(CRYPTO_get_dynlock_destroy_callback); |
308 | 308 | ||
309 | void | ||
310 | CRYPTO_THREADID_current(CRYPTO_THREADID *id) | ||
311 | { | ||
312 | memset(id, 0, sizeof(*id)); | ||
313 | id->val = (unsigned long)pthread_self(); | ||
314 | } | ||
315 | |||
316 | int | ||
317 | CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b) | ||
318 | { | ||
319 | return memcmp(a, b, sizeof(*a)); | ||
320 | } | ||
321 | |||
322 | void | ||
323 | CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src) | ||
324 | { | ||
325 | memcpy(dest, src, sizeof(*src)); | ||
326 | } | ||
327 | |||
328 | unsigned long | ||
329 | CRYPTO_THREADID_hash(const CRYPTO_THREADID *id) | ||
330 | { | ||
331 | return id->val; | ||
332 | } | ||
333 | |||
334 | #if !defined(OPENSSL_CPUID_SETUP) && !defined(OPENSSL_CPUID_OBJ) | 309 | #if !defined(OPENSSL_CPUID_SETUP) && !defined(OPENSSL_CPUID_OBJ) |
335 | void | 310 | void |
336 | OPENSSL_cpuid_setup(void) | 311 | OPENSSL_cpuid_setup(void) |