Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/agentfwd.h Mon Apr 09 20:35:13 2012 +0800 +++ b/agentfwd.h Mon Mar 26 16:17:16 2012 +0400 @@ -30,22 +30,19 @@ #include "auth.h" #include "list.h" +#ifdef ENABLE_CLI_AGENTFWD + /* An agent reply can be reasonably large, as it can * contain a list of all public keys held by the agent. * 10000 is arbitrary */ #define MAX_AGENT_REPLY 10000 -int svr_agentreq(struct ChanSess * chansess); -void svr_agentcleanup(struct ChanSess * chansess); -void svr_agentset(struct ChanSess *chansess); - /* client functions */ void cli_load_agent_keys(m_list * ret_list); void agent_buf_sign(buffer *sigblob, sign_key *key, const unsigned char *data, unsigned int len); void cli_setup_agent(struct Channel *channel); - #ifdef __hpux #define seteuid(a) setresuid(-1, (a), -1) #define setegid(a) setresgid(-1, (a), -1) @@ -53,4 +50,14 @@ extern const struct ChanType cli_chan_agent; +#endif /* ENABLE_CLI_AGENTFWD */ + +#ifdef ENABLE_SVR_AGENTFWD + +int svr_agentreq(struct ChanSess * chansess); +void svr_agentcleanup(struct ChanSess * chansess); +void svr_agentset(struct ChanSess *chansess); + +#endif /* ENABLE_SVR_AGENTFWD */ + #endif /* _AGENTFWD_H_ */