29 |
|
|
30 |
|
|
31 |
int |
int |
32 |
mysql_auth_sql_by_name (void *return_data, void *key, |
mysql_auth_sql_by_name (struct mu_auth_data **return_data, void *key, |
33 |
void *func_data ARG_UNUSED, |
void *func_data ARG_UNUSED, |
34 |
void *call_data ARG_UNUSED) |
void *call_data ARG_UNUSED) |
35 |
{ |
{ |
104 |
} |
} |
105 |
|
|
106 |
if (mailbox_name) |
if (mailbox_name) |
107 |
rc = mu_auth_data_alloc ((struct mu_auth_data **) return_data, |
rc = mu_auth_data_alloc (return_data, |
108 |
row[0], |
row[0], |
109 |
row[1], |
row[1], |
110 |
atoi (row[2]), |
atoi (row[2]), |
125 |
} |
} |
126 |
|
|
127 |
int |
int |
128 |
mysql_auth_sql_by_uid (void *return_data, void *key, |
mysql_auth_sql_by_uid (struct mu_auth_data **return_data, void *key, |
129 |
void *func_data ARG_UNUSED, |
void *func_data ARG_UNUSED, |
130 |
void *call_data ARG_UNUSED) |
void *call_data ARG_UNUSED) |
131 |
{ |
{ |
202 |
} |
} |
203 |
|
|
204 |
if (mailbox_name) |
if (mailbox_name) |
205 |
rc = mu_auth_data_alloc ((struct mu_auth_data **) return_data, |
rc = mu_auth_data_alloc (return_data, |
206 |
row[0], |
row[0], |
207 |
row[1], |
row[1], |
208 |
atoi (row[2]), |
atoi (row[2]), |
223 |
} |
} |
224 |
|
|
225 |
int |
int |
226 |
mysql_sql_authenticate (void *return_data ARG_UNUSED, void *key, |
mysql_sql_authenticate (struct mu_auth_data **return_data ARG_UNUSED, |
227 |
|
void *key, |
228 |
void *func_data ARG_UNUSED, void *call_data) |
void *func_data ARG_UNUSED, void *call_data) |
229 |
{ |
{ |
230 |
struct mu_auth_data *auth_data = key; |
struct mu_auth_data *auth_data = key; |