gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r408 - in GNUnet: . src/applications/fs/ecrs src/include


From: grothoff
Subject: [GNUnet-SVN] r408 - in GNUnet: . src/applications/fs/ecrs src/include
Date: Mon, 7 Mar 2005 20:07:03 -0800 (PST)

Author: grothoff
Date: 2005-03-07 20:07:02 -0800 (Mon, 07 Mar 2005)
New Revision: 408

Modified:
   GNUnet/src/applications/fs/ecrs/meta.c
   GNUnet/src/include/gnunet_util.h
   GNUnet/todo
Log:
bugfixes

Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c      2005-03-08 04:06:42 UTC (rev 
407)
+++ GNUnet/src/applications/fs/ecrs/meta.c      2005-03-08 04:07:02 UTC (rev 
408)
@@ -537,7 +537,7 @@
          (i < ic) ) {
     len = strlen(&data[pos])+1;
     ECRS_addToMetaData(*md,
-                      (EXTRACTOR_KeywordType) ((unsigned int*)data)[i],
+                      (EXTRACTOR_KeywordType) ntohl(((unsigned int*)data)[i]),
                       &data[pos]);    
     pos += len;
     i++;

Modified: GNUnet/src/include/gnunet_util.h
===================================================================
--- GNUnet/src/include/gnunet_util.h    2005-03-08 04:06:42 UTC (rev 407)
+++ GNUnet/src/include/gnunet_util.h    2005-03-08 04:07:02 UTC (rev 408)
@@ -1519,14 +1519,13 @@
  * @param key the key to use
  * @param block the data to decrypt, encoded as returned by encrypt, not 
consumed
  * @param result pointer to a location where the result can be stored
- * @param max the maximum number of bits to store for the result, if
- *        the decrypted block is bigger, an error is returned
- * @returns the size of the decrypted block, -1 on error
+ * @param size how many bytes of a result are expected? Must be exact.
+ * @returns the size of the decrypted block (that is, size) or -1 on error
  */
 int decryptPrivateKey(const struct PrivateKey * key, 
                      const RSAEncryptedData * block,
                      void * result,
-                     unsigned int max);
+                     unsigned short size);
 
 /**
  * Sign a given block.

Modified: GNUnet/todo
===================================================================
--- GNUnet/todo 2005-03-08 04:06:42 UTC (rev 407)
+++ GNUnet/todo 2005-03-08 04:07:02 UTC (rev 408)
@@ -10,7 +10,6 @@
   * sqlite-tests: test concurrency with iterators
   * gnunet-pseudonym
   * gnunet-search: multiple search results don't work (yet); test on FSLIB and 
ECRS levels!
-  * sessiontest reveils problems with encryption in gcrypt (!) -- sessionkey 
invalid upon decryption, why?
   * tbench is awful code (FIX) and also somehow _breaks_ bandwidth 
limitations! (Mantis #766 anyone?)
 - FSUI:
   * download: various details wrt generated events





reply via email to

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