diffie-hellman: Add a bool return value to set_other_public_value()

This commit is contained in:
Martin Willi
2015-03-23 17:54:03 +01:00
parent 42431690e0
commit a777155ffe
19 changed files with 123 additions and 55 deletions
+3 -1
View File
@@ -100,8 +100,10 @@ struct diffie_hellman_t {
* Chunk gets cloned and can be destroyed afterwards.
*
* @param value public value of partner
* @return TRUE if other public value verified and set
*/
void (*set_other_public_value) (diffie_hellman_t *this, chunk_t value);
bool (*set_other_public_value)(diffie_hellman_t *this, chunk_t value)
__attribute__((warn_unused_result));
/**
* Gets the own public value to transmit.