Damien Miller
4f29309c4c
unbreak fuzz harness
2018-01-03 19:50:43 +11:00
djm@openbsd.org
f6b50bf84d
upstream commit
...
another libssh casualty
OpenBSD-Regress-ID: 839b970560246de23e7c50215095fb527a5a83ec
2018-01-03 16:46:49 +11:00
djm@openbsd.org
5fb4fb5a01
upstream commit
...
missed one (unbreak after ssh/lib removal)
OpenBSD-Regress-ID: cfdd132143131769e2d2455e7892b5d55854c322
2018-01-03 16:46:49 +11:00
djm@openbsd.org
e6c4134165
upstream commit
...
unbreak unit tests after removal of src/usr.bin/ssh/lib
OpenBSD-Regress-ID: 3a79760494147b20761cbd2bd5c20e86c63dc8f9
2018-01-03 16:46:49 +11:00
djm@openbsd.org
c5a6cbdb79
upstream commit
...
explicitly test all key types and their certificate
counterparts
refactor a little
OpenBSD-Regress-ID: e9ecd5580821b9ef8b7106919c6980d8e45ca8c4
2017-12-19 16:19:18 +11:00
dtucker@openbsd.org
f689adb7a3
upstream commit
...
use cmp in a loop instead of diff -N to compare
directories. The former works on more platforms for Portable.
OpenBSD-Regress-ID: c3aa72807f9c488e8829a26ae50fe5bcc5b57099
2017-12-19 16:19:18 +11:00
Manoj Ampalam
2846d75e56
Merge branch 'master' of https://github.com/openssh/openssh-portable into m_temp
2017-11-16 14:03:24 -08:00
bagajjal
4fc40c0959
rename variable to NoLibressl
2017-11-07 16:07:16 -08:00
bagajjal
494faf24dd
Enable libressl as default and to disable use the switch
2017-11-07 13:57:08 -08:00
Manoj Ampalam
4edff78b9d
Fixed issue in POSIX layer that could truncate write streams ( #235 )
...
PowerShell/Win32-OpenSSH#908
2017-11-06 21:38:14 -08:00
Manoj Ampalam
c546971ca8
Fixed issue with ssh redirected stdin
...
PowerShell/Win32-OpenSSH#929
Issue: ReadThread prematurely returns on read io error. This results in APC never getting set and hence the corresponding fd is never set on select resulting the hang seen in issue 929.
Also removed the static instances storing sync io status, since there could be multiple sync fds operating at the same time. Moved the sync io status to w32_io object itself.
2017-11-03 13:16:23 -07:00
djm@openbsd.org@openbsd.org
f2ad63c071
upstream commit
...
whitespace at EOL
OpenBSD-Regress-ID: f4b5df99b28c6f63478deb916c6ed0e794685f07
2017-10-31 09:08:52 +11:00
djm@openbsd.org@openbsd.org
c6415b1f8f
upstream commit
...
whitespace at EOL
OpenBSD-Regress-ID: 19b1394393deee4c8a2114a3b7d18189f27a15cd
2017-10-31 09:08:51 +11:00
millert@openbsd.org@openbsd.org
e4d4ddbbba
upstream commit
...
Use printenv to test whether an SSH_USER_AUTH is set
instead of using $SSH_USER_AUTH. The latter won't work with csh which treats
unknown variables as an error when expanding them. OK markus@
OpenBSD-Regress-ID: f601e878dd8b71aa40381573dde3a8f567e6f2d1
2017-10-31 09:08:51 +11:00
millert@openbsd.org@openbsd.org
116b1b4394
upstream commit
...
Add tests for URI parsing. OK markus@
OpenBSD-Regress-ID: 5d1df19874f3b916d1a2256a905526e17a98bd3b
2017-10-31 09:08:51 +11:00
Damien Miller
d27bff293c
Fix missed RCSID merges
2017-10-20 13:22:00 +11:00
djm@openbsd.org
d3b6aeb546
upstream commit
...
more RCSIDs
Upstream-Regress-ID: 1aecbe3f8224793f0ec56741a86d619830eb33be
2017-10-20 13:15:40 +11:00
bagajjal
9555bd9e87
Fix the memset issue related to default cmd option ( #223 )
...
Fix the memset issue related to default cmd option
2017-10-16 19:03:02 -07:00
bagajjal
97959981f6
More fix of sftp scp file permission and test cases ( #222 )
...
More fix of sftp scp file permission and test cases
2017-10-16 14:46:37 -07:00
bagajjal
c9c715e707
Fix sftp scp file permission ( #212 )
...
PowerShell/Win32-OpenSSH#884
Convert the mode properly to file permissions.
If mode has "read" permission then we set the file permission to "read & execute"
If mode has "write" permission then we set the file permission to "Write & Modify"
Inherit the file permissions from the parent folder when sftp / scp creates the file on windows.
sftp - put & get.
scp - from local to remote windows machine.
2017-10-16 13:00:40 -07:00
bagajjal
9c95d8e2bb
allowing users to configure the default shell through windows registry ( #215 )
2017-10-16 10:45:11 -07:00
djm@openbsd.org
a66714508b
upstream commit
...
exercise PermitOpen a little more thoroughly
Upstream-Regress-ID: f41592334e227a4c1f9a983044522de4502d5eac
2017-10-05 05:51:46 +11:00
dtucker@openbsd.org
609ecc8e57
upstream commit
...
UsePrivilegeSeparation is gone, stop trying to test it.
Upstream-Regress-ID: 796a5057cfd79456a20ea935cc53f6eb80ace191
2017-10-05 05:51:46 +11:00
Manoj Ampalam
6fba3a2ae9
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-10-03 14:32:45 -07:00
Manoj Ampalam
72093244f9
Added test cases for certificate authentication ( #216 )
2017-10-03 12:21:08 -07:00
markus@openbsd.org
6a9481258a
upstream commit
...
test reverse dynamic forwarding with SOCKS
Upstream-Regress-ID: 95cf290470f7e5e2f691e4bc6ba19b91eced2f79
2017-09-26 16:56:15 +10:00
Damien Miller
1b9f321605
sync missing changes in dynamic-forward.sh
2017-09-26 16:55:55 +10:00
bluhm@openbsd.org
09eacf856e
upstream commit
...
Print SKIPPED if sudo and doas configuration is missing.
Prevents that running the regression test with wrong environment is reported
as failure. Keep the fatal there to avoid interfering with other setups for
portable ssh. OK dtucker@
Upstream-Regress-ID: f0dc60023caef496ded341ac5aade2a606fa234e
2017-09-18 14:13:02 +10:00
dtucker@openbsd.org
cdede10899
upstream commit
...
Remove obsolete privsep=no fallback test.
Upstream-Regress-ID: 7d6e1baa1678ac6be50c2a1555662eb1047638df
2017-09-18 14:11:42 +10:00
dtucker@openbsd.org
ec218c105d
upstream commit
...
Remove non-privsep test since disabling privsep is now
deprecated.
Upstream-Regress-ID: 77ad3f3d8d52e87f514a80f285c6c1229b108ce8
2017-09-18 14:11:22 +10:00
dtucker@openbsd.org
239c57d5bc
upstream commit
...
Don't call fatal from stop_sshd since it calls cleanup
which calls stop_sshd which will probably fail in the same way. Instead,
just bail. Differentiate between sshd dying without cleanup and not shutting
down.
Upstream-Regress-ID: f97315f538618b349e2b0bea02d6b0c9196c6bc4
2017-09-18 14:11:22 +10:00
Yanbing
18b1e5935b
multiple fixes for win7 ( #206 )
...
1. fix some exception when appverifier is enabled on win7 (https://gitthub.com/PowerShell/Win32-OpenSSH/issues/872 )
2. enable sshdconfig tests on win7(https://github.com/PowerShell/Win32-OpenSSH/issues/873 )
3. fix for https://github.com/PowerShell/Win32-OpenSSH/issues/874 ( ReadFile does not return on win7 when no content in console )
4. Remove logging to console in Readthread because write hangs here since write thread already closed (https://github.com/PowerShell/Win32-OpenSSH/issues/879 )
5. fix VCTargetsPath
2017-09-15 21:25:42 -07:00
Damien Miller
ec9d22cc25
Fuzzer harnesses for sig verify and pubkey parsing
...
These are some basic clang libfuzzer harnesses for signature
verification and public key parsing. Some assembly (metaphorical)
required.
2017-09-08 12:44:13 +10:00
bagajjal
ab2aefff6d
Fix allow/deny groups #816 ( #203 )
...
Fixing allow groups, deny groups. (PowerShell/Win32-OpenSSH#816 )
Convert users, groups read from sshd_config to lowercase.
2017-09-01 14:53:12 -07:00
Manoj Ampalam
55df531587
Updated tests to reflect merged changes
2017-08-28 12:13:01 -07:00
Yanbing
3c90af89a2
Updates needed for running test on windows inbox ( #189 )
...
Test updates needed for running test on windows inbox
2017-08-02 17:16:06 -07:00
Yanbing
b1a6fbca5e
Issue13 ( #184 )
...
Replace with secure APIs in win32compat
2017-07-19 15:28:35 -07:00
Yanbing
327f514f27
Test fixes for latest product changes ( #183 )
...
Update the string selection pattern for latest product changes
2017-07-10 13:53:44 -07:00
Manoj Ampalam
3dd748c035
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-07-08 23:18:28 -07:00
Yanbing
7cadeeb91b
Minor update on scp tests ( #178 )
...
1. remove -P option since test_target already has the port specified
2. adding quotes to sshcmd path
2017-07-01 16:53:55 -07:00
Yanbing
eb0ab1b522
test scripts update to run on win7 ( #174 )
...
PowerShell/Win32-OpenSSH#721
PowerShell/Win32-OpenSSH#771
PowerShell/Win32-OpenSSH#785
PowerShell/Win32-OpenSSH#786
2017-06-26 21:58:29 -07:00
Manoj Ampalam
f8f5e45f02
Decouple key-agent and privileged-agent use in sshd ( #173 )
...
PowerShell/Win32-OpenSSH#766
PowerShell/Win32-OpenSSH#783
2017-06-26 21:57:24 -07:00
djm@openbsd.org
c9cdef3552
upstream commit
...
regress test for ExposeAuthInfo
Upstream-Regress-ID: 190e5b6866376f4061c411ab157ca4d4e7ae86fd
2017-06-24 17:29:55 +10:00
Manoj Ampalam
dd88d8d5d4
Move to LibreSSL, Fixed issues arising from compiling Windows specific code at warling level 3
2017-06-13 10:33:47 -07:00
Manoj Ampalam
f7e6475b96
Merge remote-tracking branch 'openssh/master' into latestw
2017-06-07 21:46:18 -07:00
djm@openbsd.org
1de5e47a85
upstream commit
...
unbreak after sshv1 purge
Upstream-Regress-ID: 8ea01a92d5f571b9fba88c1463a4254a7552d51b
2017-06-08 13:11:11 +10:00
bagajjal
4879602b69
Docker#666 keyscan#731 posixcompatnewunittests ( #152 )
...
docker ssh issue
PowerShell/Win32-OpenSSH#666
a) fdopen changes to accept the /dev/null device
b) fix the select (using same fdset as readfdset, exceptfdset) issue with the unix opensssh code.
changed keyscan pester test to refer to localhost (127.0.0.1) instead of GitHub.com
PowerShell/Win32-OpenSSH#731
Fix the ASSERT_HANDLE issue..
ASSERT_HANDLE should fail if handle is either NULL or INVALID_HANDLE.
Added new testcases for the null device.
2017-05-26 15:40:59 -07:00
Yanbing
5989efcad6
fix issue when checking file permission and generate key under system context ( #150 )
...
PowerShell/Win32-OpenSSH#736
PowerShell/Win32-OpenSSH#735
2017-05-26 14:24:23 -07:00
Yanbing
81bcaaa7cf
Add mode support in open() and onboard file perm related changes and tests ( #145 )
...
PowerShell/Win32-OpenSSH#710
PowerShell/Win32-OpenSSH#725
PowerShell/Win32-OpenSSH#729
PowerShell/Win32-OpenSSH#731
PowerShell/Win32-OpenSSH#732
2017-05-23 21:45:38 -07:00
bagajjal
e296463fc8
Add new unit testcases ( #139 )
...
PowerShell/Win32-OpenSSH#605
PowerShell/Win32-OpenSSH#602
PowerShell/Win32-OpenSSH#603
2017-05-22 22:50:51 -07:00
bagajjal
4dbee0d15a
Onboard sshkeyscan ( #143 )
...
PowerShell/Win32-OpenSSH#124
PowerShell/Win32-OpenSSH#728
2017-05-22 22:18:41 -07:00
Manoj Ampalam
ba7cf86417
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-05-19 23:08:42 -07:00
Yanbing
afc6ca91f7
Fixes for #648 and #718
...
PowerShell/Win32-OpenSSH#648
PowerShell/Win32-OpenSSH#718
2017-05-18 12:15:18 -07:00
Yanbing
79662b9a6f
Suspended File permissions logic, cranked version.
2017-05-15 22:08:01 -07:00
Manoj Ampalam
742bf63d1a
E2E test updates
...
Updated README for test case indexing guidelines, added ssh_config and updated existing test cases
2017-05-12 14:09:50 -07:00
Manoj Ampalam
17efb12f6f
ssh client E2E tests ( #138 )
...
https://github.com/PowerShell/Win32-OpenSSH/issues/619
PowerShell/Win32-OpenSSH#623
* C2
* C3
* C4
* C5
2017-05-12 10:31:59 -07:00
Manoj Ampalam
9c0031de34
E2E tests for ssh key management
...
PowerShell/Win32-OpenSSH#613
2017-05-10 14:47:03 -07:00
Damien Miller
6bdf70f01e
clean up regress files and add a .gitignore
2017-05-09 18:41:54 -07:00
djm@openbsd.org
d757a4b633
upstream commit
...
fix for new SSH_ERR_KEY_LENGTH error value
Upstream-Regress-ID: c38a6e6174d4c3feca3518df150d4fbae0dca8dc
2017-05-08 16:11:26 +10:00
djm@openbsd.org
effaf526bf
upstream commit
...
remove arcfour, blowfish and CAST here too
Upstream-Regress-ID: c613b3bcbef75df1fe84ca4dc2d3ef253dc5e920
2017-05-08 11:54:17 +10:00
Yanbing
6b807ae229
file permission on ssh_config, authorized_keys, private keys, host keys, public keys. ( #110 )
...
1. Add file permission check when load or add ssh_config, authorized_keys, private keys, host keys,.
2. set the owner and ACE for create secure file, ex, private key in ssh-keygen.exe
3. Update script OpenSSHTestHelper.psm1 to be able to run Install-OpenSSH if the sshd is running on the machine.
4. add OpenSSHBinPath to path.
5. change indents in agentconfig.c
6. update test script to represent the changes
7. Add tests for:
* authorized_keys and ssh-keygen testing
* host keys file perm testing
* user private key file perm testing
* ssh-add test
* user ssh_config
2017-05-01 14:18:20 -07:00
djm@openbsd.org
dd369320d2
upstream commit
...
eliminate explicit specification of protocol in tests and
loops over protocol. We only support SSHv2 now.
Upstream-Regress-ID: 0082838a9b8a382b7ee9cbf0c1b9db727784fadd
2017-05-01 11:59:42 +10:00
djm@openbsd.org
557f921aad
upstream commit
...
remove SSHv1 support from unit tests
Upstream-Regress-ID: 395ca2aa48f1f7d23eefff6cb849ea733ca8bbfe
2017-05-01 10:07:19 +10:00
Darren Tucker
9504ea6b27
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@
2017-04-28 14:33:43 +10:00
Darren Tucker
06ec837a34
Id sync for integrity.sh rev 1.21 which pulls in some shell portability fixes
2017-04-28 14:30:03 +10:00
jsg@openbsd.org
e0194b471e
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
2017-04-28 13:28:49 +10:00
Manoj Ampalam
c3c5c1fa7f
Support I/O redirection in all ssh clients (ssh.exe, sftp.exe and scp.exe) ( #113 )
...
PowerShell/Win32-OpenSSH#668
2017-04-14 16:15:32 -07:00
bagajjal
589f2db723
Enabled SFTP E2E tests based on test framework changes ( #101 )
2017-03-31 11:47:24 -07:00
Yanbing
6c7fb47a07
Test scripts updates and readme ( #97 )
2017-03-29 12:48:26 -07:00
Manoj Ampalam
77117380e5
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-03-24 12:51:38 -07:00
Yanbing
425bc4033f
latestw + Test Infra upgrades
...
Includes
- CR changes for upstream PR
- Fix in spawn_child logic
- Test Infra upgrades
2017-03-24 12:35:52 -07:00
djm@openbsd.org
096fb65084
upstream commit
...
remove /usr/bin/time calls around tests, makes diffing test
runs harder. Based on patch from Mike Frysinger
Upstream-Regress-ID: 81c1083b14dcf473b23d2817882f40b346ebc95c
2017-03-21 09:09:59 +11:00
Damien Miller
9165abfea3
create test mux socket in /tmp
...
Creating the socket in $OBJ could blow past the (quite limited)
path limit for Unix domain sockets. As a bandaid for bz#2660,
reported by Colin Watson; ok dtucker@
2017-03-20 10:12:18 +11:00
Manoj Ampalam
78995b5a42
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-03-16 10:13:50 -07:00
Darren Tucker
2fbf91684d
Include includes.h for compat bits.
2017-03-16 14:05:46 +11:00
Darren Tucker
b55f634e96
Wrap stdint.h in #ifdef HAVE_STDINT_H
2017-03-16 13:45:17 +11:00
Manoj Ampalam
b69a1eda8e
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-03-14 13:02:26 -07:00
Darren Tucker
b1b22dd0df
Plumb conversion test into makefile.
2017-03-14 14:19:36 +11:00
dtucker@openbsd.org
f57783f1dd
upstream commit
...
Add unit test for convtime().
Upstream-Regress-ID: 8717bc0ca4c21120f6dd3a1d3b7a363f707c31e1
2017-03-14 13:45:14 +11:00
dtucker@openbsd.org
8884b7247d
upstream commit
...
Add ASSERT_LONG_* helpers.
Upstream-Regress-ID: fe15beaea8f5063c7f21b0660c722648e3d76431
2017-03-14 13:45:14 +11:00
djm@openbsd.org
8ff3fc3f2f
upstream commit
...
regress tests for loading certificates without public keys;
bz#2617 based on patch from Adam Eijdenberg; ok markus@ dtucker@
Upstream-Regress-ID: 0145d19328ed995b73fe2d9da33596b17429d0d0
2017-03-12 10:50:54 +11:00
Manoj Ampalam
119e3aa383
Merge branch 'master' of https://github.com/openssh/openssh-portable into latestw
2017-03-06 16:42:31 -08:00
djm@openbsd.org
d549919055
upstream commit
...
add test cases for C locale; ok schwarze@
Upstream-Regress-ID: 783d75de35fbc923d46e2a5e6cee30f8f381ba87
2017-02-19 11:19:12 +11:00
dtucker@openbsd.org
0c4430a19b
upstream commit
...
Remove deprecated SSH1 options RSAAuthentication and
RhostsRSAAuthentication from regression test sshd_config.
Upstream-Regress-ID: 8066b753d9dce7cf02ff87af5c727ff680d99491
2017-02-17 14:52:25 +11:00
Yanbing
8e9236b03b
Groupaccess support ( https://github.com/PowerShell/Win32-OpenSSH/issues/463 )
2017-02-14 13:43:06 -08:00
Manoj Ampalam
a73b5d6def
Cleaned up core sources for upstream PR ( #78 )
2017-02-10 14:02:02 -08:00
Manoj Ampalam
13f99e8cb8
Undo unwanted changes to unittest files
2017-02-05 17:08:04 -08:00
Manoj Ampalam
42670c7867
Merge remote-tracking branch 'origin/latestw' into latestw_all
2017-02-05 16:49:57 -08:00
Manoj Ampalam
f83d286c82
Disabling failing local to local scp test cases
2017-02-03 15:18:37 -08:00
djm@openbsd.org
97c31c46ee
upstream commit
...
unit test for match_filter_list() function; still want a
better name for this...
Upstream-Regress-ID: 840ad6118552c35111f0a897af9c8d93ab8de92a
2017-02-04 10:10:07 +11:00
bagajjal
7efb5b5a16
Fixed SFTP pester test cases ( https://github.com/PowerShell/Win32-OpenSSH/issues/506 )
2017-01-30 22:47:51 -08:00
djm@openbsd.org
f25ee13b3e
upstream commit
...
fully unbreak: some $SSH invocations did not have -F
specified and could pick up the ~/.ssh/config of the user running the tests
Upstream-Regress-ID: f362d1892c0d3e66212d5d3fc02d915c58ef6b89
2017-01-30 16:23:46 +11:00
djm@openbsd.org
6956e21fb2
upstream commit
...
partially unbreak: was not specifying hostname on some
$SSH invocations
Upstream-Regress-ID: bc8a5e98e57bad0a92ef4f34ed91c1d18294e2cc
2017-01-30 16:23:46 +11:00
djm@openbsd.org
01cfaa2b1c
upstream commit
...
use correct ssh-add program; bz#2654, from Colin Watson
Upstream-Regress-ID: 7042a36e1bdaec6562f6e57e9d047efe9c7a6030
2017-01-30 11:08:36 +11:00
dtucker@openbsd.org
e5c7ec67cd
upstream commit
...
Account for timeouts in the integrity tests as failures.
If the first test in a series for a given MAC happens to modify the low
bytes of a packet length, then ssh will time out and this will be
interpreted as a test failure. Patch from cjwatson at debian.org via
bz#2658.
Upstream-Regress-ID: e7467613b0badedaa300bc6fc7495ec2f44e2fb9
2017-01-30 11:08:36 +11:00
dtucker@openbsd.org
dbaf599b61
upstream commit
...
Make forwarding test less racy by using unix domain
sockets instead of TCP ports where possible. Patch from cjwatson at
debian.org via bz#2659.
Upstream-Regress-ID: 4756375aac5916ef9d25452a1c1d5fa9e90299a9
2017-01-30 11:08:18 +11:00
bagajjal
4132f8cebd
SFTP pester testcases ( #66 )
...
PowerShell/Win32-OpenSSH#499
PowerShell/Win32-OpenSSH#501
2017-01-28 11:59:51 -08:00
Manoj Ampalam
9bc3da7fa7
Cleaned up unittests ( https://github.com/PowerShell/Win32-OpenSSH/issues/477 )
...
unittest-sshkey.exe failures still need investigation
2017-01-27 14:11:27 -08:00
Yanbing
e3bec44766
Improvements to CI build and validation output
2017-01-27 10:47:20 -08:00
Manoj Ampalam
c6b57c018c
Got rid of w32posix.h and defs.h ( https://github.com/PowerShell/Win32-OpenSSH/issues/498 )
2017-01-25 14:43:55 -08:00