Fix TLS support, improve GOCS subsystem.
* include/mailutils/gocs.h (gocs_init_fp): Rename to mu_gocs_init_fp. Change signature. (mu_gocs_mailbox_init, mu_gocs_locking_init, mu_gocs_source_email_init) (mu_gocs_mailer_init, mu_gocs_logging_init) (mu_gocs_debug_init): Fix prototypes. * include/mailutils/gsasl.h (mu_gsasl_module_init): Update prototype. * include/mailutils/libsieve.h (mu_sieve_module_init): Update prototype. * include/mailutils/mu_auth.h (struct mu_auth_module.init): Update type to mu_gocs_init_fp. * include/mailutils/radius.h (mu_radius_module_init): Update prototype. * include/mailutils/tls.h (struct mu_tls_module_config.client_enable): Replace with .enable. It affects entire TLS subsystem, not only client part. (mu_tls_module_init): Update prototype. * include/mailutils/types.hin (mu_gocs_op): New enum. * mailbox/gocs.c (mu_gocs_dummy, mu_gocs_mailbox_init) (mu_gocs_locking_init, mu_gocs_source_email_init) (mu_gocs_mailer_init, mu_gocs_logging_init) (mu_gocs_debug_init): Take two arguments. (mu_gocs_flush): After running set stage, call all init callbacks with mu_gocs_op_flush. * auth/tls.c (mu_tls_module_config): Initialize .enable to 1. (mu_tls_module_init): Rewrite using new prototype. Use mu_gocs_op_flush to initialize the library. (mu_init_tls_libs): Initialize the library only if mu_tls_module_config.enable is set. * auth/gsasl.c (mu_gsasl_module_init): Update. * auth/ldap.c (mu_ldap_module_init): Update. * auth/pam.c (mu_pam_module_init): Update. * auth/radius.c (mu_radius_module_init): Update. * auth/sql.c (mu_sql_module_init): Update. * auth/virtual.c (mu_virtual_module_init): Update. * libcfg/tls.c (mu_tls_param): Update. * libsieve/conf.c (mu_sieve_module_init): Update. * doc/texinfo/programs.texi: Update.
Showing
18 changed files
with
88 additions
and
67 deletions
-
Please register or sign in to post a comment