summaryrefslogtreecommitdiffhomepage
path: root/agentfwd.h
diff options
context:
space:
mode:
authorAndrey Mazo <ahippo@yandex.ru>2012-03-26 16:17:16 +0400
committerAndrey Mazo <ahippo@yandex.ru>2012-03-26 16:17:16 +0400
commitd4a14fcb3dde43e21b0bdf1e244d3b8f7aa488de (patch)
tree6f853fdf1f5ebf7d5c4d72b1aff8d50ae27611c7 /agentfwd.h
parent49b79fa02d93a507df6caf93d3f4545ab057bea5 (diff)
Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.
Got rid of ENABLE_AGENTFWD macro.
Diffstat (limited to 'agentfwd.h')
-rw-r--r--agentfwd.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/agentfwd.h b/agentfwd.h
index e982460..e4a831c 100644
--- a/agentfwd.h
+++ b/agentfwd.h
@@ -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 @@ void cli_setup_agent(struct Channel *channel);
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_ */