comparison agentfwd.h @ 668:405418f7dc5e

Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD. Got rid of ENABLE_AGENTFWD macro.
author Andrey Mazo <ahippo@yandex.ru>
date Mon, 26 Mar 2012 16:17:16 +0400
parents 52d7301e46bd
children f336d232fc63
comparison
equal deleted inserted replaced
667:fc7ae88e63b3 668:405418f7dc5e
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 #include "list.h"
32 32
33 #ifdef ENABLE_CLI_AGENTFWD
34
33 /* An agent reply can be reasonably large, as it can 35 /* An agent reply can be reasonably large, as it can
34 * contain a list of all public keys held by the agent. 36 * contain a list of all public keys held by the agent.
35 * 10000 is arbitrary */ 37 * 10000 is arbitrary */
36 #define MAX_AGENT_REPLY 10000 38 #define MAX_AGENT_REPLY 10000
37
38 int svr_agentreq(struct ChanSess * chansess);
39 void svr_agentcleanup(struct ChanSess * chansess);
40 void svr_agentset(struct ChanSess *chansess);
41 39
42 /* client functions */ 40 /* client functions */
43 void cli_load_agent_keys(m_list * ret_list); 41 void cli_load_agent_keys(m_list * ret_list);
44 void agent_buf_sign(buffer *sigblob, sign_key *key, 42 void agent_buf_sign(buffer *sigblob, sign_key *key,
45 const unsigned char *data, unsigned int len); 43 const unsigned char *data, unsigned int len);
46 void cli_setup_agent(struct Channel *channel); 44 void cli_setup_agent(struct Channel *channel);
47
48 45
49 #ifdef __hpux 46 #ifdef __hpux
50 #define seteuid(a) setresuid(-1, (a), -1) 47 #define seteuid(a) setresuid(-1, (a), -1)
51 #define setegid(a) setresgid(-1, (a), -1) 48 #define setegid(a) setresgid(-1, (a), -1)
52 #endif 49 #endif
53 50
54 extern const struct ChanType cli_chan_agent; 51 extern const struct ChanType cli_chan_agent;
55 52
53 #endif /* ENABLE_CLI_AGENTFWD */
54
55 #ifdef ENABLE_SVR_AGENTFWD
56
57 int svr_agentreq(struct ChanSess * chansess);
58 void svr_agentcleanup(struct ChanSess * chansess);
59 void svr_agentset(struct ChanSess *chansess);
60
61 #endif /* ENABLE_SVR_AGENTFWD */
62
56 #endif /* _AGENTFWD_H_ */ 63 #endif /* _AGENTFWD_H_ */