diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:50:40 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-09-26 12:50:40 +0000 |
commit | 31e50803fd8e15d167e048adf58cfb5190464e45 (patch) | |
tree | 2a5206f0f3f29f7f4e71b6602be516e80077ff48 /src/regex/regex_internal_dht.c | |
parent | 4f35d02a21820b2a3120c4cae04f1c543a727874 (diff) | |
download | gnunet-31e50803fd8e15d167e048adf58cfb5190464e45.tar.gz gnunet-31e50803fd8e15d167e048adf58cfb5190464e45.zip |
- indentation, style
Diffstat (limited to 'src/regex/regex_internal_dht.c')
-rw-r--r-- | src/regex/regex_internal_dht.c | 15 |
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); |