summaryrefslogtreecommitdiff
path: root/src/include/anastasis_testing_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/anastasis_testing_lib.h')
-rw-r--r--src/include/anastasis_testing_lib.h40
1 files changed, 24 insertions, 16 deletions
diff --git a/src/include/anastasis_testing_lib.h b/src/include/anastasis_testing_lib.h
index 80018d9..ba6f801 100644
--- a/src/include/anastasis_testing_lib.h
+++ b/src/include/anastasis_testing_lib.h
@@ -38,16 +38,10 @@
#define ANASTASIS_TESTING_TRAIT_HASH_CURRENT 0
/**
- * Index used in #SYNC_TESTING_get_trait_hash() for the previous hash.
- */
-#define ANASTASIS_TESTING_TRAIT_HASH_PREVIOUS 1
-
-/**
* Obtain a hash from @a cmd.
*
* @param cmd command to extract the number from.
- * @param index the number's index number, #ANASTASIS_TESTING_TRAIT_HASH_CURRENT or
- * #SYNC_TESTING_TRAIT_HASH_PREVIOUS
+ * @param index the number's index number, use #ANASTASIS_TESTING_TRAIT_HASH_CURRENT
* @param[out] h set to the hash coming from @a cmd.
* @return #GNUNET_OK on success.
*/
@@ -107,8 +101,7 @@ ANASTASIS_TESTING_make_trait_truth_key (
*/
int
ANASTASIS_TESTING_get_trait_account_pub (
- const struct
- TALER_TESTING_Command *cmd,
+ const struct TALER_TESTING_Command *cmd,
unsigned int index,
const struct ANASTASIS_CRYPTO_AccountPublicKeyP **pub);
@@ -216,7 +209,7 @@ ANASTASIS_TESTING_make_trait_truth_uuid (
*
* @param cmd command to extract the number from.
* @param index the number's index number.
- * @param[out] uuid set to the number coming from @a cmd.
+ * @param[out] eks set to the key share coming from @a cmd.
* @return #GNUNET_OK on success.
*/
int
@@ -255,10 +248,10 @@ ANASTASIS_TESTING_get_trait_code (
/**
- * Offer a filename.
+ * Offer an authentication code.
*
* @param index the number's index number.
- * @param tpk the public key to offer.
+ * @param code the code to offer.
* @return trait on success
*/
struct TALER_TESTING_Trait
@@ -300,7 +293,7 @@ TALER_TESTING_run_merchant (const char *config_filename,
* anastasis" function to do such tasks.
*
* @param config_filename configuration filename.
- *
+ * @param anastasis_url URL to use to confirm service running
* @return the process, or NULL if the process could not
* be started.
*/
@@ -383,20 +376,33 @@ ANASTASIS_TESTING_cmd_policy_store (
* Make the "policy lookup" command.
*
* @param label command label
- * @param ANASTASIS_url base URL of the ANASTASIS serving
- * the policy lookup request.
+ * @param anastasis_url base URL of the ANASTASIS serving
+ * the policy store request.
* @param http_status expected HTTP status.
* @param upload_ref reference to upload command
* @return the command
*/
struct TALER_TESTING_Command
ANASTASIS_TESTING_cmd_policy_lookup (const char *label,
- const char *ANASTASIS_url,
+ const char *anastasis_url,
unsigned int http_status,
const char *upload_ref);
/**
+ * Make the "policy lookup" command for a non-existent upload.
+ *
+ * @param label command label
+ * @param anastasis_url base URL of the ANASTASIS serving
+ * the policy lookup request.
+ * @return the command
+ */
+struct TALER_TESTING_Command
+ANASTASIS_TESTING_cmd_policy_nx (const char *label,
+ const char *anastasis_url);
+
+
+/**
* Types of options for performing the upload. Used as a bitmask.
*/
enum ANASTASIS_TESTING_TruthStoreOption
@@ -482,6 +488,8 @@ ANASTASIS_TESTING_cmd_truth_question (
* @param answer (response to challenge)
* @param payment_ref reference to the payment request
* @param upload_ref reference to upload command
+ * @param lookup_mode 0 for security question, 1 for
+ * code-based
* @param ksdd expected status
* @return the command
*/