summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2015-01-26 06:11:28 +0000
committerdjm <djm@openbsd.org>2015-01-26 06:11:28 +0000
commitf427794ecf4f4eeb5a312a42c25600872ab47f40 (patch)
tree8ed581f50a7d611823369474554ed47c9baeb19d /regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c
parentcorrectly match ECDSA subtype (== curve) for offered/recevied (diff)
downloadwireguard-openbsd-f427794ecf4f4eeb5a312a42c25600872ab47f40.tar.xz
wireguard-openbsd-f427794ecf4f4eeb5a312a42c25600872ab47f40.zip
adapt to sshkey API tweaks
Diffstat (limited to 'regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c')
-rw-r--r--regress/usr.bin/ssh/unittests/sshkey/test_fuzz.c4
1 files changed, 2 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 0e9cb6f5a78..7fcc66cb91a 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.2 2015/01/18 19:53:58 djm Exp $ */
+/* $OpenBSD: test_fuzz.c,v 1.3 2015/01/26 06:11:28 djm Exp $ */
/*
* Fuzz tests for key parsing
*
@@ -47,7 +47,7 @@ public_fuzz(struct sshkey *k)
struct fuzz *fuzz;
ASSERT_PTR_NE(buf = sshbuf_new(), NULL);
- ASSERT_INT_EQ(sshkey_to_blob_buf(k, buf), 0);
+ ASSERT_INT_EQ(sshkey_putb(k, buf), 0);
/* XXX need a way to run the tests in "slow, but complete" mode */
fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | /* XXX too slow FUZZ_2_BIT_FLIP | */
FUZZ_1_BYTE_FLIP | /* XXX too slow FUZZ_2_BYTE_FLIP | */