From c0ce2a6a97af66881675916c504af9caed2f9c2e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Mon, 8 Sep 2008 15:14:02 +0000 Subject: * Patch from Frédéric Moulins adding options to authorized_keys. Needs review. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c --- svr-agentfwd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'svr-agentfwd.c') 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; } -- cgit v1.2.3