dtucker@openbsd.org
b446c21427
upstream: hostname is not specified by POSIX but uname -n is, so use
...
the latter for portability. Patch from Geert Hendrickx via github PR#208.
OpenBSD-Regress-ID: d6a79c7c4d141a0d05ade4a042eb57dddbce89f3
2021-02-05 17:38:19 +11:00
Damien Miller
a5dfc5bae8
allow a fuzz case to contain more than one request
...
loop until input buffer empty, no message consumed or 256 messages
processed
2021-01-30 16:32:29 +11:00
Damien Miller
0ef24ad602
expect fuzz cases to have length prefix
...
might make life a little easier for the fuzzer, e.g. it can now
produce valid (multi-request) messages by smashing two cases together.
2021-01-30 16:28:23 +11:00
Damien Miller
de613f2713
ssh-agent fuzzer
2021-01-30 13:18:30 +11:00
Damien Miller
7e96c877bc
move keys out of kex_fuzz.cc into separate header
...
add certificates and missing key types
2021-01-30 12:02:46 +11:00
Damien Miller
76f46d7566
some fixed test data (mostly keys) for fuzzing
2021-01-30 12:02:10 +11:00
djm@openbsd.org
7c2e3d6de1
upstream: add a SK_DUMMY_INTEGRATE define that allows the dummy
...
security key middleware to be directly linked; useful for writing fuzzers,
etc.
OpenBSD-Regress-ID: 0ebd00159b58ebd85e61d8270fc02f1e45df1544
2021-01-30 11:58:38 +11:00
Damien Miller
1e660115f0
fuzz diffie-hellman-group-exchange-sha1 kex too
2021-01-29 11:09:14 +11:00
Damien Miller
be5f0048ea
support for running kex fuzzer with null cipher
2021-01-29 11:03:35 +11:00
Damien Miller
1134a48cdc
correct kex name in disabled code
2021-01-28 08:57:31 +11:00
dtucker@openbsd.org
6ffdcdda12
upstream: Fix long->int for convtime tests here too. Spotted by
...
tobhe@.
OpenBSD-Regress-ID: a87094f5863312d00938afba771d25f788c849d0
2021-01-22 16:07:02 +11:00
dtucker@openbsd.org
a8e798feab
upstream: Change types in convtime() unit test to int to match change
...
its new type. Add tests for boundary conditions and fix convtime to work up
to INT_MAX. ok djm@
OpenBSD-Regress-ID: ba2b81e9a3257fff204b020affe85b604a44f97e
2021-01-18 18:44:03 +11:00
anatasluo
1050109b4b
Remove duplicated declaration in fatal.c .
2021-01-12 07:08:26 +11:00
dtucker@openbsd.org
ba328bd7a6
upstream: Adjust kexfuzz to addr.c/addrmatch.c split.
...
OpenBSD-Regress-ID: 1d8d23bb548078020be2fb52c4c643efb190f0eb
2021-01-11 15:24:31 +11:00
dtucker@openbsd.org
b08ef25552
upstream: Update unittests for addr.c/addrmatch.c split.
...
OpenBSD-Regress-ID: de2b415fb7af084a91c6ef147a90482d8f771eef
2021-01-11 15:24:31 +11:00
Damien Miller
5c1953bf98
adapt KEX fuzzer to PQ kex change
2020-12-29 12:40:54 +11:00
djm@openbsd.org
659864fe81
upstream: Adapt to replacement of
...
sntrup4591761x25519-sha512@tinyssh.org with
sntrup761x25519-sha512@openssh.com .
Also test sntrup761x25519-sha512@openssh.com in unittests/kex
OpenBSD-Regress-ID: cfa3506b2b077a9cac1877fb521efd2641b6030c
2020-12-29 12:39:40 +11:00
Damien Miller
3e9811e57b
ensure $LOGNAME is set in tests
2020-12-22 18:31:50 +11:00
djm@openbsd.org
3eb647cbb3
upstream: more detail for failing tests
...
OpenBSD-Regress-ID: c68c0e5a521cad7e7f68e54c54ebf86d6c10ee1d
2020-12-22 17:48:31 +11:00
djm@openbsd.org
2873f19570
upstream: regress test for KnownHostsCommand
...
OpenBSD-Regress-ID: ffc77464320b6dabdcfa0a72e0df02659233a38a
2020-12-22 17:07:38 +11:00
dtucker@openbsd.org
649205fe38
upstream: Remove explicit rijndael-cbc@lysator.liu.se test since the
...
cipher was removed.
OpenBSD-Regress-ID: aa93cddb4ecd9bc21446a79008a1a53050e64f17
2020-12-22 10:30:23 +11:00
djm@openbsd.org
d97fb87972
upstream: adapt to API change in hostkeys_foreach()/load_hostkeys()
...
OpenBSD-Regress-ID: dcb468514f32da49a446372453497dc6eeafdbf3
2020-12-21 14:04:08 +11:00
djm@openbsd.org
bf7eb3c266
upstream: few more things needs match.c and addrmatch.c now that
...
log.c calls match_pattern_list()
OpenBSD-Regress-ID: f7c95c76b150d0aeb00a67858b9579b7d1b2db74
2020-12-21 14:04:08 +11:00
Darren Tucker
2c64f24e27
Pull in missing rev 1.2.
2020-12-21 14:02:56 +11:00
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