From 42431690e04a8614e759e0a3a3bcd76e30e6207e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 23 Mar 2015 11:37:27 +0100 Subject: diffie-hellman: Add a bool return value to get_my_public_value() --- src/libstrongswan/crypto/diffie_hellman.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstrongswan/crypto/diffie_hellman.h') diff --git a/src/libstrongswan/crypto/diffie_hellman.h b/src/libstrongswan/crypto/diffie_hellman.h index 79977d7da..f253f18c7 100644 --- a/src/libstrongswan/crypto/diffie_hellman.h +++ b/src/libstrongswan/crypto/diffie_hellman.h @@ -109,8 +109,10 @@ struct diffie_hellman_t { * Space for returned chunk is allocated and must be freed by the caller. * * @param value public value of caller is stored at this location + * @return TRUE if public value retrieved */ - void (*get_my_public_value) (diffie_hellman_t *this, chunk_t *value); + bool (*get_my_public_value) (diffie_hellman_t *this, chunk_t *value) + __attribute__((warn_unused_result)); /** * Get the DH group used. -- cgit v1.2.3