diff options
author | 2018-06-06 18:22:41 +0000 | |
---|---|---|
committer | 2018-06-06 18:22:41 +0000 | |
commit | d56fcabe7f8b672d2877cf2c8b41f62465929ef7 (patch) | |
tree | 6037c95334781bcd6d138705518cfd0f8fa0599d /usr.bin/ssh/ssh.c | |
parent | sync (diff) | |
download | wireguard-openbsd-d56fcabe7f8b672d2877cf2c8b41f62465929ef7.tar.xz wireguard-openbsd-d56fcabe7f8b672d2877cf2c8b41f62465929ef7.zip |
Add a PermitListen directive to control which server-side addresses
may be listened on when the client requests remote forwarding (ssh -R).
This is the converse of the existing PermitOpen directive and this
includes some refactoring to share much of its implementation.
feedback and ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r-- | usr.bin/ssh/ssh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index ee6121fd170..c9fafa8635d 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.479 2018/06/01 03:33:53 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.480 2018/06/06 18:22:41 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1604,10 +1604,10 @@ ssh_confirm_remote_forward(struct ssh *ssh, int type, u_int32_t seq, void *ctxt) logit("Allocated port %u for remote forward to %s:%d", rfwd->allocated_port, rfwd->connect_host, rfwd->connect_port); - channel_update_permitted_opens(ssh, + channel_update_permission(ssh, rfwd->handle, rfwd->allocated_port); } else { - channel_update_permitted_opens(ssh, rfwd->handle, -1); + channel_update_permission(ssh, rfwd->handle, -1); } } |