aboutsummaryrefslogtreecommitdiff
path: root/src/dns/plugin_block_dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns/plugin_block_dns.c')
-rw-r--r--src/dns/plugin_block_dns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dns/plugin_block_dns.c b/src/dns/plugin_block_dns.c
index de9185a5a..a8846944e 100644
--- a/src/dns/plugin_block_dns.c
+++ b/src/dns/plugin_block_dns.c
@@ -85,14 +85,14 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
85 GNUNET_TIME_absolute_get_remaining (GNUNET_TIME_absolute_ntoh 85 GNUNET_TIME_absolute_get_remaining (GNUNET_TIME_absolute_ntoh
86 (ad->expiration_time)).rel_value_us) 86 (ad->expiration_time)).rel_value_us)
87 { 87 {
88 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 88 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
89 "DNS advertisement has expired\n"); 89 "DNS advertisement has expired\n");
90 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; 90 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
91 } 91 }
92 if (GNUNET_OK != 92 if (GNUNET_OK !=
93 GNUNET_CRYPTO_ecc_verify (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD, 93 GNUNET_CRYPTO_ecc_verify (GNUNET_SIGNATURE_PURPOSE_DNS_RECORD,
94 &ad->purpose, 94 &ad->purpose,
95 &ad->signature, 95 &ad->signature,
96 &ad->peer.public_key)) 96 &ad->peer.public_key))
97 { 97 {
98 GNUNET_break_op (0); 98 GNUNET_break_op (0);
@@ -117,9 +117,9 @@ block_plugin_dns_evaluate (void *cls, enum GNUNET_BLOCK_Type type,
117 * (or if extracting a key from a block of this type does not work) 117 * (or if extracting a key from a block of this type does not work)
118 */ 118 */
119static int 119static int
120block_plugin_dns_get_key (void *cls, 120block_plugin_dns_get_key (void *cls,
121 enum GNUNET_BLOCK_Type type, 121 enum GNUNET_BLOCK_Type type,
122 const void *block, 122 const void *block,
123 size_t block_size, 123 size_t block_size,
124 struct GNUNET_HashCode *key) 124 struct GNUNET_HashCode *key)
125{ 125{