diff options
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/gns.h | 11 | ||||
-rw-r--r-- | src/gns/gns_api.c | 37 | ||||
-rw-r--r-- | src/gns/gnunet-gns-fcfsd.c | 8 | ||||
-rw-r--r-- | src/gns/gnunet-gns-helper-service-w32.c | 4 | ||||
-rw-r--r-- | src/gns/gnunet-gns-proxy.c | 20 | ||||
-rw-r--r-- | src/gns/gnunet-gns.c | 14 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns.c | 53 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns_resolver.c | 104 | ||||
-rw-r--r-- | src/gns/plugin_block_gns.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_cname_lookup.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_dht_delegated_lookup.c | 6 | ||||
-rw-r--r-- | src/gns/test_gns_dht_three_peers.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_max_queries.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_ns_lookup.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_pseu_shorten.c | 16 | ||||
-rw-r--r-- | src/gns/test_gns_revocation.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_simple_delegated_lookup.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_simple_get_authority.c | 6 | ||||
-rw-r--r-- | src/gns/test_gns_simple_lookup.c | 2 | ||||
-rw-r--r-- | src/gns/test_gns_simple_mx_lookup.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_simple_shorten.c | 10 | ||||
-rw-r--r-- | src/gns/test_gns_simple_srv_lookup.c | 4 | ||||
-rw-r--r-- | src/gns/test_gns_simple_zkey_lookup.c | 4 |
23 files changed, 145 insertions, 180 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h index e5d48fa27..a4830bda4 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h | |||
@@ -71,9 +71,9 @@ struct GNUNET_GNS_ClientLookupMessage | |||
71 | uint32_t only_cached GNUNET_PACKED; | 71 | uint32_t only_cached GNUNET_PACKED; |
72 | 72 | ||
73 | /** | 73 | /** |
74 | * Should we look up in the default zone? | 74 | * Should we look up in the given zone, instead of the default zone? |
75 | */ | 75 | */ |
76 | uint32_t use_default_zone GNUNET_PACKED; | 76 | uint32_t have_zone GNUNET_PACKED; |
77 | 77 | ||
78 | /** | 78 | /** |
79 | * Is a shorten key attached? | 79 | * Is a shorten key attached? |
@@ -84,8 +84,11 @@ struct GNUNET_GNS_ClientLookupMessage | |||
84 | * the type of record to look up | 84 | * the type of record to look up |
85 | */ | 85 | */ |
86 | /* enum GNUNET_GNS_RecordType */ uint32_t type; | 86 | /* enum GNUNET_GNS_RecordType */ uint32_t type; |
87 | 87 | ||
88 | /* Followed by the key for shorten (optional) see have_key */ | 88 | /** |
89 | * The key for shorten, if 'have_key' is set | ||
90 | */ | ||
91 | struct GNUNET_CRYPTO_EccPrivateKey shorten_key; | ||
89 | 92 | ||
90 | /* Followed by the name to look up */ | 93 | /* Followed by the name to look up */ |
91 | }; | 94 | }; |
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c index fe378a922..e672c5687 100644 --- a/src/gns/gns_api.c +++ b/src/gns/gns_api.c | |||
@@ -832,35 +832,20 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | |||
832 | struct GNUNET_GNS_LookupRequest *lr; | 832 | struct GNUNET_GNS_LookupRequest *lr; |
833 | size_t msize; | 833 | size_t msize; |
834 | struct PendingMessage *pending; | 834 | struct PendingMessage *pending; |
835 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *pkey_enc; | ||
836 | size_t key_len; | ||
837 | char* pkey_tmp; | ||
838 | 835 | ||
839 | if (NULL == name) | 836 | if (NULL == name) |
840 | { | 837 | { |
841 | GNUNET_break (0); | 838 | GNUNET_break (0); |
842 | return NULL; | 839 | return NULL; |
843 | } | 840 | } |
844 | if (NULL != shorten_key) | ||
845 | { | ||
846 | pkey_enc = GNUNET_CRYPTO_ecc_encode_key (shorten_key); | ||
847 | GNUNET_assert (pkey_enc != NULL); | ||
848 | key_len = ntohs (pkey_enc->size); | ||
849 | } | ||
850 | else | ||
851 | { | ||
852 | pkey_enc = NULL; | ||
853 | key_len = 0; | ||
854 | } | ||
855 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 841 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
856 | "Trying to lookup `%s' in GNS\n", | 842 | "Trying to lookup `%s' in GNS\n", |
857 | name); | 843 | name); |
858 | msize = sizeof (struct GNUNET_GNS_ClientLookupMessage) | 844 | msize = sizeof (struct GNUNET_GNS_ClientLookupMessage) |
859 | + key_len + strlen (name) + 1; | 845 | + strlen (name) + 1; |
860 | if (msize > UINT16_MAX) | 846 | if (msize > UINT16_MAX) |
861 | { | 847 | { |
862 | GNUNET_break (0); | 848 | GNUNET_break (0); |
863 | GNUNET_free (pkey_enc); | ||
864 | return NULL; | 849 | return NULL; |
865 | } | 850 | } |
866 | lr = GNUNET_malloc (sizeof (struct GNUNET_GNS_LookupRequest) + | 851 | lr = GNUNET_malloc (sizeof (struct GNUNET_GNS_LookupRequest) + |
@@ -882,26 +867,16 @@ GNUNET_GNS_lookup_zone (struct GNUNET_GNS_Handle *handle, | |||
882 | lookup_msg->only_cached = htonl (only_cached); | 867 | lookup_msg->only_cached = htonl (only_cached); |
883 | if (NULL != zone) | 868 | if (NULL != zone) |
884 | { | 869 | { |
885 | lookup_msg->use_default_zone = htonl (GNUNET_NO); | 870 | lookup_msg->have_zone = htonl (GNUNET_YES); |
886 | memcpy (&lookup_msg->zone, zone, sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 871 | lookup_msg->zone = *zone; |
887 | } | 872 | } |
888 | else | ||
889 | { | ||
890 | lookup_msg->use_default_zone = htonl (GNUNET_YES); | ||
891 | memset (&lookup_msg->zone, 0, sizeof(struct GNUNET_CRYPTO_ShortHashCode)); | ||
892 | } | ||
893 | lookup_msg->type = htonl (type); | 873 | lookup_msg->type = htonl (type); |
894 | pkey_tmp = (char *) &lookup_msg[1]; | 874 | if (NULL != shorten_key) |
895 | if (pkey_enc != NULL) | ||
896 | { | 875 | { |
897 | lookup_msg->have_key = htonl (GNUNET_YES); | 876 | lookup_msg->have_key = htonl (GNUNET_YES); |
898 | memcpy (pkey_tmp, pkey_enc, key_len); | 877 | lookup_msg->shorten_key = *shorten_key; |
899 | } | 878 | } |
900 | else | 879 | memcpy (&lookup_msg[1], name, strlen (name) + 1); |
901 | lookup_msg->have_key = htonl (GNUNET_NO); | ||
902 | GNUNET_free_non_null (pkey_enc); | ||
903 | memcpy (&pkey_tmp[key_len], name, strlen (name) + 1); | ||
904 | |||
905 | GNUNET_CONTAINER_DLL_insert_tail (handle->pending_head, | 880 | GNUNET_CONTAINER_DLL_insert_tail (handle->pending_head, |
906 | handle->pending_tail, | 881 | handle->pending_tail, |
907 | pending); | 882 | pending); |
diff --git a/src/gns/gnunet-gns-fcfsd.c b/src/gns/gnunet-gns-fcfsd.c index 25fde90ec..832060583 100644 --- a/src/gns/gnunet-gns-fcfsd.c +++ b/src/gns/gnunet-gns-fcfsd.c | |||
@@ -229,7 +229,7 @@ run_httpd_now () | |||
229 | 229 | ||
230 | static void | 230 | static void |
231 | iterate_cb (void *cls, | 231 | iterate_cb (void *cls, |
232 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 232 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
233 | struct GNUNET_TIME_Absolute expire, | 233 | struct GNUNET_TIME_Absolute expire, |
234 | const char *name, | 234 | const char *name, |
235 | unsigned int rd_len, | 235 | unsigned int rd_len, |
@@ -506,7 +506,7 @@ put_continuation (void *cls, | |||
506 | */ | 506 | */ |
507 | static void | 507 | static void |
508 | zone_to_name_cb (void *cls, | 508 | zone_to_name_cb (void *cls, |
509 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 509 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
510 | struct GNUNET_TIME_Absolute expire, | 510 | struct GNUNET_TIME_Absolute expire, |
511 | const char *name, | 511 | const char *name, |
512 | unsigned int rd_count, | 512 | unsigned int rd_count, |
@@ -566,7 +566,7 @@ zone_to_name_cb (void *cls, | |||
566 | */ | 566 | */ |
567 | static void | 567 | static void |
568 | lookup_result_processor (void *cls, | 568 | lookup_result_processor (void *cls, |
569 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 569 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
570 | struct GNUNET_TIME_Absolute expire, | 570 | struct GNUNET_TIME_Absolute expire, |
571 | const char *name, | 571 | const char *name, |
572 | unsigned int rd_count, | 572 | unsigned int rd_count, |
@@ -883,7 +883,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
883 | { | 883 | { |
884 | char *keyfile; | 884 | char *keyfile; |
885 | unsigned long long port; | 885 | unsigned long long port; |
886 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pub; | 886 | struct GNUNET_CRYPTO_EccPublicKey pub; |
887 | 887 | ||
888 | if (GNUNET_OK != | 888 | if (GNUNET_OK != |
889 | GNUNET_CONFIGURATION_get_value_number (cfg, | 889 | GNUNET_CONFIGURATION_get_value_number (cfg, |
diff --git a/src/gns/gnunet-gns-helper-service-w32.c b/src/gns/gnunet-gns-helper-service-w32.c index a15b3547c..f0bf6577c 100644 --- a/src/gns/gnunet-gns-helper-service-w32.c +++ b/src/gns/gnunet-gns-helper-service-w32.c | |||
@@ -663,7 +663,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
663 | 663 | ||
664 | char* keyfile; | 664 | char* keyfile; |
665 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; | 665 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; |
666 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 666 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
667 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; | 667 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; |
668 | 668 | ||
669 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns", | 669 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns", |
@@ -680,7 +680,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
680 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 680 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
681 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 681 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
682 | GNUNET_CRYPTO_short_hash(&pkey, | 682 | GNUNET_CRYPTO_short_hash(&pkey, |
683 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 683 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
684 | &user_zone); | 684 | &user_zone); |
685 | zone = &user_zone; | 685 | zone = &user_zone; |
686 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | 686 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); |
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index 59e4f89fe..4752422dd 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c | |||
@@ -3189,7 +3189,7 @@ load_local_zone_key (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
3189 | { | 3189 | { |
3190 | char *keyfile; | 3190 | char *keyfile; |
3191 | struct GNUNET_CRYPTO_EccPrivateKey *key; | 3191 | struct GNUNET_CRYPTO_EccPrivateKey *key; |
3192 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 3192 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
3193 | struct GNUNET_CRYPTO_ShortHashCode *zone; | 3193 | struct GNUNET_CRYPTO_ShortHashCode *zone; |
3194 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; | 3194 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; |
3195 | 3195 | ||
@@ -3212,9 +3212,9 @@ load_local_zone_key (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
3212 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 3212 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
3213 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 3213 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
3214 | local_gns_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 3214 | local_gns_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
3215 | GNUNET_CRYPTO_short_hash(&pkey, | 3215 | GNUNET_CRYPTO_short_hash (&pkey, |
3216 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 3216 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
3217 | local_gns_zone); | 3217 | local_gns_zone); |
3218 | zone = local_gns_zone; | 3218 | zone = local_gns_zone; |
3219 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | 3219 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); |
3220 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3220 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -3241,9 +3241,9 @@ load_local_zone_key (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
3241 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 3241 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
3242 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 3242 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
3243 | local_private_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 3243 | local_private_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
3244 | GNUNET_CRYPTO_short_hash(&pkey, | 3244 | GNUNET_CRYPTO_short_hash (&pkey, |
3245 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 3245 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
3246 | local_private_zone); | 3246 | local_private_zone); |
3247 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | 3247 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); |
3248 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3248 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3249 | "Using private zone: %s!\n", &zonename); | 3249 | "Using private zone: %s!\n", &zonename); |
@@ -3270,9 +3270,9 @@ load_local_zone_key (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
3270 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 3270 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
3271 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 3271 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
3272 | local_shorten_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 3272 | local_shorten_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
3273 | GNUNET_CRYPTO_short_hash(&pkey, | 3273 | GNUNET_CRYPTO_short_hash (&pkey, |
3274 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 3274 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
3275 | local_shorten_zone); | 3275 | local_shorten_zone); |
3276 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | 3276 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); |
3277 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3277 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3278 | "Using shorten zone: %s!\n", &zonename); | 3278 | "Using shorten zone: %s!\n", &zonename); |
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index 542a8106d..fa0a99590 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -205,7 +205,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
205 | { | 205 | { |
206 | char* keyfile; | 206 | char* keyfile; |
207 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; | 207 | struct GNUNET_CRYPTO_EccPrivateKey *key = NULL; |
208 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 208 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
209 | struct GNUNET_CRYPTO_ShortHashCode *zone = NULL; | 209 | struct GNUNET_CRYPTO_ShortHashCode *zone = NULL; |
210 | struct GNUNET_CRYPTO_ShortHashCode user_zone; | 210 | struct GNUNET_CRYPTO_ShortHashCode user_zone; |
211 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; | 211 | struct GNUNET_CRYPTO_ShortHashAsciiEncoded zonename; |
@@ -233,7 +233,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
233 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 233 | key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
234 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 234 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
235 | GNUNET_CRYPTO_short_hash (&pkey, | 235 | GNUNET_CRYPTO_short_hash (&pkey, |
236 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 236 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
237 | &user_zone); | 237 | &user_zone); |
238 | zone = &user_zone; | 238 | zone = &user_zone; |
239 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); | 239 | GNUNET_CRYPTO_short_hash_to_enc (zone, &zonename); |
@@ -257,7 +257,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
257 | GNUNET_CRYPTO_ecc_key_get_public (shorten_key, &pkey); | 257 | GNUNET_CRYPTO_ecc_key_get_public (shorten_key, &pkey); |
258 | shorten_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 258 | shorten_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); |
259 | GNUNET_CRYPTO_short_hash(&pkey, | 259 | GNUNET_CRYPTO_short_hash(&pkey, |
260 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 260 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
261 | shorten_zone); | 261 | shorten_zone); |
262 | GNUNET_CRYPTO_short_hash_to_enc (shorten_zone, &zonename); | 262 | GNUNET_CRYPTO_short_hash_to_enc (shorten_zone, &zonename); |
263 | if (! raw) | 263 | if (! raw) |
@@ -277,10 +277,10 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
277 | { | 277 | { |
278 | private_key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 278 | private_key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
279 | GNUNET_CRYPTO_ecc_key_get_public (private_key, &pkey); | 279 | GNUNET_CRYPTO_ecc_key_get_public (private_key, &pkey); |
280 | private_zone = GNUNET_malloc (sizeof (struct GNUNET_CRYPTO_ShortHashCode)); | 280 | private_zone = GNUNET_new (struct GNUNET_CRYPTO_ShortHashCode); |
281 | GNUNET_CRYPTO_short_hash(&pkey, | 281 | GNUNET_CRYPTO_short_hash (&pkey, |
282 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 282 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
283 | private_zone); | 283 | private_zone); |
284 | GNUNET_CRYPTO_short_hash_to_enc (private_zone, &zonename); | 284 | GNUNET_CRYPTO_short_hash_to_enc (private_zone, &zonename); |
285 | if (! raw) | 285 | if (! raw) |
286 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 286 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index fcfa4b138..8200e3f87 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -382,7 +382,7 @@ publish_zone_dht_start (void *cls, | |||
382 | */ | 382 | */ |
383 | static void | 383 | static void |
384 | put_gns_record (void *cls, | 384 | put_gns_record (void *cls, |
385 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 385 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
386 | struct GNUNET_TIME_Absolute expiration, | 386 | struct GNUNET_TIME_Absolute expiration, |
387 | const char *name, | 387 | const char *name, |
388 | unsigned int rd_count, | 388 | unsigned int rd_count, |
@@ -486,7 +486,7 @@ put_gns_record (void *cls, | |||
486 | nrb_data += namelen; | 486 | nrb_data += namelen; |
487 | rd_payload_length += sizeof(struct GNSNameRecordBlock) + namelen; | 487 | rd_payload_length += sizeof(struct GNSNameRecordBlock) + namelen; |
488 | GNUNET_CRYPTO_short_hash (key, | 488 | GNUNET_CRYPTO_short_hash (key, |
489 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 489 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
490 | &zhash); | 490 | &zhash); |
491 | if (-1 == GNUNET_NAMESTORE_records_serialize (rd_count, | 491 | if (-1 == GNUNET_NAMESTORE_records_serialize (rd_count, |
492 | rd, | 492 | rd, |
@@ -637,7 +637,7 @@ send_shorten_response (void* cls, const char* name) | |||
637 | */ | 637 | */ |
638 | static void | 638 | static void |
639 | process_shorten_in_private_zone_lookup (void *cls, | 639 | process_shorten_in_private_zone_lookup (void *cls, |
640 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 640 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
641 | struct GNUNET_TIME_Absolute expiration, | 641 | struct GNUNET_TIME_Absolute expiration, |
642 | const char *name, | 642 | const char *name, |
643 | unsigned int rd_count, | 643 | unsigned int rd_count, |
@@ -693,7 +693,7 @@ process_shorten_in_private_zone_lookup (void *cls, | |||
693 | */ | 693 | */ |
694 | static void | 694 | static void |
695 | process_shorten_in_root_zone_lookup (void *cls, | 695 | process_shorten_in_root_zone_lookup (void *cls, |
696 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 696 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
697 | struct GNUNET_TIME_Absolute expiration, | 697 | struct GNUNET_TIME_Absolute expiration, |
698 | const char *name, | 698 | const char *name, |
699 | unsigned int rd_count, | 699 | unsigned int rd_count, |
@@ -749,7 +749,7 @@ process_shorten_in_root_zone_lookup (void *cls, | |||
749 | */ | 749 | */ |
750 | static void | 750 | static void |
751 | process_private_in_root_zone_lookup (void *cls, | 751 | process_private_in_root_zone_lookup (void *cls, |
752 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 752 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
753 | struct GNUNET_TIME_Absolute expiration, | 753 | struct GNUNET_TIME_Absolute expiration, |
754 | const char *name, | 754 | const char *name, |
755 | unsigned int rd_count, | 755 | unsigned int rd_count, |
@@ -1075,9 +1075,7 @@ handle_lookup (void *cls, | |||
1075 | char* nameptr = name; | 1075 | char* nameptr = name; |
1076 | const char *utf_in; | 1076 | const char *utf_in; |
1077 | int only_cached; | 1077 | int only_cached; |
1078 | struct GNUNET_CRYPTO_EccPrivateKey *key; | 1078 | const struct GNUNET_CRYPTO_EccPrivateKey *key; |
1079 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *pkey; | ||
1080 | char* tmp_pkey; | ||
1081 | uint16_t msg_size; | 1079 | uint16_t msg_size; |
1082 | const struct GNUNET_GNS_ClientLookupMessage *sh_msg; | 1080 | const struct GNUNET_GNS_ClientLookupMessage *sh_msg; |
1083 | 1081 | ||
@@ -1094,24 +1092,20 @@ handle_lookup (void *cls, | |||
1094 | GNUNET_SERVER_notification_context_add (nc, client); | 1092 | GNUNET_SERVER_notification_context_add (nc, client); |
1095 | if (GNUNET_YES == ntohl (sh_msg->have_key)) | 1093 | if (GNUNET_YES == ntohl (sh_msg->have_key)) |
1096 | { | 1094 | { |
1097 | pkey = (struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *) &sh_msg[1]; | 1095 | key = &sh_msg->shorten_key; |
1098 | tmp_pkey = (char*) &sh_msg[1]; | ||
1099 | key = GNUNET_CRYPTO_ecc_decode_key (tmp_pkey, ntohs (pkey->size), | ||
1100 | GNUNET_NO); | ||
1101 | GNUNET_STRINGS_utf8_tolower (&tmp_pkey[ntohs (pkey->size)], &nameptr); | ||
1102 | } | 1096 | } |
1103 | else | 1097 | else |
1104 | { | 1098 | { |
1105 | key = NULL; | 1099 | key = NULL; |
1106 | utf_in = (const char *) &sh_msg[1]; | ||
1107 | if ('\0' != utf_in[msg_size - sizeof (struct GNUNET_GNS_ClientLookupMessage) - 1]) | ||
1108 | { | ||
1109 | GNUNET_break (0); | ||
1110 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | ||
1111 | return; | ||
1112 | } | ||
1113 | GNUNET_STRINGS_utf8_tolower (utf_in, &nameptr); | ||
1114 | } | 1100 | } |
1101 | utf_in = (const char *) &sh_msg[1]; | ||
1102 | if ('\0' != utf_in[msg_size - sizeof (struct GNUNET_GNS_ClientLookupMessage) - 1]) | ||
1103 | { | ||
1104 | GNUNET_break (0); | ||
1105 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | ||
1106 | return; | ||
1107 | } | ||
1108 | GNUNET_STRINGS_utf8_tolower (utf_in, &nameptr); | ||
1115 | 1109 | ||
1116 | namelen = strlen (name) + 1; | 1110 | namelen = strlen (name) + 1; |
1117 | clh = GNUNET_malloc (sizeof (struct ClientLookupHandle)); | 1111 | clh = GNUNET_malloc (sizeof (struct ClientLookupHandle)); |
@@ -1121,8 +1115,11 @@ handle_lookup (void *cls, | |||
1121 | strcpy (clh->name, name); | 1115 | strcpy (clh->name, name); |
1122 | clh->request_id = sh_msg->id; | 1116 | clh->request_id = sh_msg->id; |
1123 | clh->type = ntohl (sh_msg->type); | 1117 | clh->type = ntohl (sh_msg->type); |
1124 | clh->shorten_key = key; | 1118 | if (NULL != key) |
1125 | 1119 | { | |
1120 | clh->shorten_key = GNUNET_new (struct GNUNET_CRYPTO_EccPrivateKey); | ||
1121 | *clh->shorten_key = *key; | ||
1122 | } | ||
1126 | only_cached = ntohl (sh_msg->only_cached); | 1123 | only_cached = ntohl (sh_msg->only_cached); |
1127 | 1124 | ||
1128 | if (strlen (name) > GNUNET_DNSPARSER_MAX_NAME_LENGTH) { | 1125 | if (strlen (name) > GNUNET_DNSPARSER_MAX_NAME_LENGTH) { |
@@ -1153,7 +1150,7 @@ handle_lookup (void *cls, | |||
1153 | return; | 1150 | return; |
1154 | } | 1151 | } |
1155 | 1152 | ||
1156 | if (1 == ntohl (sh_msg->use_default_zone)) | 1153 | if (GNUNET_NO == ntohl (sh_msg->have_zone)) |
1157 | clh->zone = zone_hash; /* Default zone */ | 1154 | clh->zone = zone_hash; /* Default zone */ |
1158 | else | 1155 | else |
1159 | clh->zone = sh_msg->zone; | 1156 | clh->zone = sh_msg->zone; |
@@ -1196,7 +1193,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1196 | {&handle_get_authority, NULL, GNUNET_MESSAGE_TYPE_GNS_GET_AUTH, 0} | 1193 | {&handle_get_authority, NULL, GNUNET_MESSAGE_TYPE_GNS_GET_AUTH, 0} |
1197 | }; | 1194 | }; |
1198 | char* keyfile; | 1195 | char* keyfile; |
1199 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 1196 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
1200 | unsigned long long max_parallel_bg_queries = 0; | 1197 | unsigned long long max_parallel_bg_queries = 0; |
1201 | int ignore_pending = GNUNET_NO; | 1198 | int ignore_pending = GNUNET_NO; |
1202 | 1199 | ||
@@ -1217,9 +1214,9 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1217 | 1214 | ||
1218 | zone_key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); | 1215 | zone_key = GNUNET_CRYPTO_ecc_key_create_from_file (keyfile); |
1219 | GNUNET_CRYPTO_ecc_key_get_public (zone_key, &pkey); | 1216 | GNUNET_CRYPTO_ecc_key_get_public (zone_key, &pkey); |
1220 | GNUNET_CRYPTO_short_hash(&pkey, | 1217 | GNUNET_CRYPTO_short_hash (&pkey, |
1221 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 1218 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
1222 | &zone_hash); | 1219 | &zone_hash); |
1223 | GNUNET_free(keyfile); | 1220 | GNUNET_free(keyfile); |
1224 | namestore_handle = GNUNET_NAMESTORE_connect (c); | 1221 | namestore_handle = GNUNET_NAMESTORE_connect (c); |
1225 | if (NULL == namestore_handle) | 1222 | if (NULL == namestore_handle) |
diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 2cde3e37e..2e96b60ea 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c | |||
@@ -270,7 +270,7 @@ create_pkey_cont (void* cls, int32_t success, const char* emsg) | |||
270 | */ | 270 | */ |
271 | static void | 271 | static void |
272 | process_pseu_lookup_ns (void* cls, | 272 | process_pseu_lookup_ns (void* cls, |
273 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 273 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
274 | struct GNUNET_TIME_Absolute expiration, | 274 | struct GNUNET_TIME_Absolute expiration, |
275 | const char *name, unsigned int rd_count, | 275 | const char *name, unsigned int rd_count, |
276 | const struct GNUNET_NAMESTORE_RecordData *rd, | 276 | const struct GNUNET_NAMESTORE_RecordData *rd, |
@@ -464,12 +464,12 @@ process_auth_discovery_dht_result (void* cls, | |||
464 | */ | 464 | */ |
465 | static void | 465 | static void |
466 | process_auth_discovery_ns_result (void* cls, | 466 | process_auth_discovery_ns_result (void* cls, |
467 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 467 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
468 | struct GNUNET_TIME_Absolute expiration, | 468 | struct GNUNET_TIME_Absolute expiration, |
469 | const char *name, | 469 | const char *name, |
470 | unsigned int rd_count, | 470 | unsigned int rd_count, |
471 | const struct GNUNET_NAMESTORE_RecordData *rd, | 471 | const struct GNUNET_NAMESTORE_RecordData *rd, |
472 | const struct GNUNET_CRYPTO_EccSignature *signature) | 472 | const struct GNUNET_CRYPTO_EccSignature *signature) |
473 | { | 473 | { |
474 | struct GetPseuAuthorityHandle* gph = cls; | 474 | struct GetPseuAuthorityHandle* gph = cls; |
475 | struct GNUNET_HashCode lookup_key; | 475 | struct GNUNET_HashCode lookup_key; |
@@ -537,7 +537,7 @@ process_auth_discovery_ns_result (void* cls, | |||
537 | */ | 537 | */ |
538 | static void | 538 | static void |
539 | process_zone_to_name_discover (void *cls, | 539 | process_zone_to_name_discover (void *cls, |
540 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 540 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
541 | struct GNUNET_TIME_Absolute expire, | 541 | struct GNUNET_TIME_Absolute expire, |
542 | const char *name, | 542 | const char *name, |
543 | unsigned int rd_len, | 543 | unsigned int rd_len, |
@@ -575,12 +575,11 @@ shorten_authority_chain (struct GetPseuAuthorityHandle *gph) | |||
575 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 575 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
576 | "GNS_AUTO_PSEU: New authority %s discovered\n", | 576 | "GNS_AUTO_PSEU: New authority %s discovered\n", |
577 | gph->auth->name); | 577 | gph->auth->name); |
578 | |||
579 | gph->namestore_task = GNUNET_NAMESTORE_zone_to_name (namestore_handle, | 578 | gph->namestore_task = GNUNET_NAMESTORE_zone_to_name (namestore_handle, |
580 | &gph->our_zone, | 579 | &gph->our_zone, |
581 | &gph->auth->zone, | 580 | &gph->auth->zone, |
582 | &process_zone_to_name_discover, | 581 | &process_zone_to_name_discover, |
583 | gph); | 582 | gph); |
584 | } | 583 | } |
585 | 584 | ||
586 | 585 | ||
@@ -596,21 +595,12 @@ start_shorten (struct AuthorityChain *auth, | |||
596 | const struct GNUNET_CRYPTO_EccPrivateKey *key) | 595 | const struct GNUNET_CRYPTO_EccPrivateKey *key) |
597 | { | 596 | { |
598 | struct GetPseuAuthorityHandle *gph; | 597 | struct GetPseuAuthorityHandle *gph; |
599 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 598 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
600 | struct GNUNET_CRYPTO_EccPrivateKeyBinaryEncoded *pb_key; | ||
601 | 599 | ||
602 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); | 600 | GNUNET_CRYPTO_ecc_key_get_public (key, &pkey); |
603 | if (NULL == (pb_key = GNUNET_CRYPTO_ecc_encode_key (key))) | ||
604 | { | ||
605 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
606 | "Failed to encode ECC key on shorten\n"); | ||
607 | return; | ||
608 | } | ||
609 | gph = GNUNET_new (struct GetPseuAuthorityHandle); | 601 | gph = GNUNET_new (struct GetPseuAuthorityHandle); |
610 | gph->key = GNUNET_CRYPTO_ecc_decode_key ((const char*) pb_key, | 602 | gph->key = GNUNET_new (struct GNUNET_CRYPTO_EccPrivateKey); |
611 | ntohs (pb_key->size), | 603 | *gph->key = *key; |
612 | GNUNET_YES); | ||
613 | GNUNET_free (pb_key); | ||
614 | if (NULL == gph->key) | 604 | if (NULL == gph->key) |
615 | { | 605 | { |
616 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 606 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
@@ -619,7 +609,7 @@ start_shorten (struct AuthorityChain *auth, | |||
619 | return; | 609 | return; |
620 | } | 610 | } |
621 | GNUNET_CRYPTO_short_hash (&pkey, | 611 | GNUNET_CRYPTO_short_hash (&pkey, |
622 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 612 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
623 | &gph->our_zone); | 613 | &gph->our_zone); |
624 | gph->auth = GNUNET_malloc (sizeof (struct AuthorityChain)); | 614 | gph->auth = GNUNET_malloc (sizeof (struct AuthorityChain)); |
625 | memcpy (gph->auth, auth, sizeof (struct AuthorityChain)); | 615 | memcpy (gph->auth, auth, sizeof (struct AuthorityChain)); |
@@ -1157,7 +1147,7 @@ resolve_record_dht (struct ResolverHandle *rh) | |||
1157 | */ | 1147 | */ |
1158 | static void | 1148 | static void |
1159 | process_record_result_ns (void* cls, | 1149 | process_record_result_ns (void* cls, |
1160 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 1150 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
1161 | struct GNUNET_TIME_Absolute expiration, | 1151 | struct GNUNET_TIME_Absolute expiration, |
1162 | const char *name, unsigned int rd_count, | 1152 | const char *name, unsigned int rd_count, |
1163 | const struct GNUNET_NAMESTORE_RecordData *rd, | 1153 | const struct GNUNET_NAMESTORE_RecordData *rd, |
@@ -1172,7 +1162,7 @@ process_record_result_ns (void* cls, | |||
1172 | 1162 | ||
1173 | rh->namestore_task = NULL; | 1163 | rh->namestore_task = NULL; |
1174 | GNUNET_CRYPTO_short_hash (key, | 1164 | GNUNET_CRYPTO_short_hash (key, |
1175 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 1165 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
1176 | &zone); | 1166 | &zone); |
1177 | remaining_time = GNUNET_TIME_absolute_get_remaining (expiration); | 1167 | remaining_time = GNUNET_TIME_absolute_get_remaining (expiration); |
1178 | rh->status = 0; | 1168 | rh->status = 0; |
@@ -2040,7 +2030,7 @@ handle_delegation_ns (void* cls, struct ResolverHandle *rh, | |||
2040 | */ | 2030 | */ |
2041 | static void | 2031 | static void |
2042 | process_pkey_revocation_result_ns (void *cls, | 2032 | process_pkey_revocation_result_ns (void *cls, |
2043 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 2033 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
2044 | struct GNUNET_TIME_Absolute expiration, | 2034 | struct GNUNET_TIME_Absolute expiration, |
2045 | const char *name, | 2035 | const char *name, |
2046 | unsigned int rd_count, | 2036 | unsigned int rd_count, |
@@ -3069,7 +3059,7 @@ handle_delegation_ns (void* cls, struct ResolverHandle *rh, | |||
3069 | */ | 3059 | */ |
3070 | static void | 3060 | static void |
3071 | process_delegation_result_ns (void* cls, | 3061 | process_delegation_result_ns (void* cls, |
3072 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *key, | 3062 | const struct GNUNET_CRYPTO_EccPublicKey *key, |
3073 | struct GNUNET_TIME_Absolute expiration, | 3063 | struct GNUNET_TIME_Absolute expiration, |
3074 | const char *name, | 3064 | const char *name, |
3075 | unsigned int rd_count, | 3065 | unsigned int rd_count, |
@@ -3086,7 +3076,7 @@ process_delegation_result_ns (void* cls, | |||
3086 | 3076 | ||
3087 | rh->namestore_task = NULL; | 3077 | rh->namestore_task = NULL; |
3088 | GNUNET_CRYPTO_short_hash (key, | 3078 | GNUNET_CRYPTO_short_hash (key, |
3089 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 3079 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
3090 | &zone); | 3080 | &zone); |
3091 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3081 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3092 | "GNS_PHASE_DELEGATE_NS-%llu: Got %d records from authority lookup for `%s' in zone %s\n", | 3082 | "GNS_PHASE_DELEGATE_NS-%llu: Got %d records from authority lookup for `%s' in zone %s\n", |
@@ -3515,7 +3505,7 @@ finish_shorten (struct ResolverHandle *rh, | |||
3515 | */ | 3505 | */ |
3516 | static void | 3506 | static void |
3517 | process_zone_to_name_shorten_root (void *cls, | 3507 | process_zone_to_name_shorten_root (void *cls, |
3518 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 3508 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
3519 | struct GNUNET_TIME_Absolute expire, | 3509 | struct GNUNET_TIME_Absolute expire, |
3520 | const char *name, | 3510 | const char *name, |
3521 | unsigned int rd_len, | 3511 | unsigned int rd_len, |
@@ -3537,12 +3527,12 @@ process_zone_to_name_shorten_root (void *cls, | |||
3537 | */ | 3527 | */ |
3538 | static void | 3528 | static void |
3539 | process_zone_to_name_shorten_shorten (void *cls, | 3529 | process_zone_to_name_shorten_shorten (void *cls, |
3540 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 3530 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
3541 | struct GNUNET_TIME_Absolute expire, | 3531 | struct GNUNET_TIME_Absolute expire, |
3542 | const char *name, | 3532 | const char *name, |
3543 | unsigned int rd_len, | 3533 | unsigned int rd_len, |
3544 | const struct GNUNET_NAMESTORE_RecordData *rd, | 3534 | const struct GNUNET_NAMESTORE_RecordData *rd, |
3545 | const struct GNUNET_CRYPTO_EccSignature *signature) | 3535 | const struct GNUNET_CRYPTO_EccSignature *signature) |
3546 | { | 3536 | { |
3547 | struct ResolverHandle *rh = cls; | 3537 | struct ResolverHandle *rh = cls; |
3548 | struct NameShortenHandle* nsh = rh->proc_cls; | 3538 | struct NameShortenHandle* nsh = rh->proc_cls; |
@@ -3653,12 +3643,12 @@ process_zone_to_name_shorten_shorten (void *cls, | |||
3653 | */ | 3643 | */ |
3654 | static void | 3644 | static void |
3655 | process_zone_to_name_shorten_private (void *cls, | 3645 | process_zone_to_name_shorten_private (void *cls, |
3656 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 3646 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
3657 | struct GNUNET_TIME_Absolute expire, | 3647 | struct GNUNET_TIME_Absolute expire, |
3658 | const char *name, | 3648 | const char *name, |
3659 | unsigned int rd_len, | 3649 | unsigned int rd_len, |
3660 | const struct GNUNET_NAMESTORE_RecordData *rd, | 3650 | const struct GNUNET_NAMESTORE_RecordData *rd, |
3661 | const struct GNUNET_CRYPTO_EccSignature *signature) | 3651 | const struct GNUNET_CRYPTO_EccSignature *signature) |
3662 | { | 3652 | { |
3663 | struct ResolverHandle *rh = cls; | 3653 | struct ResolverHandle *rh = cls; |
3664 | struct NameShortenHandle* nsh = rh->proc_cls; | 3654 | struct NameShortenHandle* nsh = rh->proc_cls; |
@@ -3768,12 +3758,12 @@ process_zone_to_name_shorten_private (void *cls, | |||
3768 | */ | 3758 | */ |
3769 | static void | 3759 | static void |
3770 | process_zone_to_name_shorten_root (void *cls, | 3760 | process_zone_to_name_shorten_root (void *cls, |
3771 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 3761 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
3772 | struct GNUNET_TIME_Absolute expire, | 3762 | struct GNUNET_TIME_Absolute expire, |
3773 | const char *name, | 3763 | const char *name, |
3774 | unsigned int rd_len, | 3764 | unsigned int rd_len, |
3775 | const struct GNUNET_NAMESTORE_RecordData *rd, | 3765 | const struct GNUNET_NAMESTORE_RecordData *rd, |
3776 | const struct GNUNET_CRYPTO_EccSignature *signature) | 3766 | const struct GNUNET_CRYPTO_EccSignature *signature) |
3777 | { | 3767 | { |
3778 | struct ResolverHandle *rh = cls; | 3768 | struct ResolverHandle *rh = cls; |
3779 | struct NameShortenHandle* nsh = rh->proc_cls; | 3769 | struct NameShortenHandle* nsh = rh->proc_cls; |
@@ -3990,13 +3980,13 @@ handle_delegation_ns_shorten (void* cls, | |||
3990 | * @param signature the signature for the record data | 3980 | * @param signature the signature for the record data |
3991 | */ | 3981 | */ |
3992 | static void | 3982 | static void |
3993 | process_zone_to_name_zkey(void *cls, | 3983 | process_zone_to_name_zkey (void *cls, |
3994 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, | 3984 | const struct GNUNET_CRYPTO_EccPublicKey *zone_key, |
3995 | struct GNUNET_TIME_Absolute expire, | 3985 | struct GNUNET_TIME_Absolute expire, |
3996 | const char *name, | 3986 | const char *name, |
3997 | unsigned int rd_len, | 3987 | unsigned int rd_len, |
3998 | const struct GNUNET_NAMESTORE_RecordData *rd, | 3988 | const struct GNUNET_NAMESTORE_RecordData *rd, |
3999 | const struct GNUNET_CRYPTO_EccSignature *signature) | 3989 | const struct GNUNET_CRYPTO_EccSignature *signature) |
4000 | { | 3990 | { |
4001 | struct ResolverHandle *rh = cls; | 3991 | struct ResolverHandle *rh = cls; |
4002 | struct NameShortenHandle *nsh = rh->proc_cls; | 3992 | struct NameShortenHandle *nsh = rh->proc_cls; |
diff --git a/src/gns/plugin_block_gns.c b/src/gns/plugin_block_gns.c index 72149ef4f..ffc38c99b 100644 --- a/src/gns/plugin_block_gns.c +++ b/src/gns/plugin_block_gns.c | |||
@@ -237,7 +237,7 @@ block_plugin_gns_get_key (void *cls, enum GNUNET_BLOCK_Type type, | |||
237 | return GNUNET_SYSERR; | 237 | return GNUNET_SYSERR; |
238 | } | 238 | } |
239 | GNUNET_CRYPTO_short_hash (&nrb->public_key, | 239 | GNUNET_CRYPTO_short_hash (&nrb->public_key, |
240 | sizeof (struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 240 | sizeof (struct GNUNET_CRYPTO_EccPublicKey), |
241 | &pkey_hash); | 241 | &pkey_hash); |
242 | GNUNET_GNS_get_key_for_record (name, &pkey_hash, key); | 242 | GNUNET_GNS_get_key_for_record (name, &pkey_hash, key); |
243 | return GNUNET_OK; | 243 | return GNUNET_OK; |
diff --git a/src/gns/test_gns_cname_lookup.c b/src/gns/test_gns_cname_lookup.c index cc1df9407..325583001 100644 --- a/src/gns/test_gns_cname_lookup.c +++ b/src/gns/test_gns_cname_lookup.c | |||
@@ -334,7 +334,7 @@ do_check (void *cls, | |||
334 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 334 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
335 | struct GNUNET_TESTING_Peer *peer) | 335 | struct GNUNET_TESTING_Peer *peer) |
336 | { | 336 | { |
337 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 337 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
338 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 338 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
339 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 339 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
340 | char* alice_keyfile; | 340 | char* alice_keyfile; |
diff --git a/src/gns/test_gns_dht_delegated_lookup.c b/src/gns/test_gns_dht_delegated_lookup.c index e743e0fd3..fbaacfdfa 100644 --- a/src/gns/test_gns_dht_delegated_lookup.c +++ b/src/gns/test_gns_dht_delegated_lookup.c | |||
@@ -65,8 +65,8 @@ static struct GNUNET_DHT_Handle *dht_handle; | |||
65 | 65 | ||
66 | static const struct GNUNET_CONFIGURATION_Handle *cfg; | 66 | static const struct GNUNET_CONFIGURATION_Handle *cfg; |
67 | 67 | ||
68 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 68 | static struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
69 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 69 | static struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
70 | static struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 70 | static struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
71 | static struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 71 | static struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
72 | 72 | ||
@@ -262,7 +262,7 @@ put_dht(void *cls, int32_t success, const char *emsg) | |||
262 | } | 262 | } |
263 | GNUNET_CRYPTO_short_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); | 263 | GNUNET_CRYPTO_short_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); |
264 | GNUNET_CRYPTO_short_hash(&bob_pkey, | 264 | GNUNET_CRYPTO_short_hash(&bob_pkey, |
265 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 265 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
266 | &zone_hash); | 266 | &zone_hash); |
267 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); | 267 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); |
268 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); | 268 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); |
diff --git a/src/gns/test_gns_dht_three_peers.c b/src/gns/test_gns_dht_three_peers.c index 58edb9cc5..35a738aef 100644 --- a/src/gns/test_gns_dht_three_peers.c +++ b/src/gns/test_gns_dht_three_peers.c | |||
@@ -309,7 +309,7 @@ setup_dave (const struct GNUNET_CONFIGURATION_Handle * cfg) | |||
309 | { | 309 | { |
310 | char* keyfile; | 310 | char* keyfile; |
311 | struct GNUNET_CRYPTO_EccPrivateKey *key; | 311 | struct GNUNET_CRYPTO_EccPrivateKey *key; |
312 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 312 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
313 | struct in_addr *web; | 313 | struct in_addr *web; |
314 | struct GNUNET_NAMESTORE_RecordData rd; | 314 | struct GNUNET_NAMESTORE_RecordData rd; |
315 | 315 | ||
@@ -380,7 +380,7 @@ setup_bob (const struct GNUNET_CONFIGURATION_Handle * cfg) | |||
380 | { | 380 | { |
381 | char* keyfile; | 381 | char* keyfile; |
382 | struct GNUNET_CRYPTO_EccPrivateKey *key; | 382 | struct GNUNET_CRYPTO_EccPrivateKey *key; |
383 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pkey; | 383 | struct GNUNET_CRYPTO_EccPublicKey pkey; |
384 | struct GNUNET_NAMESTORE_RecordData rd; | 384 | struct GNUNET_NAMESTORE_RecordData rd; |
385 | 385 | ||
386 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Setting up bob\n"); | 386 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Setting up bob\n"); |
diff --git a/src/gns/test_gns_max_queries.c b/src/gns/test_gns_max_queries.c index 82273798f..cc993e347 100644 --- a/src/gns/test_gns_max_queries.c +++ b/src/gns/test_gns_max_queries.c | |||
@@ -252,8 +252,8 @@ do_check (void *cls, | |||
252 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 252 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
253 | struct GNUNET_TESTING_Peer *peer) | 253 | struct GNUNET_TESTING_Peer *peer) |
254 | { | 254 | { |
255 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 255 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
256 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 256 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
257 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 257 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
258 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 258 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
259 | char* alice_keyfile; | 259 | char* alice_keyfile; |
diff --git a/src/gns/test_gns_ns_lookup.c b/src/gns/test_gns_ns_lookup.c index e62d34e9a..0673243b6 100644 --- a/src/gns/test_gns_ns_lookup.c +++ b/src/gns/test_gns_ns_lookup.c | |||
@@ -561,7 +561,7 @@ do_check (void *cls, | |||
561 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 561 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
562 | struct GNUNET_TESTING_Peer *peer) | 562 | struct GNUNET_TESTING_Peer *peer) |
563 | { | 563 | { |
564 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 564 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
565 | char* alice_keyfile; | 565 | char* alice_keyfile; |
566 | struct GNUNET_NAMESTORE_RecordData rd[2]; | 566 | struct GNUNET_NAMESTORE_RecordData rd[2]; |
567 | struct in_addr ns; | 567 | struct in_addr ns; |
diff --git a/src/gns/test_gns_pseu_shorten.c b/src/gns/test_gns_pseu_shorten.c index 28f92f8b5..7413c7074 100644 --- a/src/gns/test_gns_pseu_shorten.c +++ b/src/gns/test_gns_pseu_shorten.c | |||
@@ -69,11 +69,11 @@ static struct GNUNET_DHT_Handle *dht_handle; | |||
69 | 69 | ||
70 | static const struct GNUNET_CONFIGURATION_Handle *cfg; | 70 | static const struct GNUNET_CONFIGURATION_Handle *cfg; |
71 | 71 | ||
72 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 72 | static struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
73 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 73 | static struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
74 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded our_pkey; | 74 | static struct GNUNET_CRYPTO_EccPublicKey our_pkey; |
75 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded priv_pkey; | 75 | static struct GNUNET_CRYPTO_EccPublicKey priv_pkey; |
76 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded short_pkey; | 76 | static struct GNUNET_CRYPTO_EccPublicKey short_pkey; |
77 | static struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 77 | static struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
78 | static struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 78 | static struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
79 | static struct GNUNET_CRYPTO_EccPrivateKey *our_key; | 79 | static struct GNUNET_CRYPTO_EccPrivateKey *our_key; |
@@ -316,7 +316,7 @@ put_pseu_dht (void *cls, int success) | |||
316 | } | 316 | } |
317 | GNUNET_CRYPTO_short_hash(GNUNET_GNS_MASTERZONE_STR, strlen(GNUNET_GNS_MASTERZONE_STR), &name_hash); | 317 | GNUNET_CRYPTO_short_hash(GNUNET_GNS_MASTERZONE_STR, strlen(GNUNET_GNS_MASTERZONE_STR), &name_hash); |
318 | GNUNET_CRYPTO_short_hash(&alice_pkey, | 318 | GNUNET_CRYPTO_short_hash(&alice_pkey, |
319 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 319 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
320 | &zone_hash); | 320 | &zone_hash); |
321 | 321 | ||
322 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); | 322 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); |
@@ -405,7 +405,7 @@ put_www_dht (void *cls, int success) | |||
405 | } | 405 | } |
406 | GNUNET_CRYPTO_short_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); | 406 | GNUNET_CRYPTO_short_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash); |
407 | GNUNET_CRYPTO_short_hash(&alice_pkey, | 407 | GNUNET_CRYPTO_short_hash(&alice_pkey, |
408 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 408 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
409 | &zone_hash); | 409 | &zone_hash); |
410 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); | 410 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); |
411 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); | 411 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); |
@@ -488,7 +488,7 @@ put_pkey_dht (void *cls, int32_t success, const char *emsg) | |||
488 | GNUNET_CRYPTO_short_hash (TEST_AUTHORITY_ALICE, | 488 | GNUNET_CRYPTO_short_hash (TEST_AUTHORITY_ALICE, |
489 | strlen (TEST_AUTHORITY_ALICE), &name_hash); | 489 | strlen (TEST_AUTHORITY_ALICE), &name_hash); |
490 | GNUNET_CRYPTO_short_hash (&bob_pkey, | 490 | GNUNET_CRYPTO_short_hash (&bob_pkey, |
491 | sizeof(struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded), | 491 | sizeof(struct GNUNET_CRYPTO_EccPublicKey), |
492 | &zone_hash); | 492 | &zone_hash); |
493 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); | 493 | GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double); |
494 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); | 494 | GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double); |
diff --git a/src/gns/test_gns_revocation.c b/src/gns/test_gns_revocation.c index c491db4aa..e66655203 100644 --- a/src/gns/test_gns_revocation.c +++ b/src/gns/test_gns_revocation.c | |||
@@ -180,8 +180,8 @@ do_check (void *cls, | |||
180 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 180 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
181 | struct GNUNET_TESTING_Peer *peer) | 181 | struct GNUNET_TESTING_Peer *peer) |
182 | { | 182 | { |
183 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 183 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
184 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 184 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
187 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; | 187 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; |
diff --git a/src/gns/test_gns_simple_delegated_lookup.c b/src/gns/test_gns_simple_delegated_lookup.c index 4804de6f8..ff19569d6 100644 --- a/src/gns/test_gns_simple_delegated_lookup.c +++ b/src/gns/test_gns_simple_delegated_lookup.c | |||
@@ -189,8 +189,8 @@ do_check (void *cls, | |||
189 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 189 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
190 | struct GNUNET_TESTING_Peer *peer) | 190 | struct GNUNET_TESTING_Peer *peer) |
191 | { | 191 | { |
192 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 192 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
193 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 193 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
194 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 194 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
195 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 195 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
196 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; | 196 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; |
diff --git a/src/gns/test_gns_simple_get_authority.c b/src/gns/test_gns_simple_get_authority.c index 7a25e7ca1..7a3e8af93 100644 --- a/src/gns/test_gns_simple_get_authority.c +++ b/src/gns/test_gns_simple_get_authority.c | |||
@@ -178,9 +178,9 @@ void do_check (void *cls, | |||
178 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 178 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
179 | struct GNUNET_TESTING_Peer *peer) | 179 | struct GNUNET_TESTING_Peer *peer) |
180 | { | 180 | { |
181 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded our_pkey; | 181 | struct GNUNET_CRYPTO_EccPublicKey our_pkey; |
182 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 182 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
183 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 183 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
184 | struct GNUNET_CRYPTO_EccPrivateKey *our_key; | 184 | struct GNUNET_CRYPTO_EccPrivateKey *our_key; |
185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
diff --git a/src/gns/test_gns_simple_lookup.c b/src/gns/test_gns_simple_lookup.c index a7c3348fd..fceb8f052 100644 --- a/src/gns/test_gns_simple_lookup.c +++ b/src/gns/test_gns_simple_lookup.c | |||
@@ -221,7 +221,7 @@ do_check (void *cls, | |||
221 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 221 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
222 | struct GNUNET_TESTING_Peer *peer) | 222 | struct GNUNET_TESTING_Peer *peer) |
223 | { | 223 | { |
224 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 224 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
225 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 225 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
226 | struct GNUNET_NAMESTORE_RecordData rd; | 226 | struct GNUNET_NAMESTORE_RecordData rd; |
227 | char* alice_keyfile; | 227 | char* alice_keyfile; |
diff --git a/src/gns/test_gns_simple_mx_lookup.c b/src/gns/test_gns_simple_mx_lookup.c index f3cfaac27..904758bde 100644 --- a/src/gns/test_gns_simple_mx_lookup.c +++ b/src/gns/test_gns_simple_mx_lookup.c | |||
@@ -180,8 +180,8 @@ do_check (void *cls, | |||
180 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 180 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
181 | struct GNUNET_TESTING_Peer *peer) | 181 | struct GNUNET_TESTING_Peer *peer) |
182 | { | 182 | { |
183 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 183 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
184 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 184 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 185 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 186 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
187 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; | 187 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; |
diff --git a/src/gns/test_gns_simple_shorten.c b/src/gns/test_gns_simple_shorten.c index 600cb0733..679a74dc8 100644 --- a/src/gns/test_gns_simple_shorten.c +++ b/src/gns/test_gns_simple_shorten.c | |||
@@ -61,8 +61,8 @@ static struct GNUNET_GNS_Handle *gns_handle; | |||
61 | 61 | ||
62 | const struct GNUNET_CONFIGURATION_Handle *cfg; | 62 | const struct GNUNET_CONFIGURATION_Handle *cfg; |
63 | 63 | ||
64 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded priv_pkey; | 64 | struct GNUNET_CRYPTO_EccPublicKey priv_pkey; |
65 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded short_pkey; | 65 | struct GNUNET_CRYPTO_EccPublicKey short_pkey; |
66 | struct GNUNET_CRYPTO_EccPrivateKey *priv_key; | 66 | struct GNUNET_CRYPTO_EccPrivateKey *priv_key; |
67 | struct GNUNET_CRYPTO_EccPrivateKey *short_key; | 67 | struct GNUNET_CRYPTO_EccPrivateKey *short_key; |
68 | 68 | ||
@@ -170,9 +170,9 @@ void do_check (void *cls, | |||
170 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 170 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
171 | struct GNUNET_TESTING_Peer *peer) | 171 | struct GNUNET_TESTING_Peer *peer) |
172 | { | 172 | { |
173 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded our_pkey; | 173 | struct GNUNET_CRYPTO_EccPublicKey our_pkey; |
174 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 174 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
175 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 175 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
176 | struct GNUNET_CRYPTO_EccPrivateKey *our_key; | 176 | struct GNUNET_CRYPTO_EccPrivateKey *our_key; |
177 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 177 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
178 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 178 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
diff --git a/src/gns/test_gns_simple_srv_lookup.c b/src/gns/test_gns_simple_srv_lookup.c index 3b1cd46a0..a403bf554 100644 --- a/src/gns/test_gns_simple_srv_lookup.c +++ b/src/gns/test_gns_simple_srv_lookup.c | |||
@@ -182,8 +182,8 @@ do_check (void *cls, | |||
182 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 182 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
183 | struct GNUNET_TESTING_Peer *peer) | 183 | struct GNUNET_TESTING_Peer *peer) |
184 | { | 184 | { |
185 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 185 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
186 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 186 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
187 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 187 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
188 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 188 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
189 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; | 189 | struct GNUNET_CRYPTO_ShortHashCode bob_hash; |
diff --git a/src/gns/test_gns_simple_zkey_lookup.c b/src/gns/test_gns_simple_zkey_lookup.c index 311282535..c0e3afc8d 100644 --- a/src/gns/test_gns_simple_zkey_lookup.c +++ b/src/gns/test_gns_simple_zkey_lookup.c | |||
@@ -199,8 +199,8 @@ do_check (void *cls, | |||
199 | const struct GNUNET_CONFIGURATION_Handle *ccfg, | 199 | const struct GNUNET_CONFIGURATION_Handle *ccfg, |
200 | struct GNUNET_TESTING_Peer *peer) | 200 | struct GNUNET_TESTING_Peer *peer) |
201 | { | 201 | { |
202 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded alice_pkey; | 202 | struct GNUNET_CRYPTO_EccPublicKey alice_pkey; |
203 | struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded bob_pkey; | 203 | struct GNUNET_CRYPTO_EccPublicKey bob_pkey; |
204 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; | 204 | struct GNUNET_CRYPTO_EccPrivateKey *alice_key; |
205 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; | 205 | struct GNUNET_CRYPTO_EccPrivateKey *bob_key; |
206 | struct GNUNET_CRYPTO_EccSignature *sig; | 206 | struct GNUNET_CRYPTO_EccSignature *sig; |