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 <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24692)
This commit is contained in:
erbsland-dev 2024-06-20 20:44:00 +02:00 committed by Neil Horman
parent b23cd39f0a
commit 89c9c3b857

View File

@ -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);