diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-01-30 13:55:51 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-01-30 13:55:51 +0100 |
commit | 697ea51cbbe8a32b8484630433c51a5c5ddb595a (patch) | |
tree | 343f89ed7f5ba24705d96fbe1deea12acf694711 /src/include | |
parent | b7b7cf83d3c1098beeff09ca3f35e6082ed9bffb (diff) | |
download | anastasis-697ea51cbbe8a32b8484630433c51a5c5ddb595a.tar.gz anastasis-697ea51cbbe8a32b8484630433c51a5c5ddb595a.tar.bz2 anastasis-697ea51cbbe8a32b8484630433c51a5c5ddb595a.zip |
-more work towards nicer policy discovery logic
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/anastasis_redux.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/include/anastasis_redux.h b/src/include/anastasis_redux.h index fc7bd56..a62b89e 100644 --- a/src/include/anastasis_redux.h +++ b/src/include/anastasis_redux.h @@ -118,9 +118,7 @@ struct ANASTASIS_PolicyDiscovery; /** - * Function called on each discovered recovery policy. Called - * with all arguments NULL if we have received all policies that - * we could possibly receive for the current operation. + * Function called on each discovered recovery policy. * * The client can then start a new policy discovery process, using the * smallest (also most recent) @a version received per @a provider_url @@ -167,6 +165,20 @@ ANASTASIS_policy_discovery_start (const json_t *state, ANASTASIS_PolicyDiscoveryCallback cb, void *cb_cls); + +/** + * Add another provider to the list of providers to do discovery + * on. + * + * @param[in,out] pd policy discovery to expand + * @param provider_url the provider to add to the set of providers + * @param provider_state configuration state for that provider + */ +void +ANASTASIS_policy_discovery_more (struct ANASTASIS_PolicyDiscovery *pd, + const char *provider_url, + json_t *provider_state); + /** * Stop policy discovery. * @@ -190,5 +202,18 @@ ANASTASIS_mask_id_data (const json_t *state, const json_t *master_id, json_int_t mask); +/** + * Lookup @a salt of @a provider_url in @a state. + * + * @param state the state to inspect + * @param provider_url provider to look into + * @param[out] salt value to extract + * @return #GNUNET_OK on success + */ +enum GNUNET_GenericReturnValue +ANASTASIS_reducer_lookup_salt (const json_t *state, + const char *provider_url, + struct ANASTASIS_CRYPTO_ProviderSaltP *salt); + #endif /* _ANASTASIS_REDUX_H */ |