summaryrefslogtreecommitdiffstats
path: root/src/dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht.c')
-rw-r--r--src/dht.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dht.c b/src/dht.c
index 629bf26..a8538b5 100644
--- a/src/dht.c
+++ b/src/dht.c
@@ -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) {š
+
+}