Mercurial > dropbear
comparison agentfwd.h @ 547:cf376c696dfc agent-client
Make it compile, update for changes in channel structure.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 01 Jul 2009 04:53:17 +0000 |
parents | ca7e76d981d9 |
children | 61c3513825b0 |
comparison
equal
deleted
inserted
replaced
546:568638be7203 | 547:cf376c696dfc |
---|---|
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | 22 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23 * SOFTWARE. */ | 23 * SOFTWARE. */ |
24 #ifndef _AGENTFWD_H_ | 24 #ifndef _AGENTFWD_H_ |
25 #define _AGENTFWD_H_ | 25 #define _AGENTFWD_H_ |
26 #ifndef DISABLE_AGENTFWD | |
27 | 26 |
28 #include "includes.h" | 27 #include "includes.h" |
29 #include "chansession.h" | 28 #include "chansession.h" |
30 #include "channel.h" | 29 #include "channel.h" |
30 #include "auth.h" | |
31 | 31 |
32 /* An agent reply can be reasonably large, as it can | 32 /* An agent reply can be reasonably large, as it can |
33 * contain a list of all public keys held by the agent. | 33 * contain a list of all public keys held by the agent. |
34 * 10000 is arbitrary */ | 34 * 10000 is arbitrary */ |
35 #define MAX_AGENT_REPLY 10000 | 35 #define MAX_AGENT_REPLY 10000 |
37 int agentreq(struct ChanSess * chansess); | 37 int agentreq(struct ChanSess * chansess); |
38 void agentsetauth(struct ChanSess *chansess); | 38 void agentsetauth(struct ChanSess *chansess); |
39 void agentcleanup(struct ChanSess * chansess); | 39 void agentcleanup(struct ChanSess * chansess); |
40 void agentset(struct ChanSess *chansess); | 40 void agentset(struct ChanSess *chansess); |
41 | 41 |
42 SignKeyList * load_agent_keys(); | 42 void load_agent_keys(); |
43 | 43 |
44 #ifdef __hpux | 44 #ifdef __hpux |
45 #define seteuid(a) setresuid(-1, (a), -1) | 45 #define seteuid(a) setresuid(-1, (a), -1) |
46 #define setegid(a) setresgid(-1, (a), -1) | 46 #define setegid(a) setresgid(-1, (a), -1) |
47 #endif | 47 #endif |
48 | 48 |
49 extern const struct ChanSess chan_cli_agent; | 49 extern const struct ChanType cli_chan_agent; |
50 | 50 |
51 #endif /* DROPBEAR_AGENTFWD */ | |
52 #endif /* _AGENTFWD_H_ */ | 51 #endif /* _AGENTFWD_H_ */ |