]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix max index define that was not updated
authorSimo Sorce <simo@redhat.com>
Thu, 8 Jan 2026 19:04:37 +0000 (14:04 -0500)
committerNorbert Pocs <norbertp@openssl.org>
Mon, 12 Jan 2026 10:47:48 +0000 (11:47 +0100)
In PR #29145 a new OSSL_LIB_CTX_SSL_CONF_IMODULE was added, but
the OSSL_LIB_CTX_MAX_INDEXES value was left behind.

This should probably be converted to an enum, but I'll leave that work
to some other brave soul.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29581)

include/internal/cryptlib.h

index 545696b715290a66b4df51c8f434a75c90fca25e..6b827dd00801544cf51cb0051d53d5b6270f99ea 100644 (file)
@@ -117,8 +117,8 @@ typedef struct ossl_ex_data_global_st {
 #define OSSL_LIB_CTX_DECODER_CACHE_INDEX 20
 #define OSSL_LIB_CTX_COMP_METHODS 21
 #define OSSL_LIB_CTX_INDICATOR_CB_INDEX 22
-#define OSSL_LIB_CTX_MAX_INDEXES 22
 #define OSSL_LIB_CTX_SSL_CONF_IMODULE 23
+#define OSSL_LIB_CTX_MAX_INDEXES 23
 
 OSSL_LIB_CTX *ossl_lib_ctx_get_concrete(OSSL_LIB_CTX *ctx);
 int ossl_lib_ctx_is_default(OSSL_LIB_CTX *ctx);