gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24575 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r24575 - gnunet/src/gns
Date: Sat, 27 Oct 2012 21:22:50 +0200

Author: grothoff
Date: 2012-10-27 21:22:50 +0200 (Sat, 27 Oct 2012)
New Revision: 24575

Modified:
   gnunet/src/gns/plugin_block_gns.c
Log:
-indent

Modified: gnunet/src/gns/plugin_block_gns.c
===================================================================
--- gnunet/src/gns/plugin_block_gns.c   2012-10-27 19:05:53 UTC (rev 24574)
+++ gnunet/src/gns/plugin_block_gns.c   2012-10-27 19:22:50 UTC (rev 24575)
@@ -168,18 +168,20 @@
     }
     et.abs_value = exp;
     
-    GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
-        "Verifying signature of %d records for name %s with expiration of 
%u\n",
-               rd_count, name, et.abs_value);
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+               "Verifying signature of %d records for name %s with expiration 
of %u\n",
+               rd_count, name, et.abs_value);
 
-    if (GNUNET_OK != GNUNET_NAMESTORE_verify_signature (&nrb->public_key,
-                                                        et,
-                                                        name,
-                                                        rd_count,
-                                                        rd,
-                                                        &nrb->signature))
+    if (GNUNET_OK != 
+       GNUNET_NAMESTORE_verify_signature (&nrb->public_key,
+                                          et,
+                                          name,
+                                          rd_count,
+                                          rd,
+                                          &nrb->signature))
     {
-      GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Signature invalid for %s\n", name);
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 
+                 "Signature invalid for %s\n", name);
       GNUNET_break_op (0);
       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
     }
@@ -187,8 +189,8 @@
   
   if (NULL != bf)
   {
-    GNUNET_CRYPTO_hash(reply_block, reply_block_size, &chash);
-    GNUNET_BLOCK_mingle_hash(&chash, bf_mutator, &mhash);
+    GNUNET_CRYPTO_hash (reply_block, reply_block_size, &chash);
+    GNUNET_BLOCK_mingle_hash (&chash, bf_mutator, &mhash);
     if (NULL != *bf)
     {
       if (GNUNET_YES == GNUNET_CONTAINER_bloomfilter_test(*bf, &mhash))
@@ -221,13 +223,14 @@
                          struct GNUNET_HashCode * key)
 {
   struct GNUNET_CRYPTO_ShortHashCode pkey_hash;
-  const struct GNSNameRecordBlock *nrb = (const struct GNSNameRecordBlock 
*)block;
+  const struct GNSNameRecordBlock *nrb = block;
   const char *name;
 
   if (type != GNUNET_BLOCK_TYPE_GNS_NAMERECORD)
     return GNUNET_SYSERR;
   name = (const char *) &nrb[1];
-  if (NULL == memchr (name, '\0', block_size - sizeof (struct 
GNSNameRecordBlock)))
+  if (NULL == memchr (name, '\0', 
+                     block_size - sizeof (struct GNSNameRecordBlock)))
   {
     /* malformed, no 0-termination in name */
     GNUNET_break_op (0);




reply via email to

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