Fix TLS usage.
Remove --tls option. Make TLS stream open methods call mu_init_tls_libs. It is now not necessary to call this function explicitly, unless the application wishes to ensure TLS is initialized (e.g. pop3d or imap4d). * include/mailutils/libargp.h (mu_tls_cmdline): Remove. * libmu_argp/tls.c * libmu_argp/Makefile.am (libmu_argp_a_SOURCES): Remove tls.c * libmu_argp/cmdline.c (all_cmdline_capa): Remove tls.c * libmu_auth/tls.c [WITH_TLS] (mu_tls_module_config): Enable by default. (mu_check_tls_environment): Return 0 if TLS is disabled. (mu_init_tls_libs): Always call gnutls_global_init, otherwise any call to TLS library (especially, handshake) can produce a coredump. * libmu_cfg/tls.c: Fix description string for tls.enable. * mh/mh_init.c (mh_init): Remove call to mu_init_tls_libs, now unnecessary. * python/libmu_py/registrar.c: Likewise. * testsuite/smtpsend.c: Likewise.
Showing
10 changed files
with
18 additions
and
93 deletions
libmu_argp/tls.c
deleted
100644 → 0
-
Please register or sign in to post a comment