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 /src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c | |
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 'src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c')
-rw-r--r-- | src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c b/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c index d07999dfb..89740a0ec 100644 --- a/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c +++ b/src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c @@ -144,7 +144,7 @@ METHOD(diffie_hellman_t, set_other_public_value, void, mpz_clear(p_min_1); } -METHOD(diffie_hellman_t, get_my_public_value, void, +METHOD(diffie_hellman_t, get_my_public_value, bool, private_gmp_diffie_hellman_t *this,chunk_t *value) { value->len = this->p_len; @@ -153,6 +153,7 @@ METHOD(diffie_hellman_t, get_my_public_value, void, { value->len = 0; } + return TRUE; } METHOD(diffie_hellman_t, get_shared_secret, bool, |