diff options
author | djm@openbsd.org <djm@openbsd.org> | 2017-12-21 00:41:22 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-01-03 16:46:49 +1100 |
commit | e6c4134165d05447009437a96e7201276688807f (patch) | |
tree | 02e2e3332f8c14cbfca64fa655aa6aacc0b60951 /regress/unittests/sshkey/test_fuzz.c | |
parent | d45d69f2a937cea215c7f0424e5a4677b6d8c7fe (diff) |
upstream commit
unbreak unit tests after removal of src/usr.bin/ssh/lib
OpenBSD-Regress-ID: 3a79760494147b20761cbd2bd5c20e86c63dc8f9
Diffstat (limited to 'regress/unittests/sshkey/test_fuzz.c')
-rw-r--r-- | regress/unittests/sshkey/test_fuzz.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/unittests/sshkey/test_fuzz.c b/regress/unittests/sshkey/test_fuzz.c index 6706045d5..d3b0c92b4 100644 --- a/regress/unittests/sshkey/test_fuzz.c +++ b/regress/unittests/sshkey/test_fuzz.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: test_fuzz.c,v 1.7 2017/04/30 23:33:48 djm Exp $ */ | 1 | /* $OpenBSD: test_fuzz.c,v 1.8 2017/12/21 00:41:22 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Fuzz tests for key parsing | 3 | * Fuzz tests for key parsing |
4 | * | 4 | * |
@@ -83,7 +83,7 @@ sig_fuzz(struct sshkey *k, const char *sig_alg) | |||
83 | fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* too slow FUZZ_2_BIT_FLIP | */ | 83 | fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* too slow FUZZ_2_BIT_FLIP | */ |
84 | FUZZ_1_BYTE_FLIP | FUZZ_2_BYTE_FLIP | | 84 | FUZZ_1_BYTE_FLIP | FUZZ_2_BYTE_FLIP | |
85 | FUZZ_TRUNCATE_START | FUZZ_TRUNCATE_END, sig, l); | 85 | FUZZ_TRUNCATE_START | FUZZ_TRUNCATE_END, sig, l); |
86 | ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), 0), 0); | 86 | ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), NULL, 0), 0); |
87 | free(sig); | 87 | free(sig); |
88 | TEST_ONERROR(onerror, fuzz); | 88 | TEST_ONERROR(onerror, fuzz); |
89 | for(; !fuzz_done(fuzz); fuzz_next(fuzz)) { | 89 | for(; !fuzz_done(fuzz); fuzz_next(fuzz)) { |
@@ -91,7 +91,7 @@ sig_fuzz(struct sshkey *k, const char *sig_alg) | |||
91 | if (fuzz_matches_original(fuzz)) | 91 | if (fuzz_matches_original(fuzz)) |
92 | continue; | 92 | continue; |
93 | ASSERT_INT_NE(sshkey_verify(k, fuzz_ptr(fuzz), fuzz_len(fuzz), | 93 | ASSERT_INT_NE(sshkey_verify(k, fuzz_ptr(fuzz), fuzz_len(fuzz), |
94 | c, sizeof(c), 0), 0); | 94 | c, sizeof(c), NULL, 0), 0); |
95 | } | 95 | } |
96 | fuzz_cleanup(fuzz); | 96 | fuzz_cleanup(fuzz); |
97 | } | 97 | } |