diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-23 10:54:24 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-03-23 17:54:02 +0100 |
commit | bace1d647971e8300c5abdb1e950adf3756ec328 (patch) | |
tree | a0ccd1429564ad37130c64bb377c1f5de6bb92d0 /src/libcharon/plugins/load_tester | |
parent | 4909612c3bcfb951a3f8ecccf433756b450f4e8e (diff) | |
download | strongswan-bace1d647971e8300c5abdb1e950adf3756ec328.tar.bz2 strongswan-bace1d647971e8300c5abdb1e950adf3756ec328.tar.xz |
diffie-hellman: Use bool instead of status_t as get_shared_secret() return value
While such a change is not unproblematic, keeping status_t makes the API
inconsistent once we introduce return values for the public value operations.
Diffstat (limited to 'src/libcharon/plugins/load_tester')
-rw-r--r-- | src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c b/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c index 94e1acc99..b248e78c5 100644 --- a/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c +++ b/src/libcharon/plugins/load_tester/load_tester_diffie_hellman.c @@ -26,11 +26,11 @@ METHOD(diffie_hellman_t, set_other_public_value, void, { } -METHOD(diffie_hellman_t, get_shared_secret, status_t, +METHOD(diffie_hellman_t, get_shared_secret, bool, load_tester_diffie_hellman_t *this, chunk_t *secret) { *secret = chunk_empty; - return SUCCESS; + return TRUE; } METHOD(diffie_hellman_t, get_dh_group, diffie_hellman_group_t, |