summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-03-07 04:41:49 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-03-07 04:41:49 +0000
commit7dc1b8a5ec66388433d5a494da6ecd82d49e4bb0 (patch)
tree62d142bdeb26c1f58ecd89fdbc838400af9b317f /regress
parent20ad745d0c92e523ba296e1701092d6110a275df (diff)
unbreak for w/SSH1 (default) case; ok markus@ deraadt@
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c b/regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
index c17b6f7de1f..d23c852e22e 100644
--- a/regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
+++ b/regress/usr.bin/ssh/unittests/hostkeys/test_iterate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_iterate.c,v 1.2 2015/03/04 23:22:35 djm Exp $ */
+/* $OpenBSD: test_iterate.c,v 1.3 2015/03/07 04:41:48 djm Exp $ */
/*
* Regress test for hostfile.h hostkeys_foreach()
*
@@ -137,8 +137,10 @@ prepare_expected(struct expected *expected, size_t n)
for (i = 0; i < n; i++) {
if (expected[i].key_file == NULL)
continue;
+#ifndef WITH_SSH1
if (expected[i].l.keytype == KEY_RSA1)
continue;
+#endif
ASSERT_INT_EQ(sshkey_load_public(
test_data_file(expected[i].key_file), &expected[i].l.key,
NULL), 0);