diff options
author | 2017-09-12 06:32:07 +0000 | |
---|---|---|
committer | 2017-09-12 06:32:07 +0000 | |
commit | 7b28dfb0e569599ccd686236ca62c09e050d622d (patch) | |
tree | 3da77707137c909a7d9e401b6edc4c32b712c793 /usr.bin/ssh/sshconnect.h | |
parent | rename setredzone to setguardpage. (diff) | |
download | wireguard-openbsd-7b28dfb0e569599ccd686236ca62c09e050d622d.tar.xz wireguard-openbsd-7b28dfb0e569599ccd686236ca62c09e050d622d.zip |
refactor channels.c
Move static state to a "struct ssh_channels" that is allocated at
runtime and tracked as a member of struct ssh.
Explicitly pass "struct ssh" to all channels functions.
Replace use of the legacy packet APIs in channels.c.
Rework sshd_config PermitOpen handling: previously the configuration
parser would call directly into the channels layer. After the refactor
this is not possible, as the channels structures are allocated at
connection time and aren't available when the configuration is parsed.
The server config parser now tracks PermitOpen itself and explicitly
configures the channels code later.
ok markus@
Diffstat (limited to 'usr.bin/ssh/sshconnect.h')
-rw-r--r-- | usr.bin/ssh/sshconnect.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.h b/usr.bin/ssh/sshconnect.h index f4e73f7b151..b5029e2347e 100644 --- a/usr.bin/ssh/sshconnect.h +++ b/usr.bin/ssh/sshconnect.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect.h,v 1.30 2017/05/30 08:52:19 markus Exp $ */ +/* $OpenBSD: sshconnect.h,v 1.31 2017/09/12 06:32:07 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. @@ -32,8 +32,10 @@ struct Sensitive { }; struct addrinfo; -int ssh_connect(const char *, struct addrinfo *, struct sockaddr_storage *, - u_short, int, int, int *, int, int); +struct ssh; + +int ssh_connect(struct ssh *, const char *, struct addrinfo *, + struct sockaddr_storage *, u_short, int, int, int *, int, int); void ssh_kill_proxy_command(void); void ssh_login(Sensitive *, const char *, struct sockaddr *, u_short, |