diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-29 10:56:15 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-29 10:56:15 +0200 |
commit | ce2864cfaa27e55096b480bf35db5f8cee2a5e7e (patch) | |
tree | be47c017d1467870000aa1a507eab3c995304179 /src/identity-provider | |
parent | 823215c974ccb1ef3cad9eb1082999cd1b910416 (diff) | |
download | gnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.tar.gz gnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.zip |
add option to disable namecache, add velocity calculation and delay correction to zonemaster, fix some ftbfs from recent NAMESTORE API change
Diffstat (limited to 'src/identity-provider')
-rw-r--r-- | src/identity-provider/gnunet-service-identity-provider.c | 21 | ||||
-rw-r--r-- | src/identity-provider/plugin_rest_openid_connect.c | 7 |
2 files changed, 19 insertions, 9 deletions
diff --git a/src/identity-provider/gnunet-service-identity-provider.c b/src/identity-provider/gnunet-service-identity-provider.c index 572202c3f..6afb7bb05 100644 --- a/src/identity-provider/gnunet-service-identity-provider.c +++ b/src/identity-provider/gnunet-service-identity-provider.c | |||
@@ -2190,12 +2190,15 @@ attr_iter_cb (void *cls, | |||
2190 | 2190 | ||
2191 | if (rd_count != 1) | 2191 | if (rd_count != 1) |
2192 | { | 2192 | { |
2193 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it); | 2193 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it, |
2194 | 1); | ||
2194 | return; | 2195 | return; |
2195 | } | 2196 | } |
2196 | 2197 | ||
2197 | if (GNUNET_GNSRECORD_TYPE_ID_ATTR != rd->record_type) { | 2198 | if (GNUNET_GNSRECORD_TYPE_ID_ATTR != rd->record_type) |
2198 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it); | 2199 | { |
2200 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it, | ||
2201 | 1); | ||
2199 | return; | 2202 | return; |
2200 | } | 2203 | } |
2201 | attr_ver = ntohl(*((uint32_t*)rd->data)); | 2204 | attr_ver = ntohl(*((uint32_t*)rd->data)); |
@@ -2209,8 +2212,10 @@ attr_iter_cb (void *cls, | |||
2209 | rd->data_size-sizeof (uint32_t), | 2212 | rd->data_size-sizeof (uint32_t), |
2210 | key, | 2213 | key, |
2211 | (void**)&attr_ser); | 2214 | (void**)&attr_ser); |
2212 | if (GNUNET_SYSERR == msg_extra_len) { | 2215 | if (GNUNET_SYSERR == msg_extra_len) |
2213 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it); | 2216 | { |
2217 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it, | ||
2218 | 1); | ||
2214 | return; | 2219 | return; |
2215 | } | 2220 | } |
2216 | 2221 | ||
@@ -2253,13 +2258,15 @@ iterate_after_abe_bootstrap (void *cls, | |||
2253 | ai); | 2258 | ai); |
2254 | } | 2259 | } |
2255 | 2260 | ||
2256 | void | 2261 | |
2262 | static void | ||
2257 | iterate_next_after_abe_bootstrap (void *cls, | 2263 | iterate_next_after_abe_bootstrap (void *cls, |
2258 | struct GNUNET_ABE_AbeMasterKey *abe_key) | 2264 | struct GNUNET_ABE_AbeMasterKey *abe_key) |
2259 | { | 2265 | { |
2260 | struct AttributeIterator *ai = cls; | 2266 | struct AttributeIterator *ai = cls; |
2261 | ai->abe_key = abe_key; | 2267 | ai->abe_key = abe_key; |
2262 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it); | 2268 | GNUNET_NAMESTORE_zone_iterator_next (ai->ns_it, |
2269 | 1); | ||
2263 | } | 2270 | } |
2264 | 2271 | ||
2265 | 2272 | ||
diff --git a/src/identity-provider/plugin_rest_openid_connect.c b/src/identity-provider/plugin_rest_openid_connect.c index 7e8054e60..125bb98f6 100644 --- a/src/identity-provider/plugin_rest_openid_connect.c +++ b/src/identity-provider/plugin_rest_openid_connect.c | |||
@@ -1076,16 +1076,19 @@ namestore_iteration_callback ( | |||
1076 | } | 1076 | } |
1077 | } | 1077 | } |
1078 | 1078 | ||
1079 | GNUNET_NAMESTORE_zone_iterator_next (handle->namestore_handle_it); | 1079 | GNUNET_NAMESTORE_zone_iterator_next (handle->namestore_handle_it, |
1080 | 1); | ||
1080 | } | 1081 | } |
1081 | 1082 | ||
1083 | |||
1082 | /** | 1084 | /** |
1083 | * Iteration over all results finished, build final | 1085 | * Iteration over all results finished, build final |
1084 | * response. | 1086 | * response. |
1085 | * | 1087 | * |
1086 | * @param cls the `struct RequestHandle` | 1088 | * @param cls the `struct RequestHandle` |
1087 | */ | 1089 | */ |
1088 | static void namestore_iteration_finished (void *cls) | 1090 | static void |
1091 | namestore_iteration_finished (void *cls) | ||
1089 | { | 1092 | { |
1090 | struct RequestHandle *handle = cls; | 1093 | struct RequestHandle *handle = cls; |
1091 | struct GNUNET_HashCode cache_key; | 1094 | struct GNUNET_HashCode cache_key; |