]> git.ipfire.org Git - thirdparty/openssh-portable.git/log
thirdparty/openssh-portable.git
8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:25:42 +0000 (14:25 +0000)] 
upstream commit

switch auth2-hostbased.c to modern APIs; ok djm@

Upstream-ID: 146af25c36daeeb83d5dbbb8ca52b5d25de88f4e

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:23:52 +0000 (14:23 +0000)] 
upstream commit

protocol handlers all get struct ssh passed; ok djm@

Upstream-ID: 0ca9ea2a5d01a6d2ded94c5024456a930c5bfb5d

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:19:15 +0000 (14:19 +0000)] 
upstream commit

ssh: pass struct ssh to auth functions, too; ok djm@

Upstream-ID: d13c509cc782f8f19728fbea47ac7cf36f6e85dd

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:18:15 +0000 (14:18 +0000)] 
upstream commit

sshd: pass struct ssh to auth functions; ok djm@

Upstream-ID: b00a80c3460884ebcdd14ef550154c761aebe488

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:16:41 +0000 (14:16 +0000)] 
upstream commit

remove unused wrapper functions from key.[ch]; ok djm@

Upstream-ID: ea0f4016666a6817fc11f439dd4be06bab69707e

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:15:17 +0000 (14:15 +0000)] 
upstream commit

sshkey_new() might return NULL (pkcs#11 code only); ok
djm@

Upstream-ID: de9f2ad4a42c0b430caaa7d08dea7bac943075dd

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:13:40 +0000 (14:13 +0000)] 
upstream commit

switch sshconnect.c to modern APIs; ok djm@

Upstream-ID: 27be17f84b950d5e139b7a9b281aa487187945ad

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 14:10:53 +0000 (14:10 +0000)] 
upstream commit

switch auth2-pubkey.c to modern APIs; with & ok djm@

Upstream-ID: 8f08d4316eb1b0c4ffe4a206c05cdd45ed1daf07

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 08:52:19 +0000 (08:52 +0000)] 
upstream commit

switch from Key typedef with struct sshkey; ok djm@

Upstream-ID: 3067d33e04efbe5131ce8f70668c47a58e5b7a1f

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 08:49:58 +0000 (08:49 +0000)] 
upstream commit

remove ssh1 references; ok djm@

Upstream-ID: fc23b7578e7b0a8daaec72946d7f5e58ffff5a3d

8 years agoupstream commit
markus@openbsd.org [Tue, 30 May 2017 08:49:32 +0000 (08:49 +0000)] 
upstream commit

revise sshkey_load_public(): remove ssh1 related
comments, remove extra open()/close() on keyfile, prevent leak of 'pub' if
'keyp' is NULL, replace strlcpy+cat with asprintf; ok djm@

Upstream-ID: 6175e47cab5b4794dcd99c1175549a483ec673ca

8 years agoupstream commit
markus@openbsd.org [Fri, 26 May 2017 20:34:49 +0000 (20:34 +0000)] 
upstream commit

sshbuf_consume: reset empty buffer; ok djm@

Upstream-ID: 0d4583ba57f69e369d38bbd7843d85cac37fa821

8 years agoupstream commit
markus@openbsd.org [Fri, 26 May 2017 19:35:50 +0000 (19:35 +0000)] 
upstream commit

remove SSH_CHANNEL_XXX_DRAINING (ssh1 only); ok djm@

Upstream-ID: e2e225b6ac67b84dd024f38819afff2554fafe42

8 years agoupstream commit
markus@openbsd.org [Fri, 26 May 2017 19:34:12 +0000 (19:34 +0000)] 
upstream commit

remove channel_input_close_confirmation (ssh1 only); ok
djm@

Upstream-ID: 8e7c8c38f322d255bb0294a5c0ebef53fdf576f1

8 years agoupstream commit
djm@openbsd.org [Fri, 26 May 2017 01:40:07 +0000 (01:40 +0000)] 
upstream commit

fix references to obsolete v00 cert format; spotted by
Jakub Jelen

Upstream-ID: 7600ce193ab8fd19451acfe24fc2eb39d46b2c4f

8 years agoconfigure: actually set cache vars when cross-compiling
Mike Frysinger [Thu, 25 May 2017 03:21:19 +0000 (23:21 -0400)] 
configure: actually set cache vars when cross-compiling

The cross-compiling fallback message says it's assuming the test
passed, but it didn't actually set the cache var which causes
later tests to fail.

8 years agoupstream commit
djm@openbsd.org [Sat, 20 May 2017 02:35:47 +0000 (02:35 +0000)] 
upstream commit

there's no reason to artificially limit the key path
here, just check that it fits PATH_MAX; spotted by Matthew Patton

Upstream-ID: 858addaf2009c9cf04d80164a41b2088edb30b58

8 years agoupstream commit
djm@openbsd.org [Fri, 19 May 2017 21:07:17 +0000 (21:07 +0000)] 
upstream commit

Now that we no longer support SSHv1, replace the contents
of this file with a pointer to
https://tools.ietf.org/html/draft-miller-ssh-agent-00 It's better edited,
doesn't need to document stuff we no longer implement and does document stuff
that we do implement (RSA SHA256/512 signature flags)

Upstream-ID: da8cdc46bbcc266efabd565ddddd0d8e556f846e

8 years agoupstream commit
djm@openbsd.org [Wed, 17 May 2017 01:24:17 +0000 (01:24 +0000)] 
upstream commit

allow LogLevel in sshd_config Match blocks; ok dtucker
bz#2717

Upstream-ID: 662e303be63148f47db1aa78ab81c5c2e732baa8

8 years agoupstream commit
djm@openbsd.org [Tue, 16 May 2017 16:56:15 +0000 (16:56 +0000)] 
upstream commit

remove duplicate check; spotted by Jakub Jelen

Upstream-ID: 30c2996c1767616a8fdc49d4cee088efac69c3b0

8 years agoupstream commit
djm@openbsd.org [Tue, 16 May 2017 16:54:05 +0000 (16:54 +0000)] 
upstream commit

mention that Ed25519 keys are valid as CA keys; spotted
by Jakub Jelen

Upstream-ID: d3f6db58b30418cb1c3058211b893a1ffed3dfd4

8 years agoclean up regress files and add a .gitignore
Damien Miller [Tue, 9 May 2017 04:35:03 +0000 (14:35 +1000)] 
clean up regress files and add a .gitignore

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 22:57:38 +0000 (22:57 +0000)] 
upstream commit

remove hmac-ripemd160; ok dtucker

Upstream-ID: 896e737ea0bad6e23327d1c127e02d5e9e9c654d

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 06:11:06 +0000 (06:11 +0000)] 
upstream commit

make requesting bad ECDSA bits yield the same error
(SSH_ERR_KEY_LENGTH) as the same mistake for RSA/DSA

Upstream-ID: bf40d3fee567c271e33f05ef8e4e0fa0b6f0ece6

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 06:08:42 +0000 (06:08 +0000)] 
upstream commit

fix for new SSH_ERR_KEY_LENGTH error value

Upstream-Regress-ID: c38a6e6174d4c3feca3518df150d4fbae0dca8dc

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 06:03:39 +0000 (06:03 +0000)] 
upstream commit

helps if I commit the correct version of the file. fix
missing return statement.

Upstream-ID: c86394a3beeb1ec6611e659bfa830254f325546c

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 01:52:49 +0000 (01:52 +0000)] 
upstream commit

remove arcfour, blowfish and CAST here too

Upstream-Regress-ID: c613b3bcbef75df1fe84ca4dc2d3ef253dc5e920

8 years agoupstream commit
djm@openbsd.org [Mon, 8 May 2017 00:21:36 +0000 (00:21 +0000)] 
upstream commit

I was too aggressive with the scalpel in the last commit;
unbreak sshd, spotted quickly by naddy@

Upstream-ID: fb7e75d2b2c7e6ca57dee00ca645e322dd49adbf

8 years agoupstream commit
djm@openbsd.org [Sun, 7 May 2017 23:15:59 +0000 (23:15 +0000)] 
upstream commit

Refuse RSA keys <1024 bits in length. Improve reporting
for keys that do not meet this requirement. ok markus@

Upstream-ID: b385e2a7b13b1484792ee681daaf79e1e203df6c

