| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
indentation on continuation lines. Prompted by GHPR#185
|
|
|
|
| |
ok djm@, dtucker@
|
|
|
|
| |
purpose-built ssh->compat variable instead; feedback/ok markus@
|
|
|
|
| |
appending ssh_err(r) manually; ok markus@
|
|
|
|
|
|
|
|
|
| |
peer advertises a large window but is slow to consume the data we
send (e.g. because of a slow network)
reported by Pierre-Yves David
fix with & ok markus@
|
|
|
|
|
| |
SSH_CHANNEL_MUX_LISTENER; Specifically SSH_CHANNEL_MUX_PROXY channels
should not have this structure freed.
|
|
|
|
| |
it here causes other problems
|
|
|
|
| |
ok dtucker
|
|
|
|
| |
in. ok deraadt markus djm.
|
| |
|
|
|
|
|
|
|
|
| |
While freezero() returns early if the pointer is NULL the tests for
NULL in callers are left to avoid warnings about passing an
uninitialised size argument across a function boundry.
ok deraadt@ djm@
|
|
|
|
|
| |
confusing people, so add another comment explaining the special
handling of "localhost"; bz#3258
|
| |
|
|
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
|
|
| |
knweiss at gmail.com via -portable.
|
|
|
|
|
|
|
|
|
|
|
|
| |
be able to find out from where the request was comming.
Add the same logging for PermitListen violations which where not
logged at all.
Pointed out by Robert Kisteleki (robert AT ripe.net)
input markus
OK deraadt
|
|
|
|
| |
ok deraadt
|
|
|
|
| |
with & ok markus@
|
|
|
|
|
|
|
|
|
|
|
| |
almost exactly six years ago.
This change stops including the old packet_* API by default and makes
each file that requires the old API include it explicitly. We will
commit file-by-file refactoring to remove the old API in consistent
steps.
with & ok markus@
|
|
|
|
|
| |
as we do it anyway in channel_handler_init() that we call at the end of
the function. Fix from Markus Schmidt via bz#2938
|
|
|
|
| |
we can use it in other debug messages
|
|
|
|
|
| |
channel's extended (stderr) fd; makes debugging some things a bit easier.
No behaviour change.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
with codespell tool (https://github.com/lucasdemarchi/codespell)
|
|
|
|
|
|
|
| |
necessarily distinct, so check if they are the same to avoid closing
the same fd several times.
ok djm
|
|
|
|
|
|
|
|
|
|
| |
ssh.com <=2.* and OpenSSH <= 3.*.
These versions were all released in or before 2001 and predate the
final SSH RFCs. The hacks in question aren't necessary for RFC-
compliant SSH implementations.
ok markus@
|
| |
|
|
|
|
|
|
| |
to allow listening on a different rdomain(4), e.g.
ListenAddress 0.0.0.0 rdomain 4
|
|
|
|
|
| |
transient failure into a fatal error; reported by sthen and also seen
by benno@; ok sthen@
|
|
|
|
|
| |
on OpenBSD (they are the same) but does matter on portable where
we use an output filter to translate os-specific tun/tap headers
|
|
|
|
| |
stsp@ ok markus@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(-D) with remote forwarding (-R) where the remote-forwarded port
expects SOCKS-requests.
The SSH server code is unchanged and the parsing happens at the SSH
clients side. Thus the full SOCKS-request is sent over the forwarded
channel and the client parses c->output. Parsing happens in
channel_before_prepare_select(), _before_ the select bitmask is
computed in the pre[] handlers, but after network input processing
in the post[] handlers.
help and ok djm@
|
|
|
|
| |
the compiler from optimizing away the bzero() call. OK djm@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we tracked the remote channel IDs in an int, but this is
strictly incorrect: the wire protocol uses uint32 and there is nothing
in-principle stopping a SSH implementation from sending, say, 0xffff0000.
In practice everyone numbers their channels sequentially, so this has
never been a problem.
ok markus@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
to come...); ok markus@
|
|
|
|
| |
ok djm markus claudio
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
ok markus@
|
|
|
|
| |
ok markus@
|
|
|
|
| |
than always "administratively prohibited". bz#2674, ok djm@
|