From 6f0432ed839d1f5a7a1e880f492ce162073b680b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 14 Aug 2021 16:03:02 +0200 Subject: -first rough sketch for IBAN authorization plugin" --- src/include/anastasis_authorization_plugin.h | 9 ++++++++- src/include/anastasis_database_plugin.h | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/include') 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, -- cgit v1.2.3