aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/diffie_hellman.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-23 13:09:32 +0100
committerMartin Willi <martin@revosec.ch>2015-03-23 17:54:03 +0100
commita777155ffed7fc6382a2e344ebd748f70b1c61c2 (patch)
treea42f5956fce9b233e8dac63a92cb626a634a9942 /src/libstrongswan/crypto/diffie_hellman.h
parent42431690e04a8614e759e0a3a3bcd76e30e6207e (diff)
downloadstrongswan-a777155ffed7fc6382a2e344ebd748f70b1c61c2.tar.bz2
strongswan-a777155ffed7fc6382a2e344ebd748f70b1c61c2.tar.xz
diffie-hellman: Add a bool return value to set_other_public_value()
Diffstat (limited to 'src/libstrongswan/crypto/diffie_hellman.h')
-rw-r--r--src/libstrongswan/crypto/diffie_hellman.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/diffie_hellman.h b/src/libstrongswan/crypto/diffie_hellman.h
index f253f18c7..99df3cb6b 100644
--- a/src/libstrongswan/crypto/diffie_hellman.h
+++ b/src/libstrongswan/crypto/diffie_hellman.h
@@ -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.