diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-23 11:37:27 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-03-23 17:54:03 +0100 |
commit | 42431690e04a8614e759e0a3a3bcd76e30e6207e (patch) | |
tree | 4c473700dffe096c07d8117fb7a0df71fc5be56f /scripts | |
parent | 8a7dbf3c2a0a4e8a4a503b630dbad0d46ae25756 (diff) | |
download | strongswan-42431690e04a8614e759e0a3a3bcd76e30e6207e.tar.bz2 strongswan-42431690e04a8614e759e0a3a3bcd76e30e6207e.tar.xz |
diffie-hellman: Add a bool return value to get_my_public_value()
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dh_speed.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/dh_speed.c b/scripts/dh_speed.c index 8a782d80b..21652e787 100644 --- a/scripts/dh_speed.c +++ b/scripts/dh_speed.c @@ -15,6 +15,7 @@ #include <stdio.h> #include <time.h> +#include <assert.h> #include <library.h> #include <utils/debug.h> #include <crypto/diffie_hellman.h> @@ -88,12 +89,12 @@ static void run_test(diffie_hellman_group_t group, int rounds) for (round = 0; round < rounds; round++) { - l[round]->get_my_public_value(l[round], &chunk); + assert(l[round]->get_my_public_value(l[round], &chunk)); r->set_other_public_value(r, chunk); chunk_free(&chunk); } - r->get_my_public_value(r, &chunk); + assert(r->get_my_public_value(r, &chunk)); start_timing(&timing); for (round = 0; round < rounds; round++) { |