summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/crypto.h
diff options
context:
space:
mode:
authortb <>2024-03-02 11:37:13 +0000
committertb <>2024-03-02 11:37:13 +0000
commit0340c5dc4c22ea26987e0f29706413898d25e394 (patch)
tree22ca385e8261665022d07254b0ff103cb0c2f6f4 /src/lib/libcrypto/crypto.h
parent0e0cb92067894b44c4616c0ca3622a555adf404c (diff)
downloadopenbsd-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.h11
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. */
316typedef struct crypto_threadid_st { 316typedef struct crypto_threadid_st CRYPTO_THREADID;
317 void *ptr;
318 unsigned long val;
319} CRYPTO_THREADID;
320void CRYPTO_THREADID_current(CRYPTO_THREADID *id);
321int CRYPTO_THREADID_cmp(const CRYPTO_THREADID *a, const CRYPTO_THREADID *b);
322void CRYPTO_THREADID_cpy(CRYPTO_THREADID *dest, const CRYPTO_THREADID *src);
323unsigned 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 */