summaryrefslogtreecommitdiffhomepage
path: root/svr-chansession.c
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 /svr-chansession.c
parent49b79fa02d93a507df6caf93d3f4545ab057bea5 (diff)
Fixed compilation with unset ENABLE_{SVR,CLI}_AGENTFWD.
Got rid of ENABLE_AGENTFWD macro.
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index f31d9f0..b99bf26 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -243,7 +243,7 @@ static int newchansess(struct Channel *channel) {
chansess->x11authcookie = NULL;
#endif
-#ifdef ENABLE_AGENTFWD
+#ifdef ENABLE_SVR_AGENTFWD
chansess->agentlistener = NULL;
chansess->agentfile = NULL;
chansess->agentdir = NULL;
@@ -300,7 +300,7 @@ static void closechansess(struct Channel *channel) {
x11cleanup(chansess);
#endif
-#ifdef ENABLE_AGENTFWD
+#ifdef ENABLE_SVR_AGENTFWD
svr_agentcleanup(chansess);
#endif
@@ -358,7 +358,7 @@ static void chansessionrequest(struct Channel *channel) {
} else if (strcmp(type, "x11-req") == 0) {
ret = x11req(chansess);
#endif
-#ifdef ENABLE_AGENTFWD
+#ifdef ENABLE_SVR_AGENTFWD
} else if (strcmp(type, "auth-agent-req@openssh.com") == 0) {
ret = svr_agentreq(chansess);
#endif
@@ -945,7 +945,7 @@ static void execchild(void *user_data) {
/* set up X11 forwarding if enabled */
x11setauth(chansess);
#endif
-#ifdef ENABLE_AGENTFWD
+#ifdef ENABLE_SVR_AGENTFWD
/* set up agent env variable */
svr_agentset(chansess);
#endif