summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-10-16 14:50:00 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-10-16 14:50:00 +0000
commit0ed5c491cdab5916aa52fbfe22d7ecb5f230ac4d (patch)
tree2226b6c1b1cea093a38188539fcb95bf722582d5
parentc565bb56970c41f229dd1b6305c7b4b065956172 (diff)
downloadmailutils-0ed5c491cdab5916aa52fbfe22d7ecb5f230ac4d.tar.gz
mailutils-0ed5c491cdab5916aa52fbfe22d7ecb5f230ac4d.tar.bz2
(enum mu_auth_key_type): New data type.
(mu_get_auth): New function.
-rw-r--r--include/mailutils/mu_auth.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/mailutils/mu_auth.h b/include/mailutils/mu_auth.h
index 21e16f00f..5e18fea30 100644
--- a/include/mailutils/mu_auth.h
+++ b/include/mailutils/mu_auth.h
@@ -21,7 +21,8 @@
#include <mailutils/types.h>
-struct mu_auth_data {
+struct mu_auth_data
+{
/* These are from struct passwd */
char *name; /* user name */
char *passwd; /* user password */
@@ -40,7 +41,8 @@ typedef int (*mu_auth_fp) (struct mu_auth_data **data,
void *func_data,
void *call_data);
-struct mu_auth_module {
+struct mu_auth_module
+{
char *name;
struct argp *argp;
mu_auth_fp authenticate;
@@ -51,9 +53,20 @@ struct mu_auth_module {
void *auth_by_uid_data;
};
+enum mu_auth_key_type
+ {
+ mu_auth_key_name,
+ mu_auth_key_uid
+ };
+
+
extern int mu_auth_runlist (mu_list_t flist,
struct mu_auth_data **return_data,
const void *key, void *data);
+
+extern int mu_get_auth (struct mu_auth_data **auth, enum mu_auth_key_type type,
+ const void *key);
+
extern struct mu_auth_data *
mu_get_auth_by_name (const char *username);

Return to:

Send suggestions and report system problems to the System administrator.