Next: , Previous: Initializing libmuauth, Up: libmuauth


3.2.3 Module Creation and Destruction

— Function: int mu_auth_data_alloc (struct mu_auth_data **ptr, const char *name, const char *passwd, uid_t uid, gid_t gid, const char *gecos, const char *dir, const char *shell, const char *mailbox, int change_uid)

Create a mu_auth_data structure and initialize it with the given values. Returns 0 on success and 1 otherwise.

— Function: void mu_auth_data_free (struct mu_auth_data *ptr)

Free the mu_auth_data structure allocated by a call to mu_auth_data_alloc().

— Function: void mu_auth_register_module (struct mu_auth_module *mod)

Register the module defined by the mod argument.