| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
indentation on continuation lines. Prompted by GHPR#185
|
|
|
|
|
|
|
|
|
| |
were not being dequoted correctly and 2) quoted space in the middle
of a string was being incorrectly split.
A unit test for these cases has already been committed
prompted by and based on GHPR#223 by Eero Häkkinen; ok markus@
|
|
|
|
| |
Prevents spurious debug message. ok djm@
|
| |
|
|
|
|
|
| |
Add tests for boundary conditions and fix convtime to work up to INT_MAX.
ok djm@
|
|
|
|
|
|
| |
from the timeout each loop, so we only want to measure the elapsed time
the poll() in that loop, not since the start of the function. Spotted by
chris.xj.zhu at gmail.com, ok djm@
|
|
|
|
|
|
| |
where sizeof(int) != sizeof(long), convtime could accept values
>MAX_INT which subsequently truncate when stored in an int during
config parsing. bz#3250, ok djm@
|
|
|
|
|
|
|
|
|
|
| |
make privilege dropping optional but allow it via callbacks (to avoid
need to link uidswap.c everywhere)
add some other flags (keep environment, disable strict path safety check)
that make this more useful for client-side use.
feedback & ok markus@
|
|
|
|
|
|
|
|
|
| |
The connection phase of the SSH session is time-sensitive (due to
server side login grace periods) and is frequently interactive (e.g.
entering passwords). The ultimate interactive/bulk TOS/DSCP will be
set after authentication completes.
ok dtucker@
|
|
|
|
| |
appending ssh_err(r) manually; ok markus@
|
|
|
|
|
|
| |
and/or stderr to /dev/null. Factor all these out to a single
stdfd_devnull() function that allows selection of which of these
to redirect. ok markus@
|
|
|
|
| |
bz#3071; ok dtucker@
|
|
|
|
| |
Fixes build error on arm64 spotted by otto@.
|
|
|
|
|
|
| |
intent was in case there's some platform where va_list is not a pointer
equivalent, but on i386 this chokes on the memset. This unbreaks that
build, but will require further consideration.
|
|
|
|
|
|
|
|
| |
variables on the client side. The supported keywords are
CertificateFile, ControlPath, IdentityAgent and IdentityFile, plus
LocalForward and RemoteForward when used for Unix domain socket
paths. This would for example allow forwarding of Unix domain
socket paths that change at runtime. bz#3140, ok djm@
|
|
|
|
| |
bz#3171, spotted by ronf at timeheart.net, ok djm@.
|
|
|
|
|
|
| |
friendly format. Switch copyright for this file from BSD to MIT to
make it easier to add Henning's copyright for this function.
ok markus@
|
|
|
|
| |
in. ok deraadt markus djm.
|
|
|
|
| |
patch by veegish AT cyberstorm.mu
|
|
|
|
| |
necessary). ok aja@ as part of a larger diff
|
|
|
|
|
|
| |
This wrapper blocks all other signals during the handler preventing
races between handlers, and sets SA_RESTART which should reduce the
potential for short read/write operations.
|
|
|
|
|
|
|
|
| |
not just readable. Prevents a timeout when the server doesn't immediately
send a banner (eg multiplexers like sslh) but is also slightly quicker
for other connections since, unlike ssh1, ssh2 doesn't specify that the
client should parse the server banner before sending its own. Patch
from mnissler@chromium.org, ok djm@
|
|
|
|
| |
them public; ok markus@
|
| |
|
|
|
|
| |
ok markus@
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
ok millert nicm tb, etc
|
|
|
|
|
|
|
|
|
| |
host/port was added in 2001 as an alternative to host:port syntax for
the benefit of IPv6 users. These days there are establised standards
for this like [::1]:22 and the slash syntax is easily mistaken for CIDR
notation, which OpenSSH now supports for some things. Remove the slash
notation from ListenAddress and PermitOpen. bz#2335, patch from jjelen
at redhat.com, ok markus@
|
|
|
|
|
|
|
|
|
|
|
| |
out the banner exchange. This eliminates some common code from the
client and server.
Also be more strict about handling \r characters - these should only
be accepted immediately before \n (pointed out by Jann Horn).
Inspired by a patch from Markus Schmidt.
(lots of) feedback and ok markus@
|
|
|
|
|
|
|
|
| |
Account for written bytes before the initial timer check so that the first
buffer written is accounted. Set the threshold after which the timer is
checked such that the limit starts being computed as soon as possible, ie
after the second buffer is written. This prevents an initial burst of
traffic and provides a more accurate bandwidth limit. bz#2927, ok djm.
|
| |
|
|
|
|
|
|
|
|
|
| |
* Try to resolve a port specification with getservbyname(3) if a
numeric conversion fails.
* Make the "Port" option in ssh_config handle its argument as a
port rather than a plain integer.
ok dtucker@ deraadt@
|
|
|
|
| |
names as well as explicit paths. ok dtucker@
|
|
|
|
|
|
|
| |
setuid and sshd always has privsep on, we can remove the uid checks
for low port binds and just let the system do the check. We leave
a sanity check for the !privsep case so long as the code is stil
there. with & ok djm@
|
|
|
|
|
| |
Do not link uidwap.c into ssh any more. Neuters UsePrivilegedPort,
which will be marked as deprecated shortly. ok markus@ djm@
|
|
|
|
|
|
|
|
| |
variables for the remote session (subject to the server accepting them)
refactor SendEnv to remove the arbitrary limit of variable names.
ok markus@
|
|
|
|
| |
noted by gerhard@; ok dtucker@, djm@
|
|
|
|
| |
giving a key an expiry date. ok markus@
|
|
|
|
|
|
|
| |
revision 1.124
date: 2018/03/02 03:02:11; author: djm; state: Exp; lines: +19 -8; commitid: nNRsCijZiGG6SUTT;
Allow escaped quotes \" and \' in ssh_config and sshd_config quotes
option strings. bz#1596 ok markus@
|
|
|
|
|
|
|
|
|
| |
legacy one.
Includes a fairly big refactor of auth2-pubkey.c to retain less state
between key file lines.
feedback and ok markus@
|
|
|
|
| |
option strings. bz#1596 ok markus@
|
| |
|
|
|
|
| |
logging.
|
|
|
|
| |
message containing only some of the useful information; merge these
|
|
|
|
|
| |
keywords with a checking wrapper around strtonum. This will prevent
and flag invalid and negative arguments to these keywords. ok djm@
|
|
|
|
|
|
|
| |
timeval respectively. Replace calls to gettimeofday() in packet timing
with monotime_tv so that the callers will work over a clock step.
Should prevent integer overflow during clock steps reported by wangle6
at huawei.com. "I like" markus@
|
|
|
|
|
|
|
| |
user session (including the shell and any TCP/IP forwardings) into
the specified rdomain(4)
ok markus@
|
|
|
|
|
|
| |
to allow listening on a different rdomain(4), e.g.
ListenAddress 0.0.0.0 rdomain 4
|
|
|
|
| |
Noticed by markus@
|
|
|
|
|
|
|
|
|
|
|
| |
At the client, the device may be obtained from a new %T expansion
for LocalCommand.
At the server, the allocated devices will be listed in a
SSH_TUNNEL variable exposed to the environment of any user sessions
started after the tunnel forwarding was established.
ok markus
|