summaryrefslogtreecommitdiffhomepage
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-08 15:14:02 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-08 15:14:02 +0000
commitc0ce2a6a97af66881675916c504af9caed2f9c2e (patch)
treebfecee9bdef1a76204f9f19cc4518166ae7c6f23 /svr-agentfwd.c
parentf90f64b5c1a974a77a4bdf4a7ccb3f4d359b9127 (diff)
* Patch from Frédéric Moulins adding options to authorized_keys.
Needs review. --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index 6946d1d..87a1078 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -39,6 +39,7 @@
#include "buffer.h"
#include "random.h"
#include "listener.h"
+#include "auth.h"
#define AGENTDIRPREFIX "/tmp/dropbear-"
@@ -52,6 +53,10 @@ int agentreq(struct ChanSess * chansess) {
int fd;
+ if (!svr_pubkey_allows_agentfwd()) {
+ return DROPBEAR_FAILURE;
+ }
+
if (chansess->agentlistener != NULL) {
return DROPBEAR_FAILURE;
}