41 |
#include <mailutils/mu_auth.h> |
#include <mailutils/mu_auth.h> |
42 |
|
|
43 |
/* System database */ |
/* System database */ |
44 |
int |
static int |
45 |
mu_auth_system (void *return_data, struct passwd *pw) |
mu_auth_system (void *return_data, struct passwd *pw) |
46 |
{ |
{ |
47 |
char *mailbox_name; |
char *mailbox_name; |
83 |
return mu_auth_system (return_data, getpwnam (key)); |
return mu_auth_system (return_data, getpwnam (key)); |
84 |
} |
} |
85 |
|
|
86 |
int |
static int |
87 |
mu_auth_system_by_uid (void *return_data, void *key, |
mu_auth_system_by_uid (void *return_data, void *key, |
88 |
void *unused_func_data, void *unused_call_data) |
void *unused_func_data, void *unused_call_data) |
89 |
{ |
{ |
95 |
return mu_auth_system (return_data, getpwuid (*(uid_t*) key)); |
return mu_auth_system (return_data, getpwuid (*(uid_t*) key)); |
96 |
} |
} |
97 |
|
|
98 |
int |
static int |
99 |
mu_authenticate_generic (void *ignored_return_data, |
mu_authenticate_generic (void *ignored_return_data, |
100 |
void *key, |
void *key, |
101 |
void *ignored_func_data, |
void *ignored_func_data, |
110 |
} |
} |
111 |
|
|
112 |
/* Called only if generic fails */ |
/* Called only if generic fails */ |
113 |
int |
static int |
114 |
mu_authenticate_system (void *ignored_return_data, |
mu_authenticate_system (void *ignored_return_data, |
115 |
void *key, |
void *key, |
116 |
void *ignored_func_data, |
void *ignored_func_data, |