mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
* Patch from Frédéric Moulins adding options to authorized_keys.
Needs review. --HG-- branch : pubkey-options extra : convert_revision : 26872f944d79ddacff1070aab32115a6d726392c
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "channel.h"
|
||||
#include "packet.h"
|
||||
#include "buffer.h"
|
||||
#include "auth.h"
|
||||
|
||||
#define X11BASEPORT 6000
|
||||
#define X11BINDBASE 6010
|
||||
@@ -47,6 +48,10 @@ int x11req(struct ChanSess * chansess) {
|
||||
|
||||
int fd;
|
||||
|
||||
if (!svr_pubkey_allows_x11fwd()) {
|
||||
return DROPBEAR_FAILURE;
|
||||
}
|
||||
|
||||
/* we already have an x11 connection */
|
||||
if (chansess->x11listener != NULL) {
|
||||
return DROPBEAR_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user