* include/mailutils/secret.h: New file.
* include/mailutils/types.hin (mu_secret_t): New type. * include/mailutils/auth.h (mu_ticket_destroy): Remove 2nd arg (owner). (mu_ticket_ref, mu_ticket_unref): New functions. (mu_ticket_set_destroy): New function. (mu_ticket_set_pop): Remove. (mu_ticket_get_cred, mu_ticket_set_get_cred): New functions. (mu_ticket_get_data): Return data pointer. (mu_ticket_set_secret, mu_ticket_set_plain): New functions. (mu_wicket_create): Remove 2nd arg. (mu_wicket_set_filename, mu_wicket_get_filename): Remove. (mu_wicket_set_ticket): Remove. (mu_wicket_get_ticket): Change proto. (mu_wicket_set_destroy, mu_wicket_set_data) (mu_wicket_get_data, mu_wicket_set_get_ticket): New functions. (mu_file_wicket_create): New function. * include/mailutils/mailutils.h: Include secret.h [MU_COMPAT]: Remove. * include/mailutils/url.h (mu_url_sget_passwd, mu_url_aget_passwd) (mu_url_get_passwd) (mu_url_get_secret): New function. * libproto/include/auth0.h: Rewrite. * libproto/include/imap0.h (struct _f_imap): Replace passwd with mu_secret_t secret. * libproto/include/url0.h (struct _mu_url): Replace passwd with mu_secret_t secret. (_get_passwd): Replace with _get_secret * mailbox/secret.c: New function. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add secret.c. * mailbox/ticket.c: Rewrite from scratch. * mailbox/wicket.c: Rewrite from scratch. * libproto/imap/folder.c: Rewrite using mu_secret_t. * libproto/pop/mbox.c: Rewrite using mu_secret_t. * libproto/mailer/prog.c, libproto/mailer/sendmail.c, mailbox/auth.c, mailbox/url.c, movemail/movemail.c: Reflect changes to ticket/wicket system. * mailbox/mbx_default.c: Use new mu_wicket_t functions. * python/libmu_py/auth.c (api_wicket_get_filename) (api_wicket_set_filename): Remove. Not applicable any more. * python/libmu_py/url.c (api_url_get_passwd): Temporarly commented out. * include/mailutils/Makefile.am (pkginclude_HEADERS): Add secret.h. * examples/url-parse.c: Use mu_secret_t calls. * imap4d/namespace.c: Minor changes. * libmu_auth/pam.c: Likewise.
Showing
27 changed files
with
468 additions
and
203 deletions
include/mailutils/secret.h
0 → 100644
mailbox/secret.c
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment