Skip to content

Commit 2c3a1a9

Browse files
committed
Source snapshot from Powershell/openssh-portable:latestw_all
1 parent 9fd0cda commit 2c3a1a9

File tree

190 files changed

+6001
-7582
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+6001
-7582
lines changed

.gitignore

+31-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1-
################################################################################
2-
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
3-
################################################################################
4-
1+
# Ignores in parent branch
2+
Makefile
3+
buildpkg.sh
4+
config.h
5+
config.h.in
6+
config.status
7+
configure
8+
openbsd-compat/Makefile
9+
openbsd-compat/regress/Makefile
10+
openssh.xml
11+
opensshd.init
12+
survey.sh
13+
**/*.o
14+
**/*.out
15+
**/*.a
16+
autom4te.cache/
17+
scp
18+
sftp
19+
sftp-server
20+
ssh
21+
ssh-add
22+
ssh-agent
23+
ssh-keygen
24+
ssh-keyscan
25+
ssh-keysign
26+
ssh-pkcs11-helper
27+
sshd
28+
# Ignores in Windows fork
529
/bin/x64/Debug
630
/contrib/win32/openssh/.vs/Win32-OpenSSH/v14
731
/contrib/win32/openssh/lib
@@ -33,31 +57,17 @@ bld/
3357
[Bb]in/
3458
[Oo]bj/
3559
[Ll]og/
36-
37-
# Visual Studio 2015 cache/options directory
3860
.vs/
39-
# Uncomment if you have tasks that create the project's static files in wwwroot
40-
#wwwroot/
41-
42-
# MSTest test Results
4361
[Tt]est[Rr]esult*/
4462
[Bb]uild[Ll]og.*
45-
46-
# NUNIT
47-
*.VisualState.xml
4863
TestResult.xml
49-
50-
# Build Results of an ATL Project
5164
[Dd]ebugPS/
5265
[Rr]eleasePS/
5366
dlldata.c
54-
55-
# DNX
5667
project.lock.json
5768
project.fragment.lock.json
5869
artifacts/
5970
Properties/launchSettings.json
60-
6171
*_i.c
6272
*_p.c
6373
*_i.h
@@ -284,4 +294,6 @@ __pycache__/
284294

285295
# Cake - Uncomment if you are using it
286296
# tools/
287-
contrib/win32/win32compat/inc/crtheaders.h
297+
contrib/win32/win32compat/inc/crtheaders.h
298+
299+
contrib/win32/openssh/LibreSSLSDK/

.skipped-commit-ids

+5
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ f6ae971186ba68d066cd102e57d5b0b2c211a5ee systrace is dead.
1111
96c5054e3e1f170c6276902d5bc65bb3b87a2603 remove DEBUGLIBS from Makefile
1212
6da9a37f74aef9f9cc639004345ad893cad582d8 Update moduli file
1313
77bcb50e47b68c7209c7f0a5a020d73761e5143b unset REGRESS_FAIL_EARLY
14+
38c2133817cbcae75c88c63599ac54228f0fa384 Change COMPILER_VERSION tests
15+
30c20180c87cbc99fa1020489fe7fd8245b6420c resync integrity.sh shell
16+
1e6b51ddf767cbad0a4e63eb08026c127e654308 integrity.sh reliability
17+
fe5b31f69a60d47171836911f144acff77810217 Makefile.inc bits
18+
5781670c0578fe89663c9085ed3ba477cf7e7913 Delete sshconnect1.c

LICENCE

+1-22
Original file line numberDiff line numberDiff line change
@@ -75,27 +75,6 @@ OpenSSH contains no GPL code.
7575
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
7676
POSSIBILITY OF SUCH DAMAGES.
7777

78-
2)
79-
The 32-bit CRC compensation attack detector in deattack.c was
80-
contributed by CORE SDI S.A. under a BSD-style license.
81-
82-
* Cryptographic attack detector for ssh - source code
83-
*
84-
* Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina.
85-
*
86-
* All rights reserved. Redistribution and use in source and binary
87-
* forms, with or without modification, are permitted provided that
88-
* this copyright notice is retained.
89-
*
90-
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
91-
* WARRANTIES ARE DISCLAIMED. IN NO EVENT SHALL CORE SDI S.A. BE
92-
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR
93-
* CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS
94-
* SOFTWARE.
95-
*
96-
* Ariel Futoransky <[email protected]>
97-
* <http://www.core-sdi.com>
98-
9978
3)
10079
ssh-keyscan was contributed by David Mazieres under a BSD-style
10180
license.
@@ -337,4 +316,4 @@ OpenSSH contains no GPL code.
337316

338317

339318
------
340-
$OpenBSD: LICENCE,v 1.19 2004/08/30 09:18:08 markus Exp $
319+
$OpenBSD: LICENCE,v 1.20 2017/04/30 23:26:16 djm Exp $

Makefile.in

+13-12
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ LIBOPENSSH_OBJS=\
7878
LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
7979
authfd.o authfile.o bufaux.o bufbn.o bufec.o buffer.o \
8080
canohost.o channels.o cipher.o cipher-aes.o cipher-aesctr.o \
81-
cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \
82-
compat.o crc32.o deattack.o fatal.o hostfile.o \
81+
cipher-ctr.o cleanup.o \
82+
compat.o crc32.o fatal.o hostfile.o \
8383
log.o match.o moduli.o nchan.o packet.o opacket.o \
8484
readpass.o rsa.o ttymodes.o xmalloc.o addrmatch.o \
8585
atomicio.o key.o dispatch.o mac.o uidswap.o uuencode.o misc.o utf8.o \
@@ -95,7 +95,7 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
9595
platform-pledge.o platform-tracing.o
9696

9797
SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \
98-
sshconnect.o sshconnect1.o sshconnect2.o mux.o
98+
sshconnect.o sshconnect2.o mux.o
9999

100100
SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o \
101101
audit.o audit-bsm.o audit-linux.o platform.o \
@@ -228,26 +228,27 @@ umac128.o: umac.c
228228
clean: regressclean
229229
rm -f *.o *.a $(TARGETS) logintest config.cache config.log
230230
rm -f *.out core survey
231+
rm -f regress/check-perm$(EXEEXT)
231232
rm -f regress/unittests/test_helper/*.a
232233
rm -f regress/unittests/test_helper/*.o
233234
rm -f regress/unittests/sshbuf/*.o
234-
rm -f regress/unittests/sshbuf/test_sshbuf
235+
rm -f regress/unittests/sshbuf/test_sshbuf$(EXEEXT)
235236
rm -f regress/unittests/sshkey/*.o
236-
rm -f regress/unittests/sshkey/test_sshkey
237+
rm -f regress/unittests/sshkey/test_sshkey$(EXEEXT)
237238
rm -f regress/unittests/bitmap/*.o
238-
rm -f regress/unittests/bitmap/test_bitmap
239+
rm -f regress/unittests/bitmap/test_bitmap$(EXEEXT)
239240
rm -f regress/unittests/conversion/*.o
240-
rm -f regress/unittests/conversion/test_conversion
241+
rm -f regress/unittests/conversion/test_conversion$(EXEEXT)
241242
rm -f regress/unittests/hostkeys/*.o
242-
rm -f regress/unittests/hostkeys/test_hostkeys
243+
rm -f regress/unittests/hostkeys/test_hostkeys$(EXEEXT)
243244
rm -f regress/unittests/kex/*.o
244-
rm -f regress/unittests/kex/test_kex
245+
rm -f regress/unittests/kex/test_kex$(EXEEXT)
245246
rm -f regress/unittests/match/*.o
246-
rm -f regress/unittests/match/test_match
247+
rm -f regress/unittests/match/test_match$(EXEEXT)
247248
rm -f regress/unittests/utf8/*.o
248-
rm -f regress/unittests/utf8/test_utf8
249+
rm -f regress/unittests/utf8/test_utf8$(EXEEXT)
249250
rm -f regress/misc/kexfuzz/*.o
250-
rm -f regress/misc/kexfuzz/kexfuzz
251+
rm -f regress/misc/kexfuzz/kexfuzz$(EXEEXT)
251252
(cd openbsd-compat && $(MAKE) clean)
252253

253254
distclean: regressclean

PROTOCOL.certkeys

+8-7
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,13 @@ compatibility.
192192
The reserved field is currently unused and is ignored in this version of
193193
the protocol.
194194

195-
signature key contains the CA key used to sign the certificate.
196-
The valid key types for CA keys are ssh-rsa, ssh-dss and the ECDSA types
197-
ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521. "Chained"
198-
certificates, where the signature key type is a certificate type itself
199-
are NOT supported. Note that it is possible for a RSA certificate key to
200-
be signed by a DSS or ECDSA CA key and vice-versa.
195+
The signature key field contains the CA key used to sign the
196+
certificate. The valid key types for CA keys are ssh-rsa,
197+
ssh-dss, ssh-ed25519 and the ECDSA types ecdsa-sha2-nistp256,
198+
ecdsa-sha2-nistp384, ecdsa-sha2-nistp521. "Chained" certificates, where
199+
the signature key type is a certificate type itself are NOT supported.
200+
Note that it is possible for a RSA certificate key to be signed by a
201+
Ed25519 or ECDSA CA key and vice-versa.
201202

202203
signature is computed over all preceding fields from the initial string
203204
up to, and including the signature key. Signatures are computed and
@@ -284,4 +285,4 @@ permit-user-rc empty Flag indicating that execution of
284285
of this script will not be permitted if
285286
this option is not present.
286287

287-
$OpenBSD: PROTOCOL.certkeys,v 1.10 2016/05/03 10:27:59 djm Exp $
288+
$OpenBSD: PROTOCOL.certkeys,v 1.11 2017/05/16 16:54:05 djm Exp $

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.0.14.0.{build}
1+
version: 0.0.15.0.{build}
22
image: Visual Studio 2015
33

44
branches:
@@ -37,4 +37,4 @@ after_test:
3737
on_finish:
3838
- ps: |
3939
Import-Module $env:APPVEYOR_BUILD_FOLDER\contrib\win32\openssh\AppveyorHelper.psm1 -DisableNameChecking
40-
Publish-Artifact
40+
Publish-Artifact

auth.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: auth.c,v 1.119 2016/12/15 21:29:05 dtucker Exp $ */
1+
/* $OpenBSD: auth.c,v 1.120 2017/05/17 01:24:17 djm Exp $ */
22
/*
33
* Copyright (c) 2000 Markus Friedl. All rights reserved.
44
*
@@ -651,6 +651,7 @@ getpwnamallow(const char *user)
651651

652652
ci->user = user;
653653
parse_server_match_config(&options, ci);
654+
log_change_level(options.log_level);
654655

655656
#if defined(_AIX) && defined(HAVE_SETAUTHDB)
656657
aix_setauthdb(user);

0 commit comments

Comments
 (0)