diff options
author | tb <> | 2024-03-02 11:37:13 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 11:37:13 +0000 |
commit | 0340c5dc4c22ea26987e0f29706413898d25e394 (patch) | |
tree | 22ca385e8261665022d07254b0ff103cb0c2f6f4 /src/lib/libcrypto/crypto.h | |
parent | 0e0cb92067894b44c4616c0ca3622a555adf404c (diff) | |
download | openbsd-0340c5dc4c22ea26987e0f29706413898d25e394.tar.gz openbsd-0340c5dc4c22ea26987e0f29706413898d25e394.tar.bz2 openbsd-0340c5dc4c22ea26987e0f29706413898d25e394.zip |
Make CRYPTO_THREADID opaque
With ERR_STATE out of the way, we can make CRYPTO_THREADID opaque.
The type is still accessed by used public API, but some of the public
API can also go away.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/crypto.h')
-rw-r--r-- | src/lib/libcrypto/crypto.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 382d40a350..01359c4297 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto.h,v 1.68 2024/03/02 11:35:09 tb Exp $ */ | 1 | /* $OpenBSD: crypto.h,v 1.69 2024/03/02 11:37:13 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 | * |
@@ -313,14 +313,7 @@ int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file, | |||
313 | int line); | 313 | int line); |
314 | 314 | ||
315 | /* Don't use this structure directly. */ | 315 | /* Don't use this structure directly. */ |
316 | typedef struct crypto_threadid_st { | 316 | typedef struct crypto_threadid_st CRYPTO_THREADID; |
317 | void *ptr; | ||
318 | unsigned long val; | ||
319 | } CRYPTO_THREADID; | ||
320 | void CRYPTO_THREADID_current(CRYPTO_THREADID *id); | ||
321 | int CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b); | ||
322 | void CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src); | ||
323 | unsigned long CRYPTO_THREADID_hash(const CRYPTO_THREADID *id); | ||
324 | 317 | ||
325 | #ifndef LIBRESSL_INTERNAL | 318 | #ifndef LIBRESSL_INTERNAL |
326 | /* These functions are deprecated no-op stubs */ | 319 | /* These functions are deprecated no-op stubs */ |