gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: test not working


From: gnunet
Subject: [taler-anastasis] branch master updated: test not working
Date: Thu, 14 Jan 2021 23:08:53 +0100

This is an automated email from the git hooks/post-receive script.

ds-meister pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 4b01c17  test not working
4b01c17 is described below

commit 4b01c17e4b93ba8aacc23687bc8c7ec1e3804608
Author: Dominik Meister <dominik.meister@hotmail.ch>
AuthorDate: Thu Jan 14 23:08:39 2021 +0100

    test not working
---
 src/backend/anastasis-httpd_truth.c               | 10 ++++++++--
 src/backend/anastasis_authorization_plugin_file.c |  4 ++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/backend/anastasis-httpd_truth.c 
b/src/backend/anastasis-httpd_truth.c
index e38e395..967fc2e 100644
--- a/src/backend/anastasis-httpd_truth.c
+++ b/src/backend/anastasis-httpd_truth.c
@@ -932,6 +932,7 @@ AH_handler_truth_get (struct MHD_Connection *connection,
   /* Not security question, check for answer in DB */
   if (NULL != challenge_response_s)
   {
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Should not !");
     enum ANASTASIS_DB_QueryStatus qs;
     unsigned long long code;
     char dummy;
@@ -981,7 +982,6 @@ AH_handler_truth_get (struct MHD_Connection *connection,
     enum ANASTASIS_DB_QueryStatus qs;
     struct GNUNET_TIME_Relative challenge_expiration;
     challenge_expiration = GNUNET_TIME_UNIT_HOURS;
-
     authorization = ANASTASIS_authorization_plugin_load (method);
     if (NULL == authorization)
     {
@@ -1041,6 +1041,13 @@ AH_handler_truth_get (struct MHD_Connection *connection,
       return MHD_NO;
     }
 
+    char *miau;
+    miau = GNUNET_STRINGS_data_to_string_alloc (decrypted_truth,
+                                                decrypted_truth_size);
+
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "%s", miau);
+
+
     as = authorization->start (authorization->cls,
                                &truth_public_key,
                                code,
@@ -1048,7 +1055,6 @@ AH_handler_truth_get (struct MHD_Connection *connection,
                                decrypted_truth,
                                decrypted_truth_size);
 
-    GNUNET_free (decrypted_truth);
     if (NULL == as)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/backend/anastasis_authorization_plugin_file.c 
b/src/backend/anastasis_authorization_plugin_file.c
index 3e0e485..42624e3 100644
--- a/src/backend/anastasis_authorization_plugin_file.c
+++ b/src/backend/anastasis_authorization_plugin_file.c
@@ -95,6 +95,9 @@ file_validate (void *cls,
     return GNUNET_NO;
   }
   GNUNET_free (filename);
+
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"VERY GOOD VALIDATION");
+
   return GNUNET_OK;
 }
 
@@ -115,6 +118,7 @@ static struct ANASTASIS_AUTHORIZATION_State *
 file_start (void *cls,
             const struct ANASTASIS_CRYPTO_TruthPublicKeyP *truth_public_key,
             uint64_t code,
+            char *auth_command,
             const void *data,
             size_t data_length)
 {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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