X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeshlink.h;h=169052e800929ce73f8c2a6c449bbb45d552c572;hb=1c31a5dc4b17c274aac48444a3fe0da35a2b409c;hp=4468fd0079e4c9a0b1da1b43de0eddadfb20d1ad;hpb=c63d82c4801e81988a1d88e466424a4466f83222;p=meshlink diff --git a/src/meshlink.h b/src/meshlink.h index 4468fd00..169052e8 100644 --- a/src/meshlink.h +++ b/src/meshlink.h @@ -32,6 +32,9 @@ extern "C" { /// The length in bytes of a signature made with meshlink_sign() #define MESHLINK_SIGLEN (64) +// The maximum length of fingerprints +#define MESHLINK_FINGERPRINTLEN (64) + /// A handle for an instance of MeshLink. typedef struct meshlink_handle meshlink_handle_t; @@ -574,7 +577,7 @@ extern ssize_t meshlink_channel_send(meshlink_handle_t *mesh, meshlink_channel_t * given hostname. The caller is free to overwrite or free * this memory once meshlink returns. */ -extern void meshlink_hint_address(meshlink_handle_t *mesh, const char *hostname, struct sockaddr *addr); +extern void meshlink_hint_address(meshlink_handle_t *mesh, meshlink_node_t *node, struct sockaddr *addr); #ifdef __cplusplus }