diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-09 12:22:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-09 12:22:04 +0100 |
commit | ec19c1e316efdd29a7af0524fc2ff33cc4b19d09 (patch) | |
tree | 184a59ff1c8408c462254e53f7e2004be829e237 /src/cadet/gnunet-service-cadet_paths.c | |
parent | c3ecadd45b11f82e22ba81b42864c7826d0f97c6 (diff) | |
download | gnunet-ec19c1e316efdd29a7af0524fc2ff33cc4b19d09.tar.gz gnunet-ec19c1e316efdd29a7af0524fc2ff33cc4b19d09.zip |
DHT: modify API and protocol messages to add path signatures, except for now the actual signatures are just placeholders (signing and signature verification are missing)
Diffstat (limited to 'src/cadet/gnunet-service-cadet_paths.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c index 2da4e2708..aa31aaa74 100644 --- a/src/cadet/gnunet-service-cadet_paths.c +++ b/src/cadet/gnunet-service-cadet_paths.c | |||
@@ -468,9 +468,9 @@ extend_path (struct CadetPeerPath *path, | |||
468 | * @return a path through the network | 468 | * @return a path through the network |
469 | */ | 469 | */ |
470 | void | 470 | void |
471 | GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | 471 | GCPP_try_path_from_dht (const struct GNUNET_DHT_PathElement *get_path, |
472 | unsigned int get_path_length, | 472 | unsigned int get_path_length, |
473 | const struct GNUNET_PeerIdentity *put_path, | 473 | const struct GNUNET_DHT_PathElement *put_path, |
474 | unsigned int put_path_length) | 474 | unsigned int put_path_length) |
475 | { | 475 | { |
476 | struct CadetPeer *cpath[get_path_length + put_path_length]; | 476 | struct CadetPeer *cpath[get_path_length + put_path_length]; |
@@ -490,8 +490,8 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
490 | const struct GNUNET_PeerIdentity *pid; | 490 | const struct GNUNET_PeerIdentity *pid; |
491 | 491 | ||
492 | pid = (off < get_path_length) | 492 | pid = (off < get_path_length) |
493 | ? &get_path[get_path_length - off - 1] | 493 | ? &get_path[get_path_length - off - 1].pred |
494 | : &put_path[get_path_length + put_path_length - off - 1]; | 494 | : &put_path[get_path_length + put_path_length - off - 1].pred; |
495 | /* Check that I am not in the path */ | 495 | /* Check that I am not in the path */ |
496 | if (0 == GNUNET_memcmp (&my_full_id, | 496 | if (0 == GNUNET_memcmp (&my_full_id, |
497 | pid)) | 497 | pid)) |