diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-07 17:41:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-07 17:41:41 -0500 |
commit | a0577aacb4a94e803b4d9ec266e969f1aa5a88f3 (patch) | |
tree | c9cdc23534cc7e58a6f79494dce337130e50cd58 /src/test | |
parent | fdf68479b077c2b53fcdffd54e307f1258c81a4b (diff) | |
parent | 9bb34aa897e4ecac27a6f8d50a659803f73c6cb9 (diff) | |
download | tor-a0577aacb4a94e803b4d9ec266e969f1aa5a88f3.tar tor-a0577aacb4a94e803b4d9ec266e969f1aa5a88f3.tar.gz |
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/bench.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index e650569a7..ae311b53c 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -438,6 +438,10 @@ bench_ecdh_impl(int nid, const char *name) ssize_t slen_a, slen_b; EC_KEY *dh_a = EC_KEY_new_by_curve_name(nid); EC_KEY *dh_b = EC_KEY_new_by_curve_name(nid); + if (!dh_a || !dh_b) { + puts("Skipping. (No implementation?)"); + return; + } EC_KEY_generate_key(dh_a); EC_KEY_generate_key(dh_b); |