summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2019-11-01 01:57:59 +0000
committerdjm <djm@openbsd.org>2019-11-01 01:57:59 +0000
commit2f595249eb70c24c2f87ca3714e742cb7e9d74a0 (patch)
tree627679944989c524c1130efc7762773f29bd57d3 /regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
parentskip security-key key types for tests until we have a dummy (diff)
downloadwireguard-openbsd-2f595249eb70c24c2f87ca3714e742cb7e9d74a0.tar.xz
wireguard-openbsd-2f595249eb70c24c2f87ca3714e742cb7e9d74a0.zip
adapt to extra sshkey_sign() argument and additional dependencies
Diffstat (limited to 'regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c')
-rw-r--r--regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c b/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
index d6d102a96c3..dd53af02587 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.9 2018/10/17 23:28:05 djm Exp $ */
+/* $OpenBSD: test_fuzz.c,v 1.10 2019/11/01 01:57:59 djm Exp $ */
/*
* Fuzz tests for key parsing
*
@@ -81,7 +81,8 @@ sig_fuzz(struct sshkey *k, const char *sig_alg)
if (test_is_slow())
fuzzers |= FUZZ_2_BIT_FLIP;
- ASSERT_INT_EQ(sshkey_sign(k, &sig, &l, c, sizeof(c), sig_alg, 0), 0);
+ ASSERT_INT_EQ(sshkey_sign(k, &sig, &l, c, sizeof(c),
+ sig_alg, NULL, 0), 0);
ASSERT_SIZE_T_GT(l, 0);
fuzz = fuzz_begin(fuzzers, sig, l);
ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), NULL, 0), 0);