diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-06 14:18:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-06 14:18:31 +0000 |
commit | fe76c075e315c0351e2fe465434ae39087daf014 (patch) | |
tree | 436887ccaf331932a3c13a8b9d2a2a710dad4be6 /src/namestore/test_namestore_api_remove.c | |
parent | 7eb2835d8a494c83aedb720a2ac6f6e5ba23f22f (diff) | |
download | gnunet-fe76c075e315c0351e2fe465434ae39087daf014.tar.gz gnunet-fe76c075e315c0351e2fe465434ae39087daf014.zip |
moving to new, fixed-size encoding of public and private ECC keys everywhere, also improving ECC API to better support ECRS/GADS operations
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index 77edd3fa9..f278b30db 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -51,7 +51,7 @@ static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | |||
51 | 51 | ||
52 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; | 52 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; |
53 | 53 | ||
54 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey; | 54 | static struct GNUNET_CRYPTO_EccPublicKey pubkey; |
55 | 55 | ||
56 | static struct GNUNET_CRYPTO_EccSignature *s_signature; | 56 | static struct GNUNET_CRYPTO_EccSignature *s_signature; |
57 | 57 | ||
@@ -109,7 +109,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
109 | 109 | ||
110 | static void | 110 | static void |
111 | name_lookup_proc (void *cls, | 111 | name_lookup_proc (void *cls, |
112 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 112 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
113 | struct GNUNET_TIME_Absolute expire, | 113 | struct GNUNET_TIME_Absolute expire, |
114 | const char *n, | 114 | const char *n, |
115 | unsigned int rd_count, | 115 | unsigned int rd_count, |
@@ -124,7 +124,7 @@ name_lookup_proc (void *cls, | |||
124 | "Lookup for name `%s' returned %u records\n", n, rd_count); | 124 | "Lookup for name `%s' returned %u records\n", n, rd_count); |
125 | if (0 != memcmp (zone_key, | 125 | if (0 != memcmp (zone_key, |
126 | &pubkey, | 126 | &pubkey, |
127 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded))) | 127 | sizeof (struct GNUNET_CRYPTO_EccPublicKey))) |
128 | { | 128 | { |
129 | GNUNET_break (0); | 129 | GNUNET_break (0); |
130 | failed = GNUNET_YES; | 130 | failed = GNUNET_YES; |
@@ -254,7 +254,7 @@ run (void *cls, | |||
254 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); | 254 | s_signature = GNUNET_NAMESTORE_create_signature(privkey, et, s_name, s_rd, RECORDS); |
255 | 255 | ||
256 | /* create random zone hash */ | 256 | /* create random zone hash */ |
257 | GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), &s_zone); | 257 | GNUNET_CRYPTO_short_hash (&pubkey, sizeof (struct GNUNET_CRYPTO_EccPublicKey), &s_zone); |
258 | 258 | ||
259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Name: `%s' Zone: `%s' \n", s_name, GNUNET_NAMESTORE_short_h2s (&s_zone)); | 259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Name: `%s' Zone: `%s' \n", s_name, GNUNET_NAMESTORE_short_h2s (&s_zone)); |
260 | nsh = GNUNET_NAMESTORE_connect (cfg); | 260 | nsh = GNUNET_NAMESTORE_connect (cfg); |