gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] 02/02: fixed some warnings


From: gnunet
Subject: [taler-anastasis] 02/02: fixed some warnings
Date: Thu, 16 Apr 2020 09:19:25 +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 85039826fa2fad09f41f67ff10fa9a4b0eb1e65e
Author: Dennis Neufeld <address@hidden>
AuthorDate: Thu Apr 16 07:19:18 2020 +0000

    fixed some warnings
---
 src/backend/anastasis-httpd_policy.c    |  1 -
 src/backend/anastasis-httpd_truth.c     |  4 ----
 src/include/anastasis_database_plugin.h |  2 --
 src/include/anastasis_service.h         |  2 +-
 src/lib/testing_api_cmd_policy_store.c  |  4 ++++
 src/stasis/test_anastasis_db.c          | 15 ---------------
 6 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/src/backend/anastasis-httpd_policy.c 
b/src/backend/anastasis-httpd_policy.c
index ff6ddd6..c3327ba 100644
--- a/src/backend/anastasis-httpd_policy.c
+++ b/src/backend/anastasis-httpd_policy.c
@@ -58,7 +58,6 @@ AH_return_policy (struct MHD_Connection *connection,
   MHD_RESULT ret;
   struct ANASTASIS_AccountSignatureP account_sig;
   struct GNUNET_HashCode recovery_data_hash;
-  struct GNUNET_HashCode prev_hash;
   const char *version_s;
   uint32_t version;
   void *res_recovery_data;
diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index 0b251ee..7db3d6a 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -47,8 +47,6 @@ AH_handler_truth_get (struct MHD_Connection *connection,
   void *decrypted_truth;
   void *encrypted_keyshare;
   char result[GNUNET_CRYPTO_AES_KEY_LENGTH];
-  uint32_t *nonce;
-  unsigned char *aes_gcm_tag[16];
   char *truth_mime;
   char *method;
   int ret;
@@ -101,8 +99,6 @@ AH_handler_truth_get (struct MHD_Connection *connection,
                                    &uuid,
                                    encrypted_truth,
                                    &encrypted_truth_size,
-                                   aes_gcm_tag,
-                                   &nonce,
                                    &truth_mime,
                                    &method);
     if (qs != ANASTASIS_DB_STATUS_SUCCESS_ONE_RESULT)
diff --git a/src/include/anastasis_database_plugin.h 
b/src/include/anastasis_database_plugin.h
index 518ff34..b58a3e8 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -279,8 +279,6 @@ struct ANASTASIS_DatabasePlugin
                           const uuid_t *uuid,
                           void **truth,
                           size_t *truth_size,
-                          unsigned char **aes_gcm_tag,
-                          uint32_t **nonce,
                           char **truth_mime,
                           char **method);
 
diff --git a/src/include/anastasis_service.h b/src/include/anastasis_service.h
index d7254b5..d0e13b0 100644
--- a/src/include/anastasis_service.h
+++ b/src/include/anastasis_service.h
@@ -252,7 +252,7 @@ struct ANASTASIS_UploadDetails
 typedef void
 (*ANASTASIS_SaltCallback)(void *cls,
                           unsigned int http_status,
-                          struct ANASTASIS_CRYPTO_Salt *salt);
+                          const struct ANASTASIS_CRYPTO_Salt *salt);
 
 
 struct ANASTASIS_SaltOperation *
diff --git a/src/lib/testing_api_cmd_policy_store.c 
b/src/lib/testing_api_cmd_policy_store.c
index 04b04ec..b4e24e1 100644
--- a/src/lib/testing_api_cmd_policy_store.c
+++ b/src/lib/testing_api_cmd_policy_store.c
@@ -240,6 +240,10 @@ policy_store_cb (void *cls,
       GNUNET_break (0);
       TALER_TESTING_interpreter_fail (pss->is);
       return;
+    default:
+      GNUNET_break (0);
+      TALER_TESTING_interpreter_fail (pss->is);
+      return;
     }
   }
   TALER_TESTING_interpreter_next (pss->is);
diff --git a/src/stasis/test_anastasis_db.c b/src/stasis/test_anastasis_db.c
index 308c8ef..4e11be8 100644
--- a/src/stasis/test_anastasis_db.c
+++ b/src/stasis/test_anastasis_db.c
@@ -86,11 +86,6 @@ struct GNUNET_HashCode recoveryDataHash;
  */
 struct GNUNET_HashCode res_recovery_data_hash;
 
-/**
- * Amount which is deposited, set to random value
- */
-static struct TALER_Amount amount;
-
 /**
  * How many posts are paid by the payment
  */
@@ -111,11 +106,6 @@ static void *res_recovery_data;
  */
 static void *truth_data;
 
-/**
- * Truth for the select test
- */
-static void *truth;
-
 /**
  * Keyshare which is stored into the Database, set to a random value
  */
@@ -131,11 +121,6 @@ static void *res_key_share;
  */
 static char *mime_type;
 
-/**
- * Mime-type of truth for the select test
- */
-static char *res_mime_type;
-
 /**
  * Method
  */

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]