summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-23 12:50:34 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-23 12:51:07 +0200
commite7e10a2931cc19969b2c060a0996506e5b7ce43e (patch)
tree377da45437911a06a8014aead814f2719b06bcd6 /src/include
parentc533c5441456cb81e64be24f52eb1ee35ee3243e (diff)
downloadanastasis-e7e10a2931cc19969b2c060a0996506e5b7ce43e.tar.gz
anastasis-e7e10a2931cc19969b2c060a0996506e5b7ce43e.tar.bz2
anastasis-e7e10a2931cc19969b2c060a0996506e5b7ce43e.zip
-misc bugfixes for IBAN plugin
Diffstat (limited to 'src/include')
-rw-r--r--src/include/anastasis.h7
-rw-r--r--src/include/anastasis_database_plugin.h4
2 files changed, 9 insertions, 2 deletions
diff --git a/src/include/anastasis.h b/src/include/anastasis.h
index 3027e2a..a950172 100644
--- a/src/include/anastasis.h
+++ b/src/include/anastasis.h
@@ -180,7 +180,6 @@ struct ANASTASIS_ChallengeStartResponse
/**
* Challenge details provided if
* @e cs is #ANASTASIS_CHALLENGE_STATUS_INSTRUCTIONS
- * or #ANASTASIS_CHALLENGE_STATUS_EXTERNAL_INSTRUCTIONS.
*/
struct
{
@@ -210,6 +209,12 @@ struct ANASTASIS_ChallengeStartResponse
/**
+ * Response with details if
+ * @e cs is #ANASTASIS_CHALLENGE_STATUS_EXTERNAL_INSTRUCTIONS.
+ */
+ const json_t *external_challenge;
+
+ /**
* Response with URL to redirect the user to, if
* @e cs is #ANASTASIS_CHALLENGE_STATUS_REDIRECT_FOR_AUTHENTICATION.
*/
diff --git a/src/include/anastasis_database_plugin.h b/src/include/anastasis_database_plugin.h
index 96a9367..1265f7b 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -620,6 +620,7 @@ struct ANASTASIS_DatabasePlugin
* @param cls closure
* @param truth_uuid identification of the challenge which the code corresponds to
* @param code code which is now satisfied
+ * @param after after what time must the challenge have been created
* @return transaction status,
* #GNUNET_DB_STATUS_SUCCESS_NO_RESULTS if the challenge code is not satisfied or expired
* #GNUNET_DB_STATUS_SUCCESS_ONE_RESULT if the challenge code has been marked as satisfied
@@ -628,7 +629,8 @@ struct ANASTASIS_DatabasePlugin
(*test_challenge_code_satisfied)(
void *cls,
const struct ANASTASIS_CRYPTO_TruthUUIDP *truth_uuid,
- const uint64_t code);
+ const uint64_t code,
+ struct GNUNET_TIME_Absolute after);
/**