diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-23 13:09:32 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-03-23 17:54:03 +0100 |
commit | a777155ffed7fc6382a2e344ebd748f70b1c61c2 (patch) | |
tree | a42f5956fce9b233e8dac63a92cb626a634a9942 /scripts/dh_speed.c | |
parent | 42431690e04a8614e759e0a3a3bcd76e30e6207e (diff) | |
download | strongswan-a777155ffed7fc6382a2e344ebd748f70b1c61c2.tar.bz2 strongswan-a777155ffed7fc6382a2e344ebd748f70b1c61c2.tar.xz |
diffie-hellman: Add a bool return value to set_other_public_value()
Diffstat (limited to 'scripts/dh_speed.c')
-rw-r--r-- | scripts/dh_speed.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/dh_speed.c b/scripts/dh_speed.c index 21652e787..0643ea92a 100644 --- a/scripts/dh_speed.c +++ b/scripts/dh_speed.c @@ -90,7 +90,7 @@ static void run_test(diffie_hellman_group_t group, int rounds) for (round = 0; round < rounds; round++) { assert(l[round]->get_my_public_value(l[round], &chunk)); - r->set_other_public_value(r, chunk); + assert(r->set_other_public_value(r, chunk)); chunk_free(&chunk); } @@ -98,7 +98,7 @@ static void run_test(diffie_hellman_group_t group, int rounds) start_timing(&timing); for (round = 0; round < rounds; round++) { - l[round]->set_other_public_value(l[round], chunk); + assert(l[round]->set_other_public_value(l[round], chunk)); } printf(" | S = B^a/s: %8.1f\n", rounds / end_timing(&timing)); chunk_free(&chunk); @@ -144,4 +144,3 @@ int main(int argc, char *argv[]) } return 0; } - |