diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-03-04 23:22:35 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-03-05 10:27:22 +1100 |
commit | ac5e8acefa253eb5e5ba186e34236c0e8007afdc (patch) | |
tree | 94ce27024ed839d1f236d6a416215c91250c04be /regress/unittests/sshkey/test_file.c | |
parent | 2f04af92f036b0c87a23efb259c37da98cd81fe6 (diff) |
upstream commit
make these work with !SSH1; ok markus@ deraadt@
Diffstat (limited to 'regress/unittests/sshkey/test_file.c')
-rw-r--r-- | regress/unittests/sshkey/test_file.c | 4 |
1 files changed, 3 insertions, 1 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"); |