aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-02-07 15:06:06 +0000
committerBart Polot <bart@net.in.tum.de>2013-02-07 15:06:06 +0000
commit096e2a701f18dfe0d6687332fd4ec960d613909e (patch)
tree43f7d8f5d593addefc5df21b04305dae8ec71ce2 /src/regex
parent4dc3faf5e88b8ca602602aa28a6ff76c02d34848 (diff)
downloadgnunet-096e2a701f18dfe0d6687332fd4ec960d613909e.tar.gz
gnunet-096e2a701f18dfe0d6687332fd4ec960d613909e.zip
- use ecc for regex profiler daemon
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/gnunet-daemon-regexprofiler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c
index 591cda331..6d330cf68 100644
--- a/src/regex/gnunet-daemon-regexprofiler.c
+++ b/src/regex/gnunet-daemon-regexprofiler.c
@@ -61,7 +61,7 @@ static struct GNUNET_REGEX_announce_handle *announce_handle;
61/** 61/**
62 * Hostkey generation context 62 * Hostkey generation context
63 */ 63 */
64static struct GNUNET_CRYPTO_RsaKeyGenerationContext *keygen; 64static struct GNUNET_CRYPTO_EccKeyGenerationContext *keygen;
65 65
66/** 66/**
67 * Periodically reannounce regex. 67 * Periodically reannounce regex.
@@ -118,7 +118,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
118 118
119 if (NULL != keygen) 119 if (NULL != keygen)
120 { 120 {
121 GNUNET_CRYPTO_rsa_key_create_stop (keygen); 121 GNUNET_CRYPTO_ecc_key_create_stop (keygen);
122 keygen = NULL; 122 keygen = NULL;
123 } 123 }
124 if (NULL != announce_handle) 124 if (NULL != announce_handle)
@@ -281,10 +281,10 @@ load_regexes (const char *filename, char **rx)
281 */ 281 */
282static void 282static void
283key_generation_cb (void *cls, 283key_generation_cb (void *cls,
284 struct GNUNET_CRYPTO_RsaPrivateKey *pk, 284 struct GNUNET_CRYPTO_EccPrivateKey *pk,
285 const char *emsg) 285 const char *emsg)
286{ 286{
287 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded my_public_key; 287 struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded my_public_key;
288 288
289 keygen = NULL; 289 keygen = NULL;
290 if (NULL == pk) 290 if (NULL == pk)
@@ -296,7 +296,7 @@ key_generation_cb (void *cls,
296 return; 296 return;
297 } 297 }
298 298
299 GNUNET_CRYPTO_rsa_key_get_public (pk, &my_public_key); 299 GNUNET_CRYPTO_ecc_key_get_public (pk, &my_public_key);
300 GNUNET_CRYPTO_hash (&my_public_key, sizeof (my_public_key), 300 GNUNET_CRYPTO_hash (&my_public_key, sizeof (my_public_key),
301 &my_full_id.hashPubKey); 301 &my_full_id.hashPubKey);
302 302
@@ -419,7 +419,7 @@ run (void *cls, char *const *args GNUNET_UNUSED,
419 GNUNET_asprintf (&rx_with_pfx, "%s(%s)", regex_prefix, regex); 419 GNUNET_asprintf (&rx_with_pfx, "%s(%s)", regex_prefix, regex);
420 GNUNET_free (regex); 420 GNUNET_free (regex);
421 421
422 keygen = GNUNET_CRYPTO_rsa_key_create_start (keyfile, 422 keygen = GNUNET_CRYPTO_ecc_key_create_start (keyfile,
423 &key_generation_cb, 423 &key_generation_cb,
424 NULL); 424 NULL);
425 GNUNET_free (keyfile); 425 GNUNET_free (keyfile);