summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-14 16:03:02 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-14 16:03:02 +0200
commit6f0432ed839d1f5a7a1e880f492ce162073b680b (patch)
tree37aa1f4ee13925843e86ac7b5e4285b210d722b9 /src/include
parentf4a4a0806bf361ccbd2d0f9bbdc34187cccba6c6 (diff)
downloadanastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.tar.gz
anastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.tar.bz2
anastasis-6f0432ed839d1f5a7a1e880f492ce162073b680b.zip
-first rough sketch for IBAN authorization plugin"
Diffstat (limited to 'src/include')
-rw-r--r--src/include/anastasis_authorization_plugin.h9
-rw-r--r--src/include/anastasis_database_plugin.h4
2 files changed, 10 insertions, 3 deletions
diff --git a/src/include/anastasis_authorization_plugin.h b/src/include/anastasis_authorization_plugin.h
index c2f2c03..b159aaa 100644
--- a/src/include/anastasis_authorization_plugin.h
+++ b/src/include/anastasis_authorization_plugin.h
@@ -74,7 +74,14 @@ enum ANASTASIS_AUTHORIZATION_Result
*
* Additionally, we failed to transmit the challenge.
*/
- ANASTASIS_AUTHORIZATION_RES_FAILED_REPLY_FAILED = 5
+ ANASTASIS_AUTHORIZATION_RES_FAILED_REPLY_FAILED = 5,
+
+ /**
+ * The authentication process completed successfully
+ * and we should signal success to the client by
+ * returning the truth.
+ */
+ ANASTASIS_AUTHORIZATION_RES_FINISHED = 6
};
diff --git a/src/include/anastasis_database_plugin.h b/src/include/anastasis_database_plugin.h
index 6b686e2..44f6b55 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -585,7 +585,7 @@ struct ANASTASIS_DatabasePlugin
* @param code code which is now satisfied
* @return transaction status
*/
- enum ANASTASIS_DB_CodeStatus
+ enum GNUNET_DB_QueryStatus
(*mark_challenge_code_satisfied)(
void *cls,
const struct ANASTASIS_CRYPTO_TruthUUIDP *truth_uuid,
@@ -603,7 +603,7 @@ struct ANASTASIS_DatabasePlugin
* #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
*/
- enum ANASTASIS_DB_CodeStatus
+ enum GNUNET_DB_QueryStatus
(*test_challenge_code_satisfied)(
void *cls,
const struct ANASTASIS_CRYPTO_TruthUUIDP *truth_uuid,