diff options
Diffstat (limited to 'regress/unittests/sshkey/test_fuzz.c')
-rw-r--r-- | regress/unittests/sshkey/test_fuzz.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |