summaryrefslogtreecommitdiff
path: root/regress/unittests
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-03-05 18:39:20 -0800
committerDamien Miller <djm@mindrot.org>2015-03-05 18:39:20 -0800
commitb44ee0c998fb4c5f3c3281f2398af5ce42840b6f (patch)
treeb6bb98c5ccdfc62ae35940cfbac5489d6fcdd2e0 /regress/unittests
parent55e5bdeb519cb60cc18b7ba0545be581fb8598b4 (diff)
unbreak hostkeys test for w/ SSH1 case
Diffstat (limited to 'regress/unittests')
-rw-r--r--regress/unittests/hostkeys/test_iterate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regress/unittests/hostkeys/test_iterate.c b/regress/unittests/hostkeys/test_iterate.c
index fc095ea4..5ea576c2 100644
--- a/regress/unittests/hostkeys/test_iterate.c
+++ b/regress/unittests/hostkeys/test_iterate.c
@@ -141,8 +141,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);