]> git.meshlink.io Git - meshlink/blobdiff - src/ecdh.h
Fix broken build with --with-openssl, --with-libgcrypt.
[meshlink] / src / ecdh.h
index 6d3b2f10dbb222f1b93232f515ccf8dbee3e6612..fbd47292b614ca06098dd3153974b918918266c8 100644 (file)
@@ -27,8 +27,8 @@
 typedef struct ecdh ecdh_t;
 #endif
 
-extern ecdh_t *ecdh_generate_public(void *pubkey);
-extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared);
+extern ecdh_t *ecdh_generate_public(void *pubkey) __attribute__ ((__malloc__));
+extern bool ecdh_compute_shared(ecdh_t *ecdh, const void *pubkey, void *shared) __attribute__ ((__warn_unused_result__));
 extern void ecdh_free(ecdh_t *ecdh);
 
 #endif