Files
openssl/include/internal/threads_common.h
Randall S. Becker 2ddb767253 Rollup fixes for NonStop builds.
This change includes bss_sock.c to deal with introduction of EPROTO use.
Reroll of rsa_ossl.c changes made at 3.5 downward.
Build a workaround in timing_load_creds.c on NonStop for lack of rusage.
   This simulates getrusage() that is not available on NonStop.
Update bioprinttest.c to handle missing PTRxPRT definitions from inttypes.h.

Fixes: #29023

Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/29024)
2025-11-05 16:08:06 -05:00

36 lines
1.1 KiB
C

/*
* Copyright 2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
#ifndef _CRYPTO_THREADS_COMMON_H_
# define _CRYPTO_THREADS_COMMON_H_
typedef enum {
CRYPTO_THREAD_LOCAL_RCU_KEY = 0,
CRYPTO_THREAD_LOCAL_DRBG_PRIV_KEY,
CRYPTO_THREAD_LOCAL_DRBG_PUB_KEY,
CRYPTO_THREAD_LOCAL_ERR_KEY,
CRYPTO_THREAD_LOCAL_ASYNC_CTX_KEY,
CRYPTO_THREAD_LOCAL_ASYNC_POOL_KEY,
CRYPTO_THREAD_LOCAL_TEVENT_KEY,
CRYPTO_THREAD_LOCAL_TANDEM_ID_KEY,
CRYPTO_THREAD_LOCAL_FIPS_DEFERRED_KEY,
CRYPTO_THREAD_LOCAL_KEY_MAX
} CRYPTO_THREAD_LOCAL_KEY_ID;
#define CRYPTO_THREAD_NO_CONTEXT (void *)1
void *CRYPTO_THREAD_get_local_ex(CRYPTO_THREAD_LOCAL_KEY_ID id,
OSSL_LIB_CTX *ctx);
int CRYPTO_THREAD_set_local_ex(CRYPTO_THREAD_LOCAL_KEY_ID id,
OSSL_LIB_CTX *ctx, void *data);
void CRYPTO_THREAD_clean_local(void);
#endif