diff options
author | teor <teor2345@gmail.com> | 2014-09-29 12:06:15 +1000 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2014-09-29 12:19:04 +1000 |
commit | ffd92e8ef885f4a63fd09892d508674c9b4a1daf (patch) | |
tree | cf1dfe86c54a54fcc6ad41ddad1ad7a05bc9c7fb /src/test/bench.c | |
parent | 47fab50cbaf3a41e8af9c63f645ad6075b43e565 (diff) | |
download | tor-ffd92e8ef885f4a63fd09892d508674c9b4a1daf.tar.gz tor-ffd92e8ef885f4a63fd09892d508674c9b4a1daf.zip |
Stop test & bench build failures with --disable-curve25519
Ensure test & bench code that references curve25519 is disabled by the
appropriate macros. tor now builds with and without --disable-curve25519.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index 98e45d2e00..1204854b36 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -236,7 +236,6 @@ bench_onion_ntor(void) ntor_handshake_state_free(state); dimap_free(keymap, NULL); } -#endif static void bench_ed25519(void) @@ -294,6 +293,7 @@ bench_ed25519(void) printf("Blind a public key: %.2f usec\n", MICROCOUNT(start, end, iters)); } +#endif static void bench_cell_aes(void) @@ -575,8 +575,8 @@ static struct benchmark_t benchmarks[] = { ENT(onion_TAP), #ifdef CURVE25519_ENABLED ENT(onion_ntor), -#endif ENT(ed25519), +#endif ENT(cell_aes), ENT(cell_ops), ENT(dh), |