Mercurial > dropbear
comparison cli-agentfwd.c @ 857:c19acba28590
use oldstyle comments
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 14 Nov 2013 22:03:30 +0800 |
parents | ac2158e3e403 |
children | 220f55d540ae |
comparison
equal
deleted
inserted
replaced
856:f56c41030c15 | 857:c19acba28590 |
---|---|
71 } | 71 } |
72 | 72 |
73 return fd; | 73 return fd; |
74 } | 74 } |
75 | 75 |
76 // handle a request for a connection to the locally running ssh-agent | 76 /* handle a request for a connection to the locally running ssh-agent |
77 // or forward. | 77 or forward. */ |
78 static int new_agent_chan(struct Channel * channel) { | 78 static int new_agent_chan(struct Channel * channel) { |
79 | 79 |
80 int fd = -1; | 80 int fd = -1; |
81 | 81 |
82 if (!cli_opts.agent_fwd) | 82 if (!cli_opts.agent_fwd) |
92 ses.maxfd = MAX(ses.maxfd, fd); | 92 ses.maxfd = MAX(ses.maxfd, fd); |
93 | 93 |
94 channel->readfd = fd; | 94 channel->readfd = fd; |
95 channel->writefd = fd; | 95 channel->writefd = fd; |
96 | 96 |
97 // success | |
98 return 0; | 97 return 0; |
99 } | 98 } |
100 | 99 |
101 /* Sends a request to the agent, returning a newly allocated buffer | 100 /* Sends a request to the agent, returning a newly allocated buffer |
102 * with the response */ | 101 * with the response */ |