aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-08 16:56:33 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-08 16:56:33 +0200
commit11ae9f030e13d07c505a4d5477d592ddb4b3acf6 (patch)
tree69ce120a7c60c84d0d074bab8fe2cd26e77300dc /src/regex
parent2348fe4ae8ffe93765d5c56c3cc5d4490eae946d (diff)
downloadgnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.tar.gz
gnunet-11ae9f030e13d07c505a4d5477d592ddb4b3acf6.zip
fix sign api for to address #6164
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/plugin_block_regex.c8
-rw-r--r--src/regex/regex_internal_dht.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c
index 9c7aa9119..c087abae9 100644
--- a/src/regex/plugin_block_regex.c
+++ b/src/regex/plugin_block_regex.c
@@ -247,10 +247,10 @@ evaluate_block_regex_accept (void *cls,
247 return GNUNET_BLOCK_EVALUATION_OK_DUPLICATE; 247 return GNUNET_BLOCK_EVALUATION_OK_DUPLICATE;
248 } 248 }
249 if (GNUNET_OK != 249 if (GNUNET_OK !=
250 GNUNET_CRYPTO_eddsa_verify (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT, 250 GNUNET_CRYPTO_eddsa_verify_ (GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT,
251 &rba->purpose, 251 &rba->purpose,
252 &rba->signature, 252 &rba->signature,
253 &rba->peer.public_key)) 253 &rba->peer.public_key))
254 { 254 {
255 GNUNET_break_op (0); 255 GNUNET_break_op (0);
256 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; 256 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 3cf48f3c2..d2c69f131 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -136,9 +136,9 @@ regex_iterator (void *cls,
136 GNUNET_CRYPTO_eddsa_key_get_public (h->priv, 136 GNUNET_CRYPTO_eddsa_key_get_public (h->priv,
137 &ab.peer.public_key); 137 &ab.peer.public_key);
138 GNUNET_assert (GNUNET_OK == 138 GNUNET_assert (GNUNET_OK ==
139 GNUNET_CRYPTO_eddsa_sign (h->priv, 139 GNUNET_CRYPTO_eddsa_sign_ (h->priv,
140 &ab.purpose, 140 &ab.purpose,
141 &ab.signature)); 141 &ab.signature));
142 142
143 GNUNET_STATISTICS_update (h->stats, "# regex accepting blocks stored", 143 GNUNET_STATISTICS_update (h->stats, "# regex accepting blocks stored",
144 1, GNUNET_NO); 144 1, GNUNET_NO);