(struct mu_auth_data.quota): New field
(mu_auth_data_destroy): New function
Showing
1 changed file
with
14 additions
and
2 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 2002, 2005 Free Software Foundation, Inc. | 2 | Copyright (C) 2002, 2005, 2007 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -21,6 +21,16 @@ | ... | @@ -21,6 +21,16 @@ |
21 | 21 | ||
22 | #include <mailutils/types.h> | 22 | #include <mailutils/types.h> |
23 | 23 | ||
24 | #define MU_AUTH_NAME "name" | ||
25 | #define MU_AUTH_PASSWD "passwd" | ||
26 | #define MU_AUTH_UID "uid" | ||
27 | #define MU_AUTH_GID "gid" | ||
28 | #define MU_AUTH_GECOS "gecos" | ||
29 | #define MU_AUTH_DIR "dir" | ||
30 | #define MU_AUTH_SHELL "shell" | ||
31 | #define MU_AUTH_MAILBOX "mailbox" | ||
32 | #define MU_AUTH_QUOTA "quota" | ||
33 | |||
24 | struct mu_auth_data | 34 | struct mu_auth_data |
25 | { | 35 | { |
26 | /* These are from struct passwd */ | 36 | /* These are from struct passwd */ |
... | @@ -33,6 +43,8 @@ struct mu_auth_data | ... | @@ -33,6 +43,8 @@ struct mu_auth_data |
33 | char *shell; /* shell program */ | 43 | char *shell; /* shell program */ |
34 | /* */ | 44 | /* */ |
35 | char *mailbox; | 45 | char *mailbox; |
46 | mu_off_t quota; | ||
47 | |||
36 | int change_uid; | 48 | int change_uid; |
37 | }; | 49 | }; |
38 | 50 | ||
... | @@ -59,7 +71,6 @@ enum mu_auth_key_type | ... | @@ -59,7 +71,6 @@ enum mu_auth_key_type |
59 | mu_auth_key_uid | 71 | mu_auth_key_uid |
60 | }; | 72 | }; |
61 | 73 | ||
62 | |||
63 | extern int mu_auth_runlist (mu_list_t flist, | 74 | extern int mu_auth_runlist (mu_list_t flist, |
64 | struct mu_auth_data **return_data, | 75 | struct mu_auth_data **return_data, |
65 | const void *key, void *data); | 76 | const void *key, void *data); |
... | @@ -99,6 +110,7 @@ extern int mu_auth_data_alloc (struct mu_auth_data **ptr, | ... | @@ -99,6 +110,7 @@ extern int mu_auth_data_alloc (struct mu_auth_data **ptr, |
99 | const char *mailbox, | 110 | const char *mailbox, |
100 | int change_uid); | 111 | int change_uid); |
101 | extern void mu_auth_data_free (struct mu_auth_data *ptr); | 112 | extern void mu_auth_data_free (struct mu_auth_data *ptr); |
113 | extern void mu_auth_data_destroy (struct mu_auth_data **ptr); | ||
102 | 114 | ||
103 | 115 | ||
104 | extern struct mu_auth_module mu_auth_system_module; | 116 | extern struct mu_auth_module mu_auth_system_module; | ... | ... |
-
Please register or sign in to post a comment