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/err | |
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/err')
-rw-r--r-- | src/lib/libcrypto/err/err.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/err/err_prn.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index acbcda76cc..a7b13a5404 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/lib/libcrypto/err/err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: err.c,v 1.59 2024/03/02 10:30:48 tb Exp $ */ | 1 | /* $OpenBSD: err.c,v 1.60 2024/03/02 11:37:13 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -122,6 +122,8 @@ | |||
122 | #include <openssl/err.h> | 122 | #include <openssl/err.h> |
123 | #include <openssl/lhash.h> | 123 | #include <openssl/lhash.h> |
124 | 124 | ||
125 | #include "crypto_local.h" | ||
126 | |||
125 | DECLARE_LHASH_OF(ERR_STRING_DATA); | 127 | DECLARE_LHASH_OF(ERR_STRING_DATA); |
126 | DECLARE_LHASH_OF(ERR_STATE); | 128 | DECLARE_LHASH_OF(ERR_STATE); |
127 | 129 | ||
diff --git a/src/lib/libcrypto/err/err_prn.c b/src/lib/libcrypto/err/err_prn.c index 61f4dad574..fb6e19c54c 100644 --- a/src/lib/libcrypto/err/err_prn.c +++ b/src/lib/libcrypto/err/err_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: err_prn.c,v 1.22 2024/01/10 14:23:37 tb Exp $ */ | 1 | /* $OpenBSD: err_prn.c,v 1.23 2024/03/02 11:37:13 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -66,6 +66,7 @@ | |||
66 | #include <openssl/lhash.h> | 66 | #include <openssl/lhash.h> |
67 | 67 | ||
68 | #include "bio_local.h" | 68 | #include "bio_local.h" |
69 | #include "crypto_local.h" | ||
69 | 70 | ||
70 | void | 71 | void |
71 | ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) | 72 | ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) |