Darren Tucker
6ee53064f4
Fix helper include path and remove excess code.
...
Looks like test_hpdelim.c was imported twice into the same file.
Spotted by kevin.brott at gmail com and chris at cataclysmal org.
2022-02-11 10:05:31 +11:00
dtucker@openbsd.org
25bd659cc7
upstream: Add test for empty hostname with port.
...
OpenBSD-Regress-ID: e19e89d3c432b68997667efea44cf015bbe2a7e3
2022-02-10 15:17:28 +11:00
dtucker@openbsd.org
a29af853cf
upstream: Add unit tests for hpdelim.
...
OpenBSD-Regress-ID: be97b85c19895e6a1ce13c639765a3b48fd95018
2022-02-10 15:17:28 +11:00
Darren Tucker
976b9588b4
Wrap OpenSSL includes in unit tests in ifdef.
...
Fixes unit test on systems that do not have OpenSSL headers installed.
2022-01-14 13:47:27 +11:00
djm@openbsd.org
acabefe3f8
upstream: remove hardcoded domain and use window.location.host, so this
...
can be run anywhere
OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92
2022-01-12 09:36:01 +11:00
Damien Miller
715c892f0a
remove sys/param.h in -portable, after upstream
2021-12-22 09:02:50 +11:00
anton@openbsd.org
6e4980eb8e
upstream: Make use of ntests variable, pointed out by clang 13.
...
OpenBSD-Regress-ID: 4241a3d21bdfa1630ed429b6d4fee51038d1be72
2021-12-20 12:16:49 +11:00
deraadt@openbsd.org
3eead81583
upstream: sys/param.h cleanup, mostly using MINIMUM() and
...
<limits.h> ok dtucker
OpenBSD-Regress-ID: 172a4c45d3bcf92fa6cdf6c4b9db3f1b3abe4db0
2021-12-20 12:16:49 +11:00
Darren Tucker
40bd3709dd
Skip SK unit tests when built without security-key
2021-10-07 15:55:49 +11:00
Darren Tucker
b71b2508f1
Put stdint.h inside HAVE_STDINT_H.
...
From Tom G. Christensen.
2021-08-17 07:59:27 +10:00
djm@openbsd.org
9d38074b54
upstream: test for first-match-wins in authorized_keys environment=
...
options
OpenBSD-Regress-ID: 1517c90276fe84b5dc5821c59f88877fcc34c0e8
2021-07-24 12:31:05 +10:00
djm@openbsd.org
78e30af3e2
upstream: test argv_split() optional termination on comments
...
OpenBSD-Regress-ID: 9fd1c4a27a409897437c010cfd79c54b639a059c
2021-06-08 17:41:56 +10:00
djm@openbsd.org
1a4d1da918
upstream: fix memleak in test
...
OpenBSD-Regress-ID: 5e529d0982aa04666604936df43242e97a7a6f81
2021-06-01 14:38:41 +10:00
djm@openbsd.org
60455a5d98
upstream: also check contents of remaining string
...
OpenBSD-Regress-ID: d526fa07253f4eebbc7d6205a0ab3d491ec71a28
2021-06-01 14:38:41 +10:00
djm@openbsd.org
39f6cd2078
upstream: unit test for misc.c:strdelim() that mostly servces to
...
highlight its inconsistencies
OpenBSD-Regress-ID: 8d2bf970fcc01ccc6e36a5065f89b9c7fa934195
2021-06-01 14:38:41 +10:00
djm@openbsd.org
c0d7e36e97
upstream: dump out a usable private key string too; inspired by Tyson
...
Whitehead
OpenBSD-Regress-ID: 65572d5333801cb2f650ebc778cbdc955e372058
2021-05-07 12:36:24 +10:00
Darren Tucker
ae5f9b0d5c
Wrap sntrup761x25519 inside ifdef.
...
From balu.gajjala at gmail.com via bz#3306.
2021-04-29 13:01:50 +10:00
dtucker@openbsd.org
679bdc4a5c
upstream: Don't check return value of unsetenv(). It's part of the
...
environment setup and not part of the actual test, and some platforms
-portable runs on declare it as returning void, which prevents the test from
compiling.
OpenBSD-Regress-ID: 24f08543ee3cdebc404f2951f3e388cc82b844a1
2021-04-06 19:31:18 +10:00
Damien Miller
f3ca8af87a
enable authopt and misc unit tests
...
Neither were wired into the build, both required some build
adaptations for -portable
2021-04-03 18:21:08 +11:00
Damien Miller
f75bcbba58
missing bits from 259d648e
2021-04-03 16:22:48 +11:00
djm@openbsd.org
259d648e63
upstream: add a test for misc.c:argv_split(), currently fails
...
OpenBSD-Regress-ID: ad6b96d6ebeb9643b698b3575bdd6f78bb144200
2021-04-01 09:22:53 +11:00
djm@openbsd.org
473ddfc2d6
upstream: split
...
OpenBSD-Regress-ID: f6c03c0e4c58b3b9e04b161757b8c10dc8378c34
2021-04-01 09:22: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
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
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
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
djm@openbsd.org
e32479645c
upstream: adapt to API changes
...
OpenBSD-Regress-ID: 5f147990cb67094fe554333782ab268a572bb2dd
2020-08-27 13:58: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
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
Darren Tucker
73f20f195a
Wrap stdint.h in ifdef HAVE_STDINT_H.
2020-07-04 23:11:59 +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
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
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
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
dtucker@openbsd.org
abc3e0a517
upstream: Add utf8.c for asmprintf used by krl.c
...
OpenBSD-Regress-ID: 433708d11165afdb189fe635151d21659dd37a37
2020-04-10 11:47:40 +10:00
djm@openbsd.org
1e1db0544f
upstream: unbreak unittests for recent API / source file changes
...
OpenBSD-Regress-ID: 075a899a01bbf7781d38bf0b33d8366faaf6d3c0
2020-01-28 12:50:38 +11:00