Mercurial > dropbear
comparison agentfwd.h @ 551:c3f2ec71e3d4 agent-client
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 06 Jul 2009 12:59:13 +0000 |
parents | 61c3513825b0 |
children | 52d7301e46bd |
comparison
equal
deleted
inserted
replaced
550:61c3513825b0 | 551:c3f2ec71e3d4 |
---|---|
26 | 26 |
27 #include "includes.h" | 27 #include "includes.h" |
28 #include "chansession.h" | 28 #include "chansession.h" |
29 #include "channel.h" | 29 #include "channel.h" |
30 #include "auth.h" | 30 #include "auth.h" |
31 #include "list.h" | |
31 | 32 |
32 /* An agent reply can be reasonably large, as it can | 33 /* An agent reply can be reasonably large, as it can |
33 * contain a list of all public keys held by the agent. | 34 * contain a list of all public keys held by the agent. |
34 * 10000 is arbitrary */ | 35 * 10000 is arbitrary */ |
35 #define MAX_AGENT_REPLY 10000 | 36 #define MAX_AGENT_REPLY 10000 |
36 | 37 |
37 int agentreq(struct ChanSess * chansess); | 38 int agentreq(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 void load_agent_keys(struct SignKeyList * ret_list); | 42 /* client functions */ |
43 void load_agent_keys(m_list * ret_list); | |
44 void agent_buf_sign(buffer *sigblob, sign_key *key, | |
45 const unsigned char *data, unsigned int len); | |
43 | 46 |
44 #ifdef __hpux | 47 #ifdef __hpux |
45 #define seteuid(a) setresuid(-1, (a), -1) | 48 #define seteuid(a) setresuid(-1, (a), -1) |
46 #define setegid(a) setresgid(-1, (a), -1) | 49 #define setegid(a) setresgid(-1, (a), -1) |
47 #endif | 50 #endif |