comparison agentfwd.h @ 560:52d7301e46bd agent-client

Agent forwarding works
author Matt Johnston <matt@ucc.asn.au>
date Thu, 30 Jul 2009 15:14:33 +0000
parents c3f2ec71e3d4
children 405418f7dc5e
comparison
equal deleted inserted replaced
559:7f66b8e40f2d 560:52d7301e46bd
33 /* An agent reply can be reasonably large, as it can 33 /* An agent reply can be reasonably large, as it can
34 * contain a list of all public keys held by the agent. 34 * contain a list of all public keys held by the agent.
35 * 10000 is arbitrary */ 35 * 10000 is arbitrary */
36 #define MAX_AGENT_REPLY 10000 36 #define MAX_AGENT_REPLY 10000
37 37
38 int agentreq(struct ChanSess * chansess); 38 int svr_agentreq(struct ChanSess * chansess);
39 void agentcleanup(struct ChanSess * chansess); 39 void svr_agentcleanup(struct ChanSess * chansess);
40 void agentset(struct ChanSess *chansess); 40 void svr_agentset(struct ChanSess *chansess);
41 41
42 /* client functions */ 42 /* client functions */
43 void load_agent_keys(m_list * ret_list); 43 void cli_load_agent_keys(m_list * ret_list);
44 void agent_buf_sign(buffer *sigblob, sign_key *key, 44 void agent_buf_sign(buffer *sigblob, sign_key *key,
45 const unsigned char *data, unsigned int len); 45 const unsigned char *data, unsigned int len);
46 void cli_setup_agent(struct Channel *channel);
47
46 48
47 #ifdef __hpux 49 #ifdef __hpux
48 #define seteuid(a) setresuid(-1, (a), -1) 50 #define seteuid(a) setresuid(-1, (a), -1)
49 #define setegid(a) setresgid(-1, (a), -1) 51 #define setegid(a) setresgid(-1, (a), -1)
50 #endif 52 #endif