gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: uncrustify


From: gnunet
Subject: [taler-anastasis] branch master updated: uncrustify
Date: Tue, 12 May 2020 17:52:14 +0200

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 f2a335a  uncrustify
f2a335a is described below

commit f2a335aabe0a3530749e970738798fa5804d6a79
Author: Dominik Meister <address@hidden>
AuthorDate: Tue May 12 17:52:07 2020 +0200

    uncrustify
---
 src/lib/anastasis.c                    | 29 +++++++++++++++++------------
 src/lib/testing_cmd_challenge_answer.c |  4 ++--
 2 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/src/lib/anastasis.c b/src/lib/anastasis.c
index ed8827d..855fbc2 100644
--- a/src/lib/anastasis.c
+++ b/src/lib/anastasis.c
@@ -351,7 +351,8 @@ keyshare_lookup_cb (void *cls,
     struct ANASTASIS_CRYPTO_KeyShareP
       key_shares[c->recovery->ri->dps[success].uuids_length];
     struct ANASTASIS_CRYPTO_PolicyKeyP policy_key;
-    for (unsigned int l = 0; l < c->recovery->ri->dps[success].uuids_length; 
l++)
+    for (unsigned int l = 0; l < c->recovery->ri->dps[success].uuids_length;
+         l++)
     {
       for (unsigned int m = 0; m < c->recovery->solved_challenge_pos; m++)
       {
@@ -363,7 +364,8 @@ keyshare_lookup_cb (void *cls,
       }
     }
     ANASTASIS_CRYPTO_policy_key_derive (key_shares,
-                                        
c->recovery->ri->dps[success].uuids_length,
+                                        c->recovery->ri->dps[success].
+                                        uuids_length,
                                         &c->recovery->policy_salt,
                                         &policy_key);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -402,7 +404,8 @@ ANASTASIS_challenge_answer (struct ANASTASIS_Challenge *c,
   c->af = af;
   c->af_cls = af_cls;
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "At %s:%d challenge %s-%llu is solved with url %s \n", __FILE__, 
__LINE__,
+              "At %s:%d challenge %s-%llu is solved with url %s \n", __FILE__,
+              __LINE__,
               TALER_B2S (&c->challenge_uuid),
               (unsigned long long) sizeof (c->challenge_uuid),
               c->url);
@@ -498,7 +501,7 @@ policy_lookup_cb (void *cls,
            r->ri,
            r->http_status);
     r->pc = NULL;
-    ANASTASIS_recovery_abort(r);
+    ANASTASIS_recovery_abort (r);
     return;
   }
   if (dd->policy == NULL)
@@ -509,7 +512,7 @@ policy_lookup_cb (void *cls,
            r->ri,
            r->http_status);
     r->pc = NULL;
-    ANASTASIS_recovery_abort(r);
+    ANASTASIS_recovery_abort (r);
     return;
   }
   void *plaintext;
@@ -530,9 +533,9 @@ policy_lookup_cb (void *cls,
   // FIXME COMPRESSION
 
   recovery_document = json_loadb ((char *) plaintext,
-                                 size_plaintext,
-                                 JSON_DECODE_ANY,
-                                 &json_error);
+                                  size_plaintext,
+                                  JSON_DECODE_ANY,
+                                  &json_error);
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Recovery_document after json_loadb  %s\n",
@@ -558,12 +561,13 @@ policy_lookup_cb (void *cls,
 
   r->ri->cs_len = json_array_size (esc_methods);
   r->ri->dps_len = json_array_size (dec_policies);
-  r->ri->dps = GNUNET_new_array (r->ri->dps_len, struct 
ANASTASIS_DecryptionPolicy);
+  r->ri->dps = GNUNET_new_array (r->ri->dps_len, struct
+                                 ANASTASIS_DecryptionPolicy);
   r->solved_challenges = GNUNET_new_array (r->ri->cs_len,
                                            struct ANASTASIS_Challenge);
 
-  struct ANASTASIS_Challenge *cs = GNUNET_new_array(r->ri->cs_len,
-                                                    struct 
ANASTASIS_Challenge);
+  struct ANASTASIS_Challenge *cs = GNUNET_new_array (r->ri->cs_len,
+                                                     struct 
ANASTASIS_Challenge);
   for (unsigned int i = 0; i < r->ri->cs_len; i++)
   {
     GNUNET_assert (0 ==
@@ -613,7 +617,8 @@ policy_lookup_cb (void *cls,
                                 "uuids_length", r->ri->dps[j].uuids_length));
 
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "At %s:%d encrypted master key is %s-%llu b\n", __FILE__, 
__LINE__,
+                "At %s:%d encrypted master key is %s-%llu b\n", __FILE__,
+                __LINE__,
                 TALER_B2S (&r->ri->dps[j].emk),
                 (unsigned long long) sizeof (r->ri->dps[j].emk));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/lib/testing_cmd_challenge_answer.c 
b/src/lib/testing_cmd_challenge_answer.c
index a2a863b..5877c6c 100644
--- a/src/lib/testing_cmd_challenge_answer.c
+++ b/src/lib/testing_cmd_challenge_answer.c
@@ -114,8 +114,8 @@ challenge_answer_run (void *cls,
       return;
     }
   }
-  //FIXME IS THIS ALLOWED ?
-  ANASTASIS_challenge_answer ((struct ANASTASIS_Challenge *)c,
+  // FIXME IS THIS ALLOWED ?
+  ANASTASIS_challenge_answer ((struct ANASTASIS_Challenge *) c,
                               cs->answer,
                               cs->answer_size,
                               &challenge_answer_cb,

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



reply via email to

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