summaryrefslogtreecommitdiff
path: root/regress/unittests/sshkey
diff options
context:
space:
mode:
Diffstat (limited to 'regress/unittests/sshkey')
-rw-r--r--regress/unittests/sshkey/test_file.c4
-rw-r--r--regress/unittests/sshkey/test_fuzz.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/regress/unittests/sshkey/test_file.c b/regress/unittests/sshkey/test_file.c
index 9c38a7c61..fa95212bf 100644
--- a/regress/unittests/sshkey/test_file.c
+++ b/regress/unittests/sshkey/test_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: test_file.c,v 1.2 2014/12/22 02:15:52 djm Exp $ */ 1/* $OpenBSD: test_file.c,v 1.3 2015/03/04 23:22:35 djm Exp $ */
2/* 2/*
3 * Regress test for sshkey.h key management API 3 * Regress test for sshkey.h key management API
4 * 4 *
@@ -51,6 +51,7 @@ sshkey_file_tests(void)
51 pw = load_text_file("pw"); 51 pw = load_text_file("pw");
52 TEST_DONE(); 52 TEST_DONE();
53 53
54#ifdef WITH_SSH1
54 TEST_START("parse RSA1 from private"); 55 TEST_START("parse RSA1 from private");
55 buf = load_file("rsa1_1"); 56 buf = load_file("rsa1_1");
56 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", "rsa1_1", 57 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", "rsa1_1",
@@ -99,6 +100,7 @@ sshkey_file_tests(void)
99 TEST_DONE(); 100 TEST_DONE();
100 101
101 sshkey_free(k1); 102 sshkey_free(k1);
103#endif
102 104
103 TEST_START("parse RSA from private"); 105 TEST_START("parse RSA from private");
104 buf = load_file("rsa_1"); 106 buf = load_file("rsa_1");
diff --git a/regress/unittests/sshkey/test_fuzz.c b/regress/unittests/sshkey/test_fuzz.c
index 14518ce98..1f08a2e43 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.3 2015/01/26 06:11:28 djm Exp $ */ 1/* $OpenBSD: test_fuzz.c,v 1.4 2015/03/04 23:22:35 djm Exp $ */
2/* 2/*
3 * Fuzz tests for key parsing 3 * Fuzz tests for key parsing
4 * 4 *
@@ -104,6 +104,7 @@ sshkey_fuzz_tests(void)
104 struct fuzz *fuzz; 104 struct fuzz *fuzz;
105 int r; 105 int r;
106 106
107#ifdef WITH_SSH1
107 TEST_START("fuzz RSA1 private"); 108 TEST_START("fuzz RSA1 private");
108 buf = load_file("rsa1_1"); 109 buf = load_file("rsa1_1");
109 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_1_BYTE_FLIP | 110 fuzz = fuzz_begin(FUZZ_1_BIT_FLIP | FUZZ_1_BYTE_FLIP |
@@ -147,6 +148,7 @@ sshkey_fuzz_tests(void)
147 sshbuf_free(fuzzed); 148 sshbuf_free(fuzzed);
148 fuzz_cleanup(fuzz); 149 fuzz_cleanup(fuzz);
149 TEST_DONE(); 150 TEST_DONE();
151#endif
150 152
151 TEST_START("fuzz RSA private"); 153 TEST_START("fuzz RSA private");
152 buf = load_file("rsa_1"); 154 buf = load_file("rsa_1");