diff options
author | Tomas Mraz <tomas@openssl.org> | 2024-05-01 18:42:57 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-09 09:20:58 +0200 |
commit | a0084946f5fae86170d0169bdf1e5cc121531c22 (patch) | |
tree | 487c9bc231ddff612d52feb2af275690e69a3a72 /crypto | |
parent | 21819f78b057c254254646a7854bfad0cd40ed83 (diff) | |
download | openssl-a0084946f5fae86170d0169bdf1e5cc121531c22.tar.gz |
Do not use bit fields for context data flag variables
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24275)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/context.c b/crypto/context.c index fa46abab6b..2fbb2fbf60 100644 --- a/crypto/context.c +++ b/crypto/context.c @@ -49,8 +49,8 @@ struct ossl_lib_ctx_st { void *fips_prov; #endif - unsigned int ischild:1; - unsigned int conf_diagnostics:1; + int ischild; + int conf_diagnostics; }; int ossl_lib_ctx_write_lock(OSSL_LIB_CTX *ctx) @@ -676,10 +676,10 @@ int OSSL_LIB_CTX_get_conf_diagnostics(OSSL_LIB_CTX *libctx) return libctx->conf_diagnostics; } -void OSSL_LIB_CTX_set_conf_diagnostics(OSSL_LIB_CTX *libctx, unsigned int value) +void OSSL_LIB_CTX_set_conf_diagnostics(OSSL_LIB_CTX *libctx, int value) { libctx = ossl_lib_ctx_get_concrete(libctx); if (libctx == NULL) return; - libctx->conf_diagnostics = value != 0; + libctx->conf_diagnostics = value; } |