diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-31 11:37:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-31 11:37:42 +0100 |
commit | ce443bb4d4815ac79170b81cae74fc8b8030ea54 (patch) | |
tree | 5ad2e67ea4179a4f766c3180bf44b06cc8577f33 /src/include/anastasis.h | |
parent | 9f7a6d50b4c6a79ab16dfabe2c57510565bc4cf2 (diff) | |
download | anastasis-ce443bb4d4815ac79170b81cae74fc8b8030ea54.tar.gz anastasis-ce443bb4d4815ac79170b81cae74fc8b8030ea54.tar.bz2 anastasis-ce443bb4d4815ac79170b81cae74fc8b8030ea54.zip |
fix #7054: propagate more information on the rate-limiting
Diffstat (limited to 'src/include/anastasis.h')
-rw-r--r-- | src/include/anastasis.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/anastasis.h b/src/include/anastasis.h index fd7ed40..b957f18 100644 --- a/src/include/anastasis.h +++ b/src/include/anastasis.h @@ -207,6 +207,24 @@ struct ANASTASIS_ChallengeStartResponse unsigned int http_status; } open_challenge; + /** + * Details for #ANASTASIS_CHALLENGE_STATUS_RATE_LIMIT_EXCEEDED. + */ + struct + { + + /** + * How many requests are allowed at most per @e request_frequency? + */ + uint32_t request_limit; + + /** + * Frequency at which requests are allowed / new challenges are + * created. + */ + struct GNUNET_TIME_Relative request_frequency; + + } rate_limit_exceeded; /** * Response with details if |