aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-07-07 20:29:24 +0200
committerChristian Grothoff <christian@grothoff.org>2022-07-07 20:29:24 +0200
commit3abeb45550e1cbf4939583c9b6ff48335fe6f1a9 (patch)
treea653991a417cc0a683a95d3b61c67e26fb341486 /src/cadet
parent2906241b6a21d6009a0d195199f3a08e8f4d4e2a (diff)
downloadgnunet-3abeb45550e1cbf4939583c9b6ff48335fe6f1a9.tar.gz
gnunet-3abeb45550e1cbf4939583c9b6ff48335fe6f1a9.zip
implemented new DHT path signing with origin authentication
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet_dht.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c
index d44a50f50..3df2687de 100644
--- a/src/cadet/gnunet-service-cadet_dht.c
+++ b/src/cadet/gnunet-service-cadet_dht.c
@@ -101,6 +101,7 @@ static struct GNUNET_TIME_Relative announce_delay;
101 * @param cls closure 101 * @param cls closure
102 * @param exp when will this value expire 102 * @param exp when will this value expire
103 * @param key key of the result 103 * @param key key of the result
104 * @param trunc_peer peer preceeding with invalid signature, or NULL
104 * @param get_path path of the get request 105 * @param get_path path of the get request
105 * @param get_path_length length of @a get_path 106 * @param get_path_length length of @a get_path
106 * @param put_path path of the put request 107 * @param put_path path of the put request
@@ -112,6 +113,7 @@ static struct GNUNET_TIME_Relative announce_delay;
112static void 113static void
113dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, 114dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
114 const struct GNUNET_HashCode *key, 115 const struct GNUNET_HashCode *key,
116 const struct GNUNET_PeerIdentity *trunc_peer,
115 const struct GNUNET_DHT_PathElement *get_path, 117 const struct GNUNET_DHT_PathElement *get_path,
116 unsigned int get_path_length, 118 unsigned int get_path_length,
117 const struct GNUNET_DHT_PathElement *put_path, 119 const struct GNUNET_DHT_PathElement *put_path,
@@ -122,6 +124,7 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp,
122{ 124{
123 const struct GNUNET_HELLO_Message *hello = data; 125 const struct GNUNET_HELLO_Message *hello = data;
124 126
127 (void) trunc_peer;
125 GCPP_try_path_from_dht (get_path, 128 GCPP_try_path_from_dht (get_path,
126 get_path_length, 129 get_path_length,
127 put_path, 130 put_path,