Damien Miller
a5ab499bd2
basic KEX fuzzer; adapted from Markus' unittest
2020-12-04 14:01:27 +11:00
Damien Miller
021ff33e38
use options that work with recent clang
2020-12-04 13:57:43 +11:00
Darren Tucker
637017a7dd
Use "=" not "==" in string test.
...
POSIX says "=" is string comparison and some shells (eg HP-UX) will
complain about "==".
2020-11-25 17:38:46 +11:00
djm@openbsd.org
816036f142
upstream: use the new variant log macros instead of prepending
...
__func__ and appending ssh_err(r) manually; ok markus@
OpenBSD-Commit-ID: 1f14b80bcfa85414b2a1a6ff714fb5362687ace8
2020-10-18 23:46:29 +11:00
Damien Miller
d55dfed34e
missing header
2020-10-17 22:55:24 +11:00
Damien Miller
999d7cb79a
sync regress/misc/sk-dummy/fatal.c
2020-10-17 22:47:52 +11:00
Damien Miller
0f938f9986
adapt sk-dummy's fatal implementation to changes
2020-10-17 11:42:26 +11:00
Damien Miller
afbd9ec9e2
fix netcat build problem
2020-10-17 11:33:13 +11:00
wangxp006
67146c7d02
fix TEST_MALLOC_OPTIONS var
2020-10-08 21:15:17 +11:00
djm@openbsd.org
e8dfca9bfe
upstream: remove GlobalKnownHostsFile for this test after
...
UpdateHostkeys change
OpenBSD-Regress-ID: a940ad79d59343319613ba8fc46b6ef24aa3f8e1
2020-10-07 17:39:17 +11:00
djm@openbsd.org
bbf20ac806
upstream: adapt to SSH_SK_VERSION_MAJOR crank
...
OpenBSD-Regress-ID: 0f3e76bdc8f9dbd9d22707c7bdd86051d5112ab8
2020-09-09 13:12:29 +10:00
dtucker@openbsd.org
9afe2a1508
upstream: Ensure that address/mask mismatches are flagged at
...
config-check time. ok djm@
OpenBSD-Regress-ID: 8f5f4c2c0bf00e6ceae7a1755a444666de0ea5c2
2020-09-09 13:12:29 +10:00
djm@openbsd.org
e32479645c
upstream: adapt to API changes
...
OpenBSD-Regress-ID: 5f147990cb67094fe554333782ab268a572bb2dd
2020-08-27 13:58:23 +10:00
djm@openbsd.org
9cbbdc12cb
upstream: dummy firmware needs to match API version numner crank (for
...
verify-required resident keys) even though it doesn't implement this feature
OpenBSD-Regress-ID: 86579ea2891e18e822e204413d011b2ae0e59657
2020-08-27 12:16:23 +10:00
Darren Tucker
62c81ef531
Skip ECDSA-SK webauthn test when built w/out ECC
2020-07-20 22:12:07 +10:00
dtucker@openbsd.org
40649bd082
upstream: Add test for '%k' (HostKeyAlias) TOKEN.
...
OpenBSD-Regress-ID: 8ed1ba1a811790031aad3fcea860a34ad7910456
2020-07-17 18:03:12 +10:00
dtucker@openbsd.org
6736fe6807
upstream: Add tests for expansions on UserKnownHostsFile.
...
OpenBSD-Regress-ID: bccf8060306c841bbcceb1392644f906a4d6ca51
2020-07-17 13:53:04 +10:00
dtucker@openbsd.org
9c9ddc1391
upstream: Fix previous by calling the correct function.
...
OpenBSD-Regress-ID: 821cdd1dff9c502cceff4518b6afcb81767cad5a
2020-07-15 17:11:08 +10:00
dtucker@openbsd.org
f1a4798941
upstream: Update test to match recent change in match.c
...
OpenBSD-Regress-ID: 965bda1f95f09a765050707340c73ad755f41167
2020-07-15 16:01:29 +10:00
dtucker@openbsd.org
03da4c2b70
upstream: Use $OBJ to find key files. Fixes test when run on an obj
...
directory (on OpenBSD) or out of tree (in Portable).
OpenBSD-Regress-ID: 938fa8ac86adaa527d64a305bd2135cfbb1c0a17
2020-07-15 15:02:52 +10:00
Darren Tucker
73f20f195a
Wrap stdint.h in ifdef HAVE_STDINT_H.
2020-07-04 23:11:59 +10:00
djm@openbsd.org
e073106f37
upstream: regress test for ssh-add -d; ok dtucker@
...
OpenBSD-Regress-ID: 3a2e044be616afc7dd4f56c100179e83b33d8abf
2020-06-26 15:25:58 +10:00
markus@openbsd.org
c809daaa1b
upstream: add test for mux w/-Oproxy; ok djm
...
OpenBSD-Regress-ID: 764d5c696e2a259f1316a056e225e50023abb027
2020-06-26 15:25:57 +10:00
Damien Miller
5098b3b623
missing files for webauthn/sshsig unit test
2020-06-22 16:54:02 +10:00
djm@openbsd.org
354535ff79
upstream: add support for verification of webauthn sshsig signature,
...
and example HTML/JS to generate webauthn signatures in SSH formats (also used
to generate the testdata/* for the test).
OpenBSD-Regress-ID: dc575be5bb1796fdf4b8aaee0ef52a6671a0f6fb
2020-06-22 16:33:33 +10:00
Darren Tucker
9e06572959
Add includes.h to new test.
...
Fixes warnings eg "´bounded´ attribute directive ignor" from gcc.
2020-06-19 18:47:56 +10:00
Darren Tucker
e684b1ea36
Skip OpenSSL specific tests w/out OpenSSL.
...
Allows unit tests to pass when configure'ed --without-openssl.
2020-06-19 18:38:39 +10:00
Darren Tucker
80610e97a7
Hook sshsig tests up to Portable Makefiles.
2020-06-19 17:15:27 +10:00
dtucker@openbsd.org
5dba1fcaba
upstream: Test that ssh-agent exits when running as as subprocess
...
of a specified command (ie "ssh-agent command"). Would have caught bz#3181.
OpenBSD-Regress-ID: 895b4765ba5153eefaea3160a7fe08ac0b6db8b3
2020-06-19 16:06:53 +10:00
djm@openbsd.org
68e8294f6b
upstream: run sshsig unit tests
...
OpenBSD-Regress-ID: 706ef17e2b545b64873626e0e35553da7c06052a
2020-06-19 16:06:06 +10:00
djm@openbsd.org
5edfa1690e
upstream: basic unit test for sshsig.[ch], including FIDO keys
...
verification only so far
OpenBSD-Regress-ID: fb1f946c8fc59206bc6a6666e577b5d5d7e45896
2020-06-19 16:06:06 +10:00
djm@openbsd.org
e95c0a0e96
upstream: basic unit test for FIDO kep parsing
...
OpenBSD-Regress-ID: 8089b88393dd916d7c95422b442a6fd4cfe00c82
2020-06-19 15:58:10 +10:00
Darren Tucker
837ffa9699
Omit ToS setting if we don't have IPV6_TCLASS too.
...
Fixes tests on old BSDs.
2020-05-29 20:39:00 +10:00
dtucker@openbsd.org
058674a62f
upstream: Add regression and unit tests for ${ENV} style
...
environment variable expansion in various keywords (bz#3140). ok djm@
OpenBSD-Regress-ID: 4d9ceb95d89365b7b674bc26cf064c15a5bbb197
2020-05-29 15:48:15 +10:00
dtucker@openbsd.org
0b15892fc4
upstream: Unit test for convtime. ok djm@
...
OpenBSD-Regress-ID: cec4239efa2fc4c7062064f07a847e1cbdbcd5dd
2020-05-29 15:48:10 +10:00
sobrado
0b0d219313
partial sync of regress/netcat.c with upstream
...
synchronize synopsis and usage.
2020-05-29 14:48:02 +10:00
chl
0f04c8467f
partial sync of regress/netcat.c with upstream
...
remove unused variable
ok tedu@
2020-05-29 14:47:56 +10:00
tobias
d6a81050ac
partial sync of regress/netcat.c with upstream
...
The code in socks.c writes multiple times in a row to a socket. If the socket becomes invalid between these calls (e.g. connection closed), write will throw SIGPIPE. With this patch, SIGPIPE is ignored so we can handle write's -1 return value (errno will be EPIPE). Ultimately, it leads to program exit, too -- but with nicer error message. :)
with input by and ok djm
2020-05-29 14:47:50 +10:00
tobias
bf3893dddd
partial sync of regress/netcat.c with upstream
...
Check for short writes in fdpass(). Clean up while at it.
ok djm
2020-05-29 14:47:41 +10:00
jca
e18435fec1
partial sync of regress/netcat.c with upstream
...
Support for nc -T on IPv6 addresses.
ok sthen@
2020-05-29 14:47:11 +10:00
djm@openbsd.org
47adfdc07f
upstream: two new tests for Include in sshd_config, checking whether
...
Port directives are processed correctly and handling of Include directives
that appear before Match. Both tests currently fail. bz#3122 and bz#3169 -
patch from Jakub Jelen
OpenBSD-Regress-ID: 8ad5a4a385a63f0a1c59c59c763ff029b45715df
2020-05-28 08:42:01 +10:00
Damien Miller
3ab6fccc39
prefer ln to cp for temporary copy of sshd
...
I saw failures on the reexec fallback test on Darwin 19.4 where
fork()ed children of a process that had it's executable removed
would instantly fail. Using ln to preserve the inode avoids this.
2020-05-14 12:24:24 +10:00
Darren Tucker
f700d316c6
Actually skip pty tests when needed.
2020-05-13 15:24:51 +10:00
Darren Tucker
c13403e55d
Skip security key tests if ENABLE_SK not set.
2020-05-05 11:32:43 +10:00
djm@openbsd.org
4da393f87c
upstream: sure enough, some of the test data that we though were in
...
new format were actually in the old format; fix from Michael Forney
OpenBSD-Regress-ID: a41a5c43a61b0f0b1691994dbf16dfb88e8af933
2020-05-04 18:42:13 +10:00
djm@openbsd.org
15bfafc1db
upstream: make mktestdata.sh generate old/new format keys that we
...
expect. This script was written before OpenSSH switched to new-format private
keys by default and was never updated to the change (until now) From Michael
Forney
OpenBSD-Regress-ID: 38cf354715c96852e5b71c2393fb6e7ad28b7ca7
2020-05-04 18:42:13 +10:00
djm@openbsd.org
7882d2eda6
upstream: portability fix for sed that always emil a newline even
...
if the input does not contain one; from Michael Forney
OpenBSD-Regress-ID: 9190c3ddf0d2562ccc02c4a95fce0e392196bfc7
2020-05-04 18:42:13 +10:00
djm@openbsd.org
8074f9499e
upstream: remove obsolete RSA1 test keys; spotted by Michael Forney
...
OpenBSD-Regress-ID: 6384ba889594e217d166908ed8253718ab0866da
2020-05-04 18:42:13 +10:00
Damien Miller
90a0b434ed
fix reversed test
2020-05-01 13:55:03 +10:00
djm@openbsd.org
a01817a9f6
upstream: adapt dummy FIDO middleware to API change; ok markus@
...
OpenBSD-Regress-ID: 8bb84ee500c2eaa5616044314dd0247709a1790f
2020-05-01 13:13:36 +10:00