summaryrefslogtreecommitdiff
path: root/src/lib/anastasis_meta.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/anastasis_meta.c')
-rw-r--r--src/lib/anastasis_meta.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/anastasis_meta.c b/src/lib/anastasis_meta.c
index 7812f6b..ae20db5 100644
--- a/src/lib/anastasis_meta.c
+++ b/src/lib/anastasis_meta.c
@@ -55,20 +55,17 @@ struct ANASTASIS_VersionCheck
* Function called with results from a GET /policy/$POL/meta request
*
* @param cls closure with the `struct ANASTASIS_VersionCheck *`
- * @param http_status HTTP status code for this request
* @param dd the response details
*/
static void
meta_cb (
void *cls,
- unsigned int http_status,
const struct ANASTASIS_MetaDownloadDetails *dd)
{
struct ANASTASIS_VersionCheck *vc = cls;
vc->plm = NULL;
- if ( (MHD_HTTP_OK != http_status) ||
- (NULL == dd) )
+ if (MHD_HTTP_OK != dd->http_status)
{
vc->mpc (vc->mpc_cls,
0,
@@ -78,9 +75,10 @@ meta_cb (
ANASTASIS_recovery_get_versions_cancel (vc);
return;
}
- for (size_t i = 0; i<dd->metas_length; i++)
+ for (size_t i = 0; i<dd->details.ok.metas_length; i++)
{
- const struct ANASTASIS_MetaDataEntry *meta = &dd->metas[i];
+ const struct ANASTASIS_MetaDataEntry *meta
+ = &dd->details.ok.metas[i];
const char *secret_name = NULL;
const struct GNUNET_HashCode *eph;
void *dec;