summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/anastasis.h9
-rw-r--r--src/include/anastasis_authorization_plugin.h2
-rw-r--r--src/include/anastasis_service.h11
3 files changed, 19 insertions, 3 deletions
diff --git a/src/include/anastasis.h b/src/include/anastasis.h
index 0caaf4e..f9782fd 100644
--- a/src/include/anastasis.h
+++ b/src/include/anastasis.h
@@ -131,7 +131,14 @@ enum ANASTASIS_ChallengeStatus
/**
* The rate limit for solving the challenge was exceeded.
*/
- ANASTASIS_CHALLENGE_STATUS_RATE_LIMIT_EXCEEDED
+ ANASTASIS_CHALLENGE_STATUS_RATE_LIMIT_EXCEEDED,
+
+ /**
+ * The user did not satisfy the (external) authentication
+ * challenge in time. The request should be repeated
+ * later and may then succeed.
+ */
+ ANASTASIS_CHALLENGE_STATUS_AUTH_TIMEOUT
};
diff --git a/src/include/anastasis_authorization_plugin.h b/src/include/anastasis_authorization_plugin.h
index 5e93175..c2f2c03 100644
--- a/src/include/anastasis_authorization_plugin.h
+++ b/src/include/anastasis_authorization_plugin.h
@@ -163,11 +163,13 @@ struct ANASTASIS_AuthorizationPlugin
* to a video identification site.
*
* @param as authorization state
+ * @param timeout how long do we have to produce a reply
* @param connection HTTP client request (for queuing response, such as redirection to video portal)
* @return state of the request
*/
enum ANASTASIS_AUTHORIZATION_Result
(*process)(struct ANASTASIS_AUTHORIZATION_State *as,
+ struct GNUNET_TIME_Absolute timeout,
struct MHD_Connection *connection);
diff --git a/src/include/anastasis_service.h b/src/include/anastasis_service.h
index 637e43b..a08f25b 100644
--- a/src/include/anastasis_service.h
+++ b/src/include/anastasis_service.h
@@ -466,9 +466,16 @@ enum ANASTASIS_KeyShareDownloadStatus
/**
* Too many attempts to solve the challenge were made in a short
- * time. Try again laster.
+ * time. Try again later.
*/
- ANASTASIS_KSD_RATE_LIMIT_EXCEEDED
+ ANASTASIS_KSD_RATE_LIMIT_EXCEEDED,
+
+ /**
+ * The user did not satisfy the (external)
+ * authentication check until the request timeout
+ * was reached. The client should try again later.
+ */
+ ANASTASIS_KSD_AUTHENTICATION_TIMEOUT
};