summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2017-12-21 00:41:22 +0000
committerdjm <djm@openbsd.org>2017-12-21 00:41:22 +0000
commit6d7d1063343b3971a0baa9e3aa85ae234a15edd7 (patch)
tree15f1210c0c9b35720b80a564e6a6b84bded77d2b /regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
parentImplement missing bits to support lazy binding. Note that the code (diff)
downloadwireguard-openbsd-6d7d1063343b3971a0baa9e3aa85ae234a15edd7.tar.xz
wireguard-openbsd-6d7d1063343b3971a0baa9e3aa85ae234a15edd7.zip
unbreak unit tests after removal of src/usr.bin/ssh/lib
Diffstat (limited to 'regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c')
-rw-r--r--regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c b/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
index 91418d8bab1..342ea695c73 100644
--- a/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
+++ b/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_fuzz.c,v 1.7 2017/04/30 23:33:48 djm Exp $ */
+/* $OpenBSD: test_fuzz.c,v 1.8 2017/12/21 00:41:22 djm Exp $ */
/*
* Fuzz tests for key parsing
*
@@ -77,7 +77,7 @@ sig_fuzz(struct sshkey *k, const char *sig_alg)
fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* too slow FUZZ_2_BIT_FLIP | */
FUZZ_1_BYTE_FLIP | FUZZ_2_BYTE_FLIP |
FUZZ_TRUNCATE_START | FUZZ_TRUNCATE_END, sig, l);
- ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), 0), 0);
+ ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), NULL, 0), 0);
free(sig);
TEST_ONERROR(onerror, fuzz);
for(; !fuzz_done(fuzz); fuzz_next(fuzz)) {
@@ -85,7 +85,7 @@ sig_fuzz(struct sshkey *k, const char *sig_alg)
if (fuzz_matches_original(fuzz))
continue;
ASSERT_INT_NE(sshkey_verify(k, fuzz_ptr(fuzz), fuzz_len(fuzz),
- c, sizeof(c), 0), 0);
+ c, sizeof(c), NULL, 0), 0);
}
fuzz_cleanup(fuzz);
}