diff options
Diffstat (limited to 'src/dht.c')
-rw-r--r-- | src/dht.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,7 @@ struct dht { char id[20]; int socket; + char secret[16]; /**< for calculating opaque write token, random */ }; struct node { char id[20]; @@ -12,3 +13,6 @@ struct node { time_t last; struct sockaddr addr; }; +void token (char * dest, struct sockaddr addr) {š + +} |