8 years agoupstream commit
djm@openbsd.org [Sun, 7 May 2017 23:13:42 +0000 (23:13 +0000)] 
upstream commit

Don't offer CBC ciphers by default in the client. ok
markus@

Upstream-ID: 94c9ce8d0d1a085052e11c7f3307950fdc0901ef

8 years agoupstream commit
djm@openbsd.org [Sun, 7 May 2017 23:12:57 +0000 (23:12 +0000)] 
upstream commit

As promised in last release announcement: remove
support for Blowfish, RC4 and CAST ciphers. ok markus@ deraadt@

Upstream-ID: 21f8facdba3fd8da248df6417000867cec6ba222

8 years agoupstream commit
naddy@openbsd.org [Fri, 5 May 2017 10:42:49 +0000 (10:42 +0000)] 
upstream commit

more simplification and removal of SSHv1-related code;
ok djm@

Upstream-ID: d2f041aa0b79c0ebd98c68a01e5a0bfab2cf3b55

8 years agoupstream commit
naddy@openbsd.org [Fri, 5 May 2017 10:41:58 +0000 (10:41 +0000)] 
upstream commit

remove superfluous protocol 2 mentions; ok jmc@

Upstream-ID: 0aaf7567c9f2e50fac5906b6a500a39c33c4664d

8 years agoupstream commit
djm@openbsd.org [Thu, 4 May 2017 06:10:57 +0000 (06:10 +0000)] 
upstream commit

since a couple of people have asked, leave a comment
explaining why we retain SSH v.1 support in the "delete all keys from agent"
path.

Upstream-ID: 4b42dcfa339813c15fe9248a2c1b7ed41c21bbb4

8 years agoupstream commit
djm@openbsd.org [Thu, 4 May 2017 01:33:21 +0000 (01:33 +0000)] 
upstream commit

another tentacle: cipher_set_key_string() was only ever
used for SSHv1

Upstream-ID: 7fd31eb6c48946f7e7cc12af0699fe8eb637e94a

8 years agoupstream commit
naddy@openbsd.org [Wed, 3 May 2017 21:49:18 +0000 (21:49 +0000)] 
upstream commit

restore mistakenly deleted description of the
ConnectionAttempts option ok markus@

Upstream-ID: 943002b1b7c470caea3253ba7b7348c359de0348

8 years agoupstream commit
naddy@openbsd.org [Wed, 3 May 2017 21:08:09 +0000 (21:08 +0000)] 
upstream commit

remove miscellaneous SSH1 leftovers; ok markus@

Upstream-ID: af23696022ae4d45a1abc2fb8b490d8d9dd63b7c

8 years agoupstream commit
jmc@openbsd.org [Wed, 3 May 2017 10:01:44 +0000 (10:01 +0000)] 
upstream commit

more protocol 1 bits removed; ok djm

Upstream-ID: b5b977eaf756915acb56aef3604a650e27f7c2b9

8 years agoupstream commit
jmc@openbsd.org [Wed, 3 May 2017 06:32:02 +0000 (06:32 +0000)] 
upstream commit

more protocol 1 stuff to go; ok djm

Upstream-ID: 307a30441d2edda480fd1661d998d36665671e47

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 17:04:09 +0000 (17:04 +0000)] 
upstream commit

rsa1 is no longer valid;

Upstream-ID: 9953d09ed9841c44b7dcf7019fa874783a709d89

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 14:06:37 +0000 (14:06 +0000)] 
upstream commit

add PubKeyAcceptedKeyTypes to the -o list: scp(1) has
it, so i guess this should too;

Upstream-ID: 7fab32e869ca5831d09ab0c40d210b461d527a2c

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 13:44:51 +0000 (13:44 +0000)] 
upstream commit

remove now obsolete protocol1 options from the -o
lists;

Upstream-ID: 828e478a440bc5f9947672c392420510a362b3dd

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 09:05:58 +0000 (09:05 +0000)] 
upstream commit

more -O shuffle; ok djm

Upstream-ID: c239991a3a025cdbb030b73e990188dd9bfbeceb

8 years agoupstream commit
djm@openbsd.org [Tue, 2 May 2017 08:54:19 +0000 (08:54 +0000)] 
upstream commit

