[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29320 - in gnunet/src: include namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29320 - in gnunet/src: include namestore |
Date: |
Mon, 16 Sep 2013 15:53:39 +0200 |
Author: grothoff
Date: 2013-09-16 15:53:39 +0200 (Mon, 16 Sep 2013)
New Revision: 29320
Modified:
gnunet/src/include/gnunet_common.h
gnunet/src/namestore/gnunet-namestore-fcfsd.c
Log:
-eliminate ShortHashCode residuals (#2936)
Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h 2013-09-16 13:41:06 UTC (rev 29319)
+++ gnunet/src/include/gnunet_common.h 2013-09-16 13:53:39 UTC (rev 29320)
@@ -259,15 +259,6 @@
/**
- * @brief A SHA-256 hashcode
- */
-struct GNUNET_CRYPTO_ShortHashCode
-{
- uint32_t bits[256 / 8 / sizeof (uint32_t)]; /* = 8 */
-};
-
-
-/**
* The identity of the host (basically the SHA-512 hashcode of
* it's public key).
*/
@@ -505,33 +496,6 @@
/**
* @ingroup logging
- * Convert a short hash value to a string (for printing debug messages).
- * This is one of the very few calls in the entire API that is
- * NOT reentrant!
- *
- * @param hc the short hash code
- * @return string
- */
-const char *
-GNUNET_short_h2s (const struct GNUNET_CRYPTO_ShortHashCode * hc);
-
-
-/**
- * @ingroup logging
- * Convert a short hash value to a string (for printing debug messages).
- * This prints all 104 characters of a hashcode!
- * This is one of the very few calls in the entire API that is
- * NOT reentrant!
- *
- * @param hc the short hash code
- * @return string
- */
-const char *
-GNUNET_short_h2s_full (const struct GNUNET_CRYPTO_ShortHashCode * hc);
-
-
-/**
- * @ingroup logging
* Convert a hash value to a string (for printing debug messages).
* This is one of the very few calls in the entire API that is
* NOT reentrant!
Modified: gnunet/src/namestore/gnunet-namestore-fcfsd.c
===================================================================
--- gnunet/src/namestore/gnunet-namestore-fcfsd.c 2013-09-16 13:41:06 UTC
(rev 29319)
+++ gnunet/src/namestore/gnunet-namestore-fcfsd.c 2013-09-16 13:53:39 UTC
(rev 29320)
@@ -511,7 +511,7 @@
{
struct Request *request = cls;
struct GNUNET_NAMESTORE_RecordData r;
- struct GNUNET_CRYPTO_ShortHashCode pub;
+ struct GNUNET_CRYPTO_EccPublicSignKey pub;
request->qe = NULL;
if (NULL != name)
@@ -523,6 +523,8 @@
run_httpd_now ();
return;
}
+ GNUNET_CRYPTO_ecc_key_get_public_for_signature (zone_key,
+ &pub);
r.data = &pub;
r.data_size = sizeof (pub);
r.expiration_time = UINT64_MAX;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29320 - in gnunet/src: include namestore,
gnunet <=