Node:Module Creation and Destruction, Next:, Previous:Initializing the libmuauth, Up:libmuauth



Module Creation and Destruction

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) Function

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

void mu_auth_data_free (struct mu_auth_data *ptr) Function

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

void mu_auth_register_module (struct mu_auth_module *mod) Function

Register the module defined by the mod argument.