[exim-cvs] Static module inits for raduis and pam

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Static module inits for raduis and pam
Gitweb: https://git.exim.org/exim.git/commitdiff/8751ba47a1d1bca1d2e90392ac98a7f562acc4a0
Commit:     8751ba47a1d1bca1d2e90392ac98a7f562acc4a0
Parent:     7fba0a36b45d510611efe21df3523e89a9601ffd
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sat Sep 7 21:53:38 2024 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sat Sep 7 21:53:38 2024 +0100


    Static module inits for raduis and pam
---
 src/src/drtables.c        | 15 +++++++++++++++
 src/src/miscmods/radius.c |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)


diff --git a/src/src/drtables.c b/src/src/drtables.c
index 32765aedc..b9d4650f1 100644
--- a/src/src/drtables.c
+++ b/src/src/drtables.c
@@ -738,6 +738,9 @@ DEBUG(D_lookup) debug_printf("Loaded %d lookup modules\n", countmodules);
}


+/* Add module info struct to the modules list for those that are
+built as static */
+
#if !defined(DISABLE_DKIM) && (!defined(SUPPORT_DKIM) || SUPPORT_DKIM!=2)
extern misc_module_info dkim_module_info;
#endif
@@ -750,6 +753,12 @@ extern misc_module_info spf_module_info;
#if defined(EXPERIMENTAL_ARC) && (!defined(SUPPORT_ARC) || SUPPORT_ARC!=2)
extern misc_module_info arc_module_info;
#endif
+#if defined(RADIUS_CONFIG_FILE) && (!defined(SUPPORT_RADIUS) || SUPPORT_RADUIS!=2)
+extern misc_module_info radius_module_info;
+#endif
+#if defined(SUPPORT_PAM) && SUPPORT_PAM!=2
+extern misc_module_info pam_module_info;
+#endif

void
init_misc_mod_list(void)
@@ -771,6 +780,12 @@ onetime = TRUE;
#if defined(EXPERIMENTAL_ARC) && (!defined(SUPPORT_ARC) || SUPPORT_ARC!=2)
misc_mod_add(&arc_module_info);
#endif
+#if defined(RADIUS_CONFIG_FILE) && (!defined(SUPPORT_RADIUS) || SUPPORT_RADUIS!=2)
+ misc_mod_add(&radius_module_info);
+#endif
+#if defined(SUPPORT_PAM) && SUPPORT_PAM!=2
+ misc_mod_add(&pam_module_info);
+#endif
}


diff --git a/src/src/miscmods/radius.c b/src/src/miscmods/radius.c
index 61ca6ea3a..6a8d41cac 100644
--- a/src/src/miscmods/radius.c
+++ b/src/src/miscmods/radius.c
@@ -228,7 +228,7 @@ static void * rad_functions[] = {
   [RADIUS_AUTH_CALL] =    auth_call_radius,
 };


-misc_module_info rad_module_info =
+misc_module_info radius_module_info =
 {
   .name =        US"radius",
 # ifdef DYNLOOKUP


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/