Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the old kludge of using malloc() if alloca() is missing.
[rsync/rsync.git]
/
authenticate.c
diff --git
a/authenticate.c
b/authenticate.c
index
d2b74cd
..
7d44da6
100644
(file)
--- a/
authenticate.c
+++ b/
authenticate.c
@@
-203,7
+203,7
@@
static void generate_hash(char *in, char *challenge, char *out)
otherwise return username
*/
otherwise return username
*/
-char *auth_server(int f
d
, int module, char *addr, char *leader)
+char *auth_server(int f
_in, int f_out
, int module, char *addr, char *leader)
{
char *users = lp_auth_users(module);
char challenge[16];
{
char *users = lp_auth_users(module);
char challenge[16];
@@
-222,9
+222,9
@@
char *auth_server(int fd, int module, char *addr, char *leader)
base64_encode(challenge, 16, b64_challenge);
base64_encode(challenge, 16, b64_challenge);
- io_printf(f
d,
"%s%s\n", leader, b64_challenge);
+ io_printf(f
_out,
"%s%s\n", leader, b64_challenge);
- if (!read_line(f
d
, line, sizeof(line)-1)) {
+ if (!read_line(f
_in
, line, sizeof(line)-1)) {
return NULL;
}
return NULL;
}