remove -1 / -2 options; pointed out by jmc@

Upstream-ID: 65d2a816000741a95df1c7cfdb5fa8469fcc7daa

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 08:06:33 +0000 (08:06 +0000)] 
upstream commit

remove options -12 from usage();

Upstream-ID: db7ceef25132e63b50ed05289bf447fece1d1270

8 years agoupstream commit
jmc@openbsd.org [Tue, 2 May 2017 07:13:31 +0000 (07:13 +0000)] 
upstream commit

tidy up -O somewhat; ok djm

Upstream-ID: 804405f716bf7ef15c1f36ab48581ca16aeb4d52

8 years agoupstream commit
djm@openbsd.org [Mon, 1 May 2017 22:09:48 +0000 (22:09 +0000)] 
upstream commit

when freeing a bitmap, zero all it bytes; spotted by Ilya
Kaliman

Upstream-ID: 834ac024f2c82389d6ea6b1c7d6701b3836e28e4

8 years agoupstream commit
djm@openbsd.org [Mon, 1 May 2017 14:08:26 +0000 (14:08 +0000)] 
upstream commit

this one I did forget to "cvs rm"

Upstream-ID: 5781670c0578fe89663c9085ed3ba477cf7e7913

8 years agoupstream commit
djm@openbsd.org [Mon, 1 May 2017 09:27:45 +0000 (09:27 +0000)] 
upstream commit

don't know why cvs didn't exterminate these the first
time around, I use rm -f and everuthing...

pointed out by sobrado@

Upstream-ID: a6c44a0c2885330d322ee01fcfd7f6f209b1e15d

8 years agoDefine INT32_MAX and INT64_MAX if needed.
Darren Tucker [Mon, 1 May 2017 03:53:07 +0000 (13:53 +1000)] 
Define INT32_MAX and INT64_MAX if needed.

8 years agoWrap stdint.h in HAVE_STDINT_H
Darren Tucker [Mon, 1 May 2017 03:19:41 +0000 (13:19 +1000)] 
Wrap stdint.h in HAVE_STDINT_H

8 years agoupstream commit
djm@openbsd.org [Mon, 1 May 2017 02:27:11 +0000 (02:27 +0000)] 
upstream commit

remove unused variable

Upstream-ID: 66011f00819d0e71b14700449a98414033284516

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:34:55 +0000 (23:34 +0000)] 
upstream commit

eliminate explicit specification of protocol in tests and
loops over protocol. We only support SSHv2 now.

Upstream-Regress-ID: 0082838a9b8a382b7ee9cbf0c1b9db727784fadd

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:33:48 +0000 (23:33 +0000)] 
upstream commit

remove SSHv1 support from unit tests

Upstream-Regress-ID: 395ca2aa48f1f7d23eefff6cb849ea733ca8bbfe

8 years agoupstream commit
djm@openbsd.org [Mon, 1 May 2017 00:03:18 +0000 (00:03 +0000)] 
upstream commit

fixup setting ciphercontext->plaintext (lost in SSHv1 purge),
though it isn't really used for much anymore.

Upstream-ID: 859b8bce84ff4865b32097db5430349d04b9b747

8 years agoremove configure --with-ssh1
Damien Miller [Sun, 30 Apr 2017 23:55:56 +0000 (09:55 +1000)] 
remove configure --with-ssh1

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:29:10 +0000 (23:29 +0000)] 
upstream commit

flense SSHv1 support from ssh-agent, considerably
simplifying it

ok markus

Upstream-ID: 71d772cdcefcb29f76e01252e8361e6fc2dfc365

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:28:41 +0000 (23:28 +0000)] 
upstream commit

obliterate ssh1.h and some dead code that used it

ok markus@

Upstream-ID: 1ca9159a9fb95618f9d51e069ac8e1131a087343

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:28:12 +0000 (23:28 +0000)] 
upstream commit

exterminate the -1 flag from scp

ok markus@

Upstream-ID: 26d247f7065da15056b209cef5f594ff591b89db

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:26:54 +0000 (23:26 +0000)] 
upstream commit

purge the last traces of SSHv1 from the TTY modes
handling code

ok markus

