aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_internal_dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r--src/regex/regex_internal_dht.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 85fb7bcb8..26562d35a 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -104,20 +104,19 @@ regex_iterator (void *cls,
104 104
105 LOG (GNUNET_ERROR_TYPE_DEBUG, 105 LOG (GNUNET_ERROR_TYPE_DEBUG,
106 "State %s is accepting, putting own id\n", 106 "State %s is accepting, putting own id\n",
107 GNUNET_h2s(key)); 107 GNUNET_h2s (key));
108 size = sizeof (struct RegexAcceptBlock); 108 size = sizeof (struct RegexAcceptBlock);
109 ab.purpose.size = ntohl (sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + 109 ab.purpose.size = ntohl (sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) +
110 sizeof (struct GNUNET_TIME_AbsoluteNBO) + 110 sizeof (struct GNUNET_TIME_AbsoluteNBO) +
111 sizeof (struct GNUNET_HashCode)); 111 sizeof (struct GNUNET_HashCode));
112 ab.purpose.purpose = ntohl (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT); 112 ab.purpose.purpose = ntohl (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT);
113 ab.expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_DHT_MAX_EXPIRATION)); 113 ab.expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_DHT_MAX_EXPIRATION));
114 ab.key = *key; 114 ab.key = *key;
115 GNUNET_CRYPTO_ecc_key_get_public_for_signature (h->priv, 115 GNUNET_CRYPTO_ecc_key_get_public_for_signature (h->priv, &ab.public_key);
116 &ab.public_key);
117 GNUNET_assert (GNUNET_OK == 116 GNUNET_assert (GNUNET_OK ==
118 GNUNET_CRYPTO_ecc_sign (h->priv, 117 GNUNET_CRYPTO_ecc_sign (h->priv,
119 &ab.purpose, 118 &ab.purpose,
120 &ab.signature)); 119 &ab.signature));
121 120
122 GNUNET_STATISTICS_update (h->stats, "# regex accepting blocks stored", 121 GNUNET_STATISTICS_update (h->stats, "# regex accepting blocks stored",
123 1, GNUNET_NO); 122 1, GNUNET_NO);