diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-07-07 20:29:24 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-07-07 20:29:24 +0200 |
commit | 3abeb45550e1cbf4939583c9b6ff48335fe6f1a9 (patch) | |
tree | a653991a417cc0a683a95d3b61c67e26fb341486 /src/gns | |
parent | 2906241b6a21d6009a0d195199f3a08e8f4d4e2a (diff) | |
download | gnunet-3abeb45550e1cbf4939583c9b6ff48335fe6f1a9.tar.gz gnunet-3abeb45550e1cbf4939583c9b6ff48335fe6f1a9.zip |
implemented new DHT path signing with origin authentication
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 9d26e1777..0d844bc2e 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -1335,7 +1335,6 @@ handle_gns_redirect_result (struct GNS_ResolverHandle *rh, | |||
1335 | } | 1335 | } |
1336 | 1336 | ||
1337 | 1337 | ||
1338 | |||
1339 | /** | 1338 | /** |
1340 | * We encountered a CNAME record during our resolution. | 1339 | * We encountered a CNAME record during our resolution. |
1341 | * Merge it into our chain. | 1340 | * Merge it into our chain. |
@@ -1392,7 +1391,6 @@ handle_gns_resolution_result (void *cls, | |||
1392 | const struct GNUNET_GNSRECORD_Data *rd); | 1391 | const struct GNUNET_GNSRECORD_Data *rd); |
1393 | 1392 | ||
1394 | 1393 | ||
1395 | |||
1396 | /** | 1394 | /** |
1397 | * We have resolved one or more of the nameservers for a | 1395 | * We have resolved one or more of the nameservers for a |
1398 | * GNS2DNS lookup. Once we have some of them, begin using | 1396 | * GNS2DNS lookup. Once we have some of them, begin using |
@@ -1592,6 +1590,7 @@ handle_gns2dns_ip (void *cls, | |||
1592 | ac->authority_info.dns_authority.found = GNUNET_YES; | 1590 | ac->authority_info.dns_authority.found = GNUNET_YES; |
1593 | } | 1591 | } |
1594 | 1592 | ||
1593 | |||
1595 | /** | 1594 | /** |
1596 | * We found a REDIRECT record, perform recursive resolution on it. | 1595 | * We found a REDIRECT record, perform recursive resolution on it. |
1597 | * | 1596 | * |
@@ -2329,7 +2328,7 @@ handle_gns_resolution_result (void *cls, | |||
2329 | _ ("Unable to process critical delegation record\n")); | 2328 | _ ("Unable to process critical delegation record\n")); |
2330 | break; | 2329 | break; |
2331 | } | 2330 | } |
2332 | fail: | 2331 | fail: |
2333 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2332 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
2334 | _ ("GNS lookup recursion failed (no delegation record found)\n")); | 2333 | _ ("GNS lookup recursion failed (no delegation record found)\n")); |
2335 | fail_resolution (rh); | 2334 | fail_resolution (rh); |
@@ -2370,6 +2369,7 @@ namecache_cache_continuation (void *cls, | |||
2370 | * @param cls closure with the `struct GNS_ResolverHandle` | 2369 | * @param cls closure with the `struct GNS_ResolverHandle` |
2371 | * @param exp when will this value expire | 2370 | * @param exp when will this value expire |
2372 | * @param key key of the result | 2371 | * @param key key of the result |
2372 | * @param trunc_peer truncated peer, NULL if not truncated | ||
2373 | * @param get_path peers on reply path (or NULL if not recorded) | 2373 | * @param get_path peers on reply path (or NULL if not recorded) |
2374 | * [0] = datastore's first neighbor, [length - 1] = local peer | 2374 | * [0] = datastore's first neighbor, [length - 1] = local peer |
2375 | * @param get_path_length number of entries in @a get_path | 2375 | * @param get_path_length number of entries in @a get_path |
@@ -2384,6 +2384,7 @@ static void | |||
2384 | handle_dht_response (void *cls, | 2384 | handle_dht_response (void *cls, |
2385 | struct GNUNET_TIME_Absolute exp, | 2385 | struct GNUNET_TIME_Absolute exp, |
2386 | const struct GNUNET_HashCode *key, | 2386 | const struct GNUNET_HashCode *key, |
2387 | const struct GNUNET_PeerIdentity *trunc_peer, | ||
2387 | const struct GNUNET_DHT_PathElement *get_path, | 2388 | const struct GNUNET_DHT_PathElement *get_path, |
2388 | unsigned int get_path_length, | 2389 | unsigned int get_path_length, |
2389 | const struct GNUNET_DHT_PathElement *put_path, | 2390 | const struct GNUNET_DHT_PathElement *put_path, |
@@ -2552,7 +2553,8 @@ handle_namecache_block_response (void *cls, | |||
2552 | else | 2553 | else |
2553 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2554 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2554 | "Got block with expiration %s\n", | 2555 | "Got block with expiration %s\n", |
2555 | GNUNET_STRINGS_absolute_time_to_string (GNUNET_GNSRECORD_block_get_expiration (block))); | 2556 | GNUNET_STRINGS_absolute_time_to_string ( |
2557 | GNUNET_GNSRECORD_block_get_expiration (block))); | ||
2556 | if (((GNUNET_GNS_LO_DEFAULT == rh->options) || | 2558 | if (((GNUNET_GNS_LO_DEFAULT == rh->options) || |
2557 | ((GNUNET_GNS_LO_LOCAL_MASTER == rh->options) && | 2559 | ((GNUNET_GNS_LO_LOCAL_MASTER == rh->options) && |
2558 | (ac != rh->ac_head))) && | 2560 | (ac != rh->ac_head))) && |