Implement SMTP AUTH (via GSASL).
* configure.ac (MU_COND_GSASL): New cond. * include/mailutils/smtp.h (MU_SMTP_PARAM_DOMAIN) (MU_SMTP_PARAM_USERNAME, MU_SMTP_PARAM_PASSWORD) (MU_SMTP_PARAM_SERVICE, MU_SMTP_PARAM_REALM) (MU_SMTP_PARAM_HOST, MU_SMTP_MAX_PARAM): New constants. (mu_smtp_set_domain, mu_smtp_get_param): Remove. (mu_smtp_set_param, mu_smtp_get_param): New prototypes. (mu_smtp_auth, mu_smtp_add_auth_mech) (mu_smtp_add_auth_mech_list, mu_smtp_mech_select): New prototypes. * include/mailutils/sys/smtp.h (_mu_smtp) <domain>: Remove. (_mu_smtp) <authimpl, param, authmech>: New members. (_mu_smtp_gsasl_auth, _mu_smtp_mech_impl): New prototypes. * libproto/mailer/Makefile.am [MU_COND_GSASL]: Define SMTP_GSASL. (libmu_mailer_la_SOURCES): Add new sources. * libproto/mailer/smtp_domain.c: Remove. * libproto/mailer/smtp_param.c: New file. * libproto/mailer/smtp_mech.c: New file. * libproto/mailer/smtp_auth.c: New file. * libproto/mailer/smtp_gsasl.c: New file. * libproto/mailer/smtp_create.c (mu_smtp_destroy): Free new members of struct _mu_smtp. * libproto/mailer/smtp_ehlo.c (mu_smtp_ehlo): Use param[MU_SMTP_PARAM_DOMAIN] instead of domain. * testsuite/smtpsend.c: Handle SMTP AUTH. * libmu_auth/gsasl.c (mu_gsasl_stream_create): Bugfix. * libmailutils/xscript-stream.c (_xscript_ctl) <MU_IOCTL_SWAP_STREAM>: If instream!=outstream, combine them first into an iostream.
Showing
15 changed files
with
681 additions
and
36 deletions
libproto/mailer/smtp_auth.c
0 → 100644
libproto/mailer/smtp_gsasl.c
0 → 100644
libproto/mailer/smtp_mech.c
0 → 100644
-
Please register or sign in to post a comment