Upstream-ID: 963a19f1e06577377c38a3b7ce468f121b966195

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:26:16 +0000 (23:26 +0000)] 
upstream commit

remove the (in)famous SSHv1 CRC compensation attack
detector.

Despite your cameo in The Matrix movies, you will not be missed.

ok markus

Upstream-ID: 44261fce51a56d93cdb2af7b6e184be629f667e0

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:25:03 +0000 (23:25 +0000)] 
upstream commit

undo some local debugging stuff that I committed by
accident

Upstream-ID: fe5b31f69a60d47171836911f144acff77810217

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:23:54 +0000 (23:23 +0000)] 
upstream commit

remove SSHv1 support from packet and buffer APIs

ok markus@

Upstream-ID: bfc290053d40b806ecac46317d300677d80e1dc9

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:21:54 +0000 (23:21 +0000)] 
upstream commit

remove SSHv1-related buffers from client code

Upstream-ID: dca5d01108f891861ceaf7ba1c0f2eb274e0c7dd

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:18:44 +0000 (23:18 +0000)] 
upstream commit

remove KEY_RSA1

ok markus@

Upstream-ID: 7408517b077c892a86b581e19f82a163069bf133

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:18:22 +0000 (23:18 +0000)] 
upstream commit

remove SSHv1 configuration options and man pages bits

ok markus@

Upstream-ID: 84638c23546c056727b7a7d653c72574e0f19424

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:17:37 +0000 (23:17 +0000)] 
upstream commit

remove SSH1 make flag and associated files ok markus@

Upstream-ID: ba9feacc5787337c413db7cf26ea3d53f854cfef

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:15:04 +0000 (23:15 +0000)] 
upstream commit

remove SSHv1 ciphers; ok markus@

Upstream-ID: e5ebc5e540d7f23a8c1266db1839794d4d177890

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:13:25 +0000 (23:13 +0000)] 
upstream commit

remove compat20/compat13/compat15 variables

ok markus@

Upstream-ID: 43802c035ceb3fef6c50c400e4ecabf12354691c

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:11:45 +0000 (23:11 +0000)] 
upstream commit

remove options.protocol and client Protocol
configuration knob

ok markus@

Upstream-ID: 5a967f5d06e2d004b0235457b6de3a9a314e9366

8 years agoupstream commit
djm@openbsd.org [Sun, 30 Apr 2017 23:10:43 +0000 (23:10 +0000)] 
upstream commit

unifdef WITH_SSH1 ok markus@

Upstream-ID: 9716e62a883ef8826c57f4d33b4a81a9cc7755c7

8 years agoupstream commit
jmc@openbsd.org [Sat, 29 Apr 2017 06:06:01 +0000 (06:06 +0000)] 
upstream commit

tweak previous;

Upstream-ID: a3abc6857455299aa42a046d232b7984568bceb9

8 years agoupstream commit
djm@openbsd.org [Sat, 29 Apr 2017 04:12:25 +0000 (04:12 +0000)] 
upstream commit

allow ssh-keygen to include arbitrary string or flag
certificate extensions and critical options. ok markus@ dtucker@

Upstream-ID: 2cf28dd6c5489eb9fc136e0b667ac3ea10241646

8 years agoupstream commit
jmc@openbsd.org [Fri, 28 Apr 2017 06:15:03 +0000 (06:15 +0000)] 
upstream commit

sort;

Upstream-ID: 7e6b56e52b039cf44d0418e9de9aca20a2d2d15a

8 years agoTypo.
Darren Tucker [Fri, 28 Apr 2017 04:44:28 +0000 (14:44 +1000)] 
Typo.

Upstream-Regress-ID: 1e6b51ddf767cbad0a4e63eb08026c127e654308

8 years agoAdd 2 regress commits I applied by hand.
Darren Tucker [Fri, 28 Apr 2017 04:41:17 +0000 (14:41 +1000)] 
Add 2 regress commits I applied by hand.

Upstream-Regress-ID: 30c20180c87cbc99fa1020489fe7fd8245b6420c
Upstream-Regress-ID: 1e6b51ddf767cbad0a4e63eb08026c127e654308

8 years agoMerge integrity.sh rev 1.22.
Darren Tucker [Fri, 28 Apr 2017 04:33:43 +0000 (14:33 +1000)] 
Merge integrity.sh rev 1.22.

