[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 10/13: modified Makefile
From: |
gnunet |
Subject: |
[taler-anastasis] 10/13: modified Makefile |
Date: |
Sun, 03 May 2020 18:02:34 +0200 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit 0c4143770b36075a37b52f89d56205d128eb4fad
Author: Dennis Neufeld <address@hidden>
AuthorDate: Sat May 2 08:47:20 2020 +0000
modified Makefile
---
src/include/anastasis_testing_lib.h | 40 +++++++++++++++++++++++++++++++++++++
src/lib/Makefile.am | 4 +++-
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/src/include/anastasis_testing_lib.h
b/src/include/anastasis_testing_lib.h
index 3fa792d..b72f3e1 100644
--- a/src/include/anastasis_testing_lib.h
+++ b/src/include/anastasis_testing_lib.h
@@ -525,6 +525,46 @@ ANASTASIS_TESTING_cmd_truth_upload (const char *label,
const char *upload_ref);
+/* ********************* test policy create ********************* */
+
+/**
+ * Obtain a policy from @a cmd.
+ *
+ * @param cmd command to extract the policy from.
+ * @param index the index of the policy
+ * @param t[out] set to the policy coming from @a cmd.
+ * @return #GNUNET_OK on success.
+ */
+int
+ANASTASIS_TESTING_get_trait_policy (const struct TALER_TESTING_Command *cmd,
+ unsigned int index,
+ const struct ANASTASIS_Policy **p);
+
+
+/**
+ * Offer a policy.
+ *
+ * @param index the policy's index number.
+ * @param t the policy to offer.
+ * @return #GNUNET_OK on success.
+ */
+struct TALER_TESTING_Trait
+ANASTASIS_TESTING_make_trait_policy (unsigned int index,
+ const struct ANASTASIS_Policy *p);
+
+
+/**
+ * Make the "policy create" command.
+ *
+ * @param label command label
+ * @param ... NULL-terminated list of truth upload commands
+ * @return the command
+ */
+struct TALER_TESTING_Command
+ANASTASIS_TESTING_cmd_policy_create (const char *label,
+ ...);
+
+
/* ********************* test secret share ********************* */
/**
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index e3c837d..8fb04e4 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -69,9 +69,11 @@ libanastasistesting_la_SOURCES = \
testing_api_trait_hash.c \
testing_api_trait_salt.c \
testing_cmd_truth_upload.c \
+ testing_cmd_policy_create.c \
testing_cmd_secret_share.c \
testing_cmd_recover_secret.c \
- testing_trait_truth.c
+ testing_trait_truth.c \
+ testing_trait_policy.c
libanastasistesting_la_LIBADD = \
$(top_builddir)/src/lib/libanastasisrest.la \
-ltalerexchange \
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-anastasis] branch master updated (a5b4c84 -> d0a484e), gnunet, 2020/05/03
- [taler-anastasis] 01/13: json_dumps with JSON_COMPACT and JSON_SORT_KEYS, gnunet, 2020/05/03
- [taler-anastasis] 06/13: big O to small o, json_pack, gnunet, 2020/05/03
- [taler-anastasis] 04/13: changed user identifier derivation to use GNUNET_CRYPTO_hash_pow(), gnunet, 2020/05/03
- [taler-anastasis] 02/13: deleted salt cb etc. from anastasis.c, gnunet, 2020/05/03
- [taler-anastasis] 09/13: created policy trait, gnunet, 2020/05/03
- [taler-anastasis] 10/13: modified Makefile,
gnunet <=
- [taler-anastasis] 08/13: Initial work on testing policy creation, gnunet, 2020/05/03
- [taler-anastasis] 03/13: changed user identifier derivation to use GNUNET_CRYPTO_hash_pow(), gnunet, 2020/05/03
- [taler-anastasis] 05/13: modified truth trait, gnunet, 2020/05/03
- [taler-anastasis] 07/13: fixed http server not shutting down, gnunet, 2020/05/03
- [taler-anastasis] 12/13: Some error fixes, gnunet, 2020/05/03
- [taler-anastasis] 11/13: worked on testing policy creation, gnunet, 2020/05/03
- [taler-anastasis] 13/13: fixed truth array problems, gnunet, 2020/05/03