Add stricter checks for netnames.
[tinc] / src / ecdh.h
index 6d3b2f1..c5ea3ef 100644 (file)
 #ifndef __TINC_ECDH_H__
 #define __TINC_ECDH_H__
 
-#define ECDH_SIZE 67
-#define ECDH_SHARED_SIZE 66
+#define ECDH_SIZE 32
+#define ECDH_SHARED_SIZE 32
 
 #ifndef __TINC_ECDH_INTERNAL__
 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