Merge missing bits from Colin Watson's patch in bz#2658 which make integrity
tests more robust against timeouts.  ok djm@

8 years agoId sync for integrity.sh rev 1.21 which pulls in some shell portability fixes
Darren Tucker [Fri, 28 Apr 2017 04:30:03 +0000 (14:30 +1000)] 
Id sync for integrity.sh rev 1.21 which pulls in some shell portability fixes

8 years agoupstream commit
jsg@openbsd.org [Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)] 
upstream commit

Change COMPILER_VERSION tests which limited additional
warnings to gcc4 to instead skip them on gcc3 as clang can handle
-Wpointer-sign and -Wold-style-definition.

Upstream-Regress-ID: e48d7dc13e48d9334b8195ef884dfbc51316012f

8 years agoupstream commit
djm@openbsd.org [Fri, 28 Apr 2017 03:24:53 +0000 (03:24 +0000)] 
upstream commit

include key fingerprint in "Offering public key" debug
message

Upstream-ID: 964749f820c2ed4cf6a866268b1a05e907315c52

8 years agoupstream commit
millert@openbsd.org [Fri, 28 Apr 2017 03:21:12 +0000 (03:21 +0000)] 
upstream commit

Avoid relying on implementation-specific behavior when
detecting whether the timestamp or file size overflowed.  If time_t and off_t
are not either 32-bit or 64-bit scp will exit with an error. OK djm@

Upstream-ID: f31caae73ddab6df496b7bbbf7da431e267ad135

8 years agoupstream commit
dtucker@openbsd.org [Fri, 28 Apr 2017 03:20:27 +0000 (03:20 +0000)] 
upstream commit

Add SyslogFacility option to ssh(1) matching the
equivalent option in sshd(8).  bz#2705, patch from erahn at arista.com, ok
djm@

Upstream-ID: d5115c2c0193ceb056ed857813b2a7222abda9ed

8 years agoupstream commit
jsg@openbsd.org [Thu, 27 Apr 2017 13:40:05 +0000 (13:40 +0000)] 
upstream commit

remove a static array unused since rev 1.306 spotted by
clang ok djm@

Upstream-ID: 249b3eed2446f6074ba2219ccc46919dd235a7b8

8 years agoupstream commit
millert@openbsd.org [Thu, 27 Apr 2017 11:53:12 +0000 (11:53 +0000)] 
upstream commit

Avoid potential signed int overflow when parsing the file
size. Use strtoul() instead of parsing manually.  OK djm@

Upstream-ID: 1f82640861c7d905bbb05e7d935d46b0419ced02

8 years agoFix typo in "socketcall".
Darren Tucker [Mon, 24 Apr 2017 22:32:27 +0000 (08:32 +1000)] 
Fix typo in "socketcall".

Pointed out by jjelen at redhat.com.

8 years agoDeny socketcall in seccomp filter on ppc64le.
Darren Tucker [Mon, 24 Apr 2017 09:40:31 +0000 (19:40 +1000)] 
Deny socketcall in seccomp filter on ppc64le.

OpenSSL is using socket() calls (in FIPS mode) when handling ECDSA keys
in privsep child. The socket() syscall is already denied in the seccomp
filter, but in ppc64le kernel, it is implemented using socketcall()
syscall, which is not denied yet (only SYS_SHUTDOWN is allowed) and
therefore fails hard.

Patch from jjelen at redhat.com.

8 years agoupstream commit
schwarze@openbsd.org [Mon, 17 Apr 2017 14:31:23 +0000 (14:31 +0000)] 
upstream commit

Recognize nl_langinfo(CODESET) return values "646" and ""
as aliases for "US-ASCII", useful for different versions of NetBSD and
Solaris. Found by dtucker@ and by Tom G. Christensen <tgc at jupiterrise dot
com>. OK dtucker@ deraadt@

Upstream-ID: 38c2133817cbcae75c88c63599ac54228f0fa384

8 years agoupstream commit
jsg@openbsd.org [Mon, 17 Apr 2017 11:02:31 +0000 (11:02 +0000)] 
upstream commit

