[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[frosix] 03/04: remove liability limit
From: |
gnunet |
Subject: |
[frosix] 03/04: remove liability limit |
Date: |
Sat, 01 Jul 2023 11:33:11 +0200 |
This is an automated email from the git hooks/post-receive script.
joel-urech pushed a commit to branch master
in repository frosix.
commit 77cb58a31c462dc03f7476b37fe618fff0f1f7ad
Author: Joel Urech <joeltobias.urech@students.bfh.ch>
AuthorDate: Mon Jun 26 20:22:27 2023 +0200
remove liability limit
---
src/backend/frosix-httpd.c | 16 ++--------------
src/backend/frosix-httpd_config.c | 2 --
src/backend/frosix.conf | 19 +++----------------
src/cli/frosix-cli.c | 10 +++++-----
src/restclient/frosix_api_config.c | 2 --
5 files changed, 10 insertions(+), 39 deletions(-)
diff --git a/src/backend/frosix-httpd.c b/src/backend/frosix-httpd.c
index c2de62a..525578d 100644
--- a/src/backend/frosix-httpd.c
+++ b/src/backend/frosix-httpd.c
@@ -49,7 +49,7 @@ struct TALER_Amount FH_signature_creation_fee;
/**
* Amount of insurance.
*/
-struct TALER_Amount FH_insurance;
+// struct TALER_Amount FH_insurance;
/**
* Cost for secure question truth download.
@@ -852,18 +852,6 @@ run (void *cls,
global_result = GNUNET_SYSERR;
GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
NULL);
- if (GNUNET_OK !=
- TALER_config_get_amount (config,
- "frosix",
- "INSURANCE",
- &FH_insurance))
- {
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- "frosix",
- "INSURANCE");
- GNUNET_SCHEDULER_shutdown ();
- return;
- }
if (GNUNET_OK !=
TALER_config_get_amount (config,
"authorization-question",
@@ -1097,7 +1085,7 @@ run (void *cls,
db->connect (db->cls))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Database not setup. Did you run anastasis-dbinit?\n");
+ "Database not setup. Did you run frosix-dbinit?\n");
GNUNET_SCHEDULER_shutdown ();
return;
}
diff --git a/src/backend/frosix-httpd_config.c
b/src/backend/frosix-httpd_config.c
index 4e34243..eb2d8fc 100644
--- a/src/backend/frosix-httpd_config.c
+++ b/src/backend/frosix-httpd_config.c
@@ -113,8 +113,6 @@ FH_handler_config (struct FH_RequestHandler *rh,
&FH_annual_fee),
TALER_JSON_pack_amount ("signature_creation_fee",
&FH_signature_creation_fee),
- TALER_JSON_pack_amount ("liability_limit",
- &FH_insurance),
GNUNET_JSON_pack_data_auto ("provider_salt",
&FH_provider_salt),
GNUNET_JSON_pack_data_auto ("public_key",
diff --git a/src/backend/frosix.conf b/src/backend/frosix.conf
index 3d1b4f7..c7c0ffd 100644
--- a/src/backend/frosix.conf
+++ b/src/backend/frosix.conf
@@ -26,28 +26,16 @@ UNIXPATH_MODE = 660
# Which database backend do we use?
DB = postgres
-# Display name of the business running this anastasis provider.
-BUSINESS_NAME = FROSIX
+# Display name of the business running this Frosix provider.
+BUSINESS_NAME = Frosix
# Annual fee for an account
ANNUAL_FEE = TESTKUDOS:0.1
-# Number of policy uploads included in one annual fee payment
-#ANNUAL_POLICY_UPLOAD_LIMIT = 64
-
-# Insurance
-INSURANCE = TESTKUDOS:1.0
-
-# Fee for one upload.
-#TRUTH_UPLOAD_FEE = TESTKUDOS:0.1
-
# Fee for the creation of one signature
SIGNATURE_CREATION_FEE = TESTKUDOS:0.1
-# Upload limit per backup, in megabytes
-#UPLOAD_LIMIT_MB = 16
-
-# Fulfillment URL of the ANASTASIS service itself.
+# Fulfillment URL of the Frosix service itself.
FULFILLMENT_URL = taler://fulfillment-success
# Server salt 16 Byte
@@ -65,7 +53,6 @@ TERMS_DIR = ${DATADIR}tos/
# Etag / filename for the terms of service.
TERMS_ETAG = 0
-
# Directory with our privacy policy.
PRIVACY_DIR = ${DATADIR}pp/
diff --git a/src/cli/frosix-cli.c b/src/cli/frosix-cli.c
index bbc1625..2cb9a8d 100644
--- a/src/cli/frosix-cli.c
+++ b/src/cli/frosix-cli.c
@@ -14,8 +14,8 @@
Frosix; see the file COPYING.GPL. If not, see <http://www.gnu.org/licenses/>
*/
/**
- * @file cli/frosix-cli-redux.c
- * @brief command line tool for our reducer
+ * @file cli/frosix-cli.c
+ * @brief command line tool for Frosix client
* @author Christian Grothoff
* @author Dennis Neufeld
* @author Dominik Meister
@@ -37,7 +37,7 @@
static struct GNUNET_CURL_RescheduleContext *rc;
/**
- * Curl context for communication with anastasis backend
+ * Curl context for communication with Frosix backend
*/
static struct GNUNET_CURL_Context *ctx;
@@ -57,7 +57,7 @@ static char *output_filename = NULL;
static char *message = NULL;
/**
- * JSON containing arguments for action
+ * JSON containing additional arguments
*/
static json_t *arguments;
@@ -552,7 +552,7 @@ main (int argc,
GNUNET_OS_init (FROSIX_project_data_default ());
ret = GNUNET_PROGRAM_run (argc,
argv,
- "frosix-reducer",
+ "frosix-cli",
"This is an application for using Frosix.\n",
options,
&run,
diff --git a/src/restclient/frosix_api_config.c
b/src/restclient/frosix_api_config.c
index e9db6f3..fbcea3e 100644
--- a/src/restclient/frosix_api_config.c
+++ b/src/restclient/frosix_api_config.c
@@ -87,8 +87,6 @@ handle_config_finished (void *cls,
&fcfg.annual_fee),
TALER_JSON_spec_amount_any ("signature_creation_fee",
&fcfg.signature_creation_fee),
- TALER_JSON_spec_amount_any ("liability_limit",
- &fcfg.liability_limit),
GNUNET_JSON_spec_fixed_auto ("provider_salt",
&fcfg.provider_salt),
GNUNET_JSON_spec_fixed_auto ("public_key",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.