From 89c9c3b857b5d68d835c3c3d371dc74a26f568fd Mon Sep 17 00:00:00 2001 From: erbsland-dev Date: Thu, 20 Jun 2024 20:44:00 +0200 Subject: [PATCH] Extend `mask` of `ssl_method_st` to 64-bit Fixes #23260: The bit count for `SSL_OP_*` flags has exceeded 32 bits, making it impossible to handle newer flags and protocol extensions with the existing 32-bit variables. This commit extends the `mask` field in the `ssl_method_st` structure to 64-bit, aligning them with the previously extended 64-bit `options` field. Reviewed-by: Neil Horman Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/24692) --- ssl/ssl_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index 0d979ae7237..daab329133c 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -419,7 +419,7 @@ struct ssl_cipher_st { struct ssl_method_st { int version; unsigned flags; - unsigned long mask; + uint64_t mask; SSL *(*ssl_new) (SSL_CTX *ctx); void (*ssl_free) (SSL *s); int (*ssl_reset) (SSL *s); -- 2.47.3