Change COMPILER_VERSION tests which limited additional
warnings to gcc4 to instead skip them on gcc3 as clang can handle
-Wpointer-sign and -Wold-style-definition.

Upstream-ID: 5cbe348aa76dc1adf55be6c0e388fafaa945439a

8 years agoupstream commit
djm@openbsd.org [Tue, 4 Apr 2017 00:24:56 +0000 (00:24 +0000)] 
upstream commit

disallow creation (of empty files) in read-only mode;
reported by Michal Zalewski, feedback & ok deraadt@

Upstream-ID: 5d9c8f2fa8511d4ecf95322994ffe73e9283899b

8 years agoupstream commit
deraadt@openbsd.org [Sun, 26 Mar 2017 00:18:52 +0000 (00:18 +0000)] 
upstream commit

incorrect renditions of this quote bother me

Upstream-ID: 1662be3ebb7a71d543da088119c31d4d463a9e49

8 years agoCheck for and use gcc's -pipe.
Darren Tucker [Fri, 31 Mar 2017 00:04:43 +0000 (11:04 +1100)] 
Check for and use gcc's -pipe.

Speeds up configure and build by a couple of percent.  ok djm@

8 years agoImport fmt_scaled.c rev 1.16 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:34:44 +0000 (16:34 +1100)] 
Import fmt_scaled.c rev 1.16 from OpenBSD.

Fix overly-conservative overflow checks on mulitplications and add checks
on additions.  This allows scan_scaled to work up to +/-LLONG_MAX (LLONG_MIN
will still be flagged as a range error).  ok millert@

8 years agoImport fmt_scaled.c rev 1.15 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:34:02 +0000 (16:34 +1100)] 
Import fmt_scaled.c rev 1.15 from OpenBSD.

Collapse underflow and overflow checks into a single block.
ok djm@ millert@

8 years agoImport fmt_scaled.c rev 1.14 from OpenBSD.
Darren Tucker [Wed, 29 Mar 2017 05:32:57 +0000 (16:32 +1100)] 
Import fmt_scaled.c rev 1.14 from OpenBSD.

Catch integer underflow in scan_scaled reported by Nicolas Iooss.
ok deraadt@ djm@

8 years agoDon't check privsep user or path when unprivileged
Darren Tucker [Wed, 29 Mar 2017 01:39:39 +0000 (12:39 +1100)] 
Don't check privsep user or path when unprivileged

If running with privsep (mandatory now) as a non-privileged user, we
don't chroot or change to an unprivileged user however we still checked
the existence of the user and directory.  Don't do those checks if we're
not going to use them.  Based in part on a patch from Lionel Fourquaux
via Corinna Vinschen, ok djm@

8 years agoRemove SHA256 EVP wrapper implementation.
Darren Tucker [Tue, 28 Mar 2017 23:50:31 +0000 (10:50 +1100)] 
Remove SHA256 EVP wrapper implementation.

All supported versions of OpenSSL should now have SHA256 so remove our
EVP wrapper implementaion.  ok djm@

8 years agoRemove check for OpenSSL < 0.9.8g.
Darren Tucker [Tue, 28 Mar 2017 23:23:58 +0000 (10:23 +1100)] 
Remove check for OpenSSL < 0.9.8g.

We no longer support OpenSSL < 1.0.1 so remove check for unreliable ECC
in OpenSSL < 0.9.8g.

8 years agoRemove compat code for OpenSSL < 0.9.7.
Darren Tucker [Tue, 28 Mar 2017 23:16:15 +0000 (10:16 +1100)] 
Remove compat code for OpenSSL < 0.9.7.

Resyncs that code with OpenBSD upstream.

8 years agoRemove SSHv1 code path.
Darren Tucker [Tue, 28 Mar 2017 22:50:54 +0000 (09:50 +1100)] 
Remove SSHv1 code path.

Server-side support for Protocol 1 has been removed so remove !compat20
PAM code path.

8 years agoEnable ldns when using ldns-config.
Darren Tucker [Thu, 23 Mar 2017 22:44:56 +0000 (09:44 +1100)] 
Enable ldns when using ldns-config.

Actually enable ldns when attempting to use ldns-config.  bz#2697, patch
from fredrik at fornwall.net.