diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-16 20:21:27 +0000 |
commit | accfd6bd85274da2f19e7230c8da6b273cfb2ece (patch) | |
tree | 60966194963795ff07b4da94f4efb6c46d6a23cf /src/namestore/test_namestore_api_store_update.c | |
parent | 3d670727232e79b7e49a1df7ba9260db4e5798a0 (diff) | |
download | gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.tar.gz gnunet-accfd6bd85274da2f19e7230c8da6b273cfb2ece.zip |
-another renaming fest for GNUNET_NAMESTORE_ to GNUNET_GNSRECORD_ symbols that were moved
Diffstat (limited to 'src/namestore/test_namestore_api_store_update.c')
-rw-r--r-- | src/namestore/test_namestore_api_store_update.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index 4aa058a91..4a0a36bb8 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -112,9 +112,9 @@ put_cont (void *cls, int32_t success, const char *emsg); | |||
112 | static void | 112 | static void |
113 | rd_decrypt_cb (void *cls, | 113 | rd_decrypt_cb (void *cls, |
114 | unsigned int rd_count, | 114 | unsigned int rd_count, |
115 | const struct GNUNET_NAMESTORE_RecordData *rd) | 115 | const struct GNUNET_GNSRECORD_Data *rd) |
116 | { | 116 | { |
117 | struct GNUNET_NAMESTORE_RecordData rd_new; | 117 | struct GNUNET_GNSRECORD_Data rd_new; |
118 | 118 | ||
119 | GNUNET_assert (1 == rd_count); | 119 | GNUNET_assert (1 == rd_count); |
120 | GNUNET_assert (NULL != rd); | 120 | GNUNET_assert (NULL != rd); |
@@ -131,7 +131,7 @@ rd_decrypt_cb (void *cls, | |||
131 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 131 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
132 | "Block was decrypted successfully, updating record \n"); | 132 | "Block was decrypted successfully, updating record \n"); |
133 | 133 | ||
134 | rd_new.flags = GNUNET_NAMESTORE_RF_NONE; | 134 | rd_new.flags = GNUNET_GNSRECORD_RF_NONE; |
135 | rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; | 135 | rd_new.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; |
136 | rd_new.record_type = TEST_RECORD_TYPE2; | 136 | rd_new.record_type = TEST_RECORD_TYPE2; |
137 | rd_new.data_size = TEST_RECORD_DATALEN2; | 137 | rd_new.data_size = TEST_RECORD_DATALEN2; |
@@ -158,7 +158,7 @@ rd_decrypt_cb (void *cls, | |||
158 | 158 | ||
159 | static void | 159 | static void |
160 | name_lookup_proc (void *cls, | 160 | name_lookup_proc (void *cls, |
161 | const struct GNUNET_NAMESTORE_Block *block) | 161 | const struct GNUNET_GNSRECORD_Block *block) |
162 | { | 162 | { |
163 | const char *name = cls; | 163 | const char *name = cls; |
164 | nsqe = NULL; | 164 | nsqe = NULL; |
@@ -183,7 +183,7 @@ name_lookup_proc (void *cls, | |||
183 | 183 | ||
184 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 184 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
185 | "Namestore returned block, decrypting \n"); | 185 | "Namestore returned block, decrypting \n"); |
186 | GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_block_decrypt(block, | 186 | GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_decrypt(block, |
187 | &pubkey, name, &rd_decrypt_cb, (void *) name)); | 187 | &pubkey, name, &rd_decrypt_cb, (void *) name)); |
188 | } | 188 | } |
189 | 189 | ||
@@ -202,7 +202,7 @@ put_cont (void *cls, int32_t success, const char *emsg) | |||
202 | (success == GNUNET_OK) ? "SUCCESS" : "FAIL"); | 202 | (success == GNUNET_OK) ? "SUCCESS" : "FAIL"); |
203 | 203 | ||
204 | /* Create derived hash */ | 204 | /* Create derived hash */ |
205 | GNUNET_NAMESTORE_query_from_private_key (privkey, name, &derived_hash); | 205 | GNUNET_GNSRECORD_query_from_private_key (privkey, name, &derived_hash); |
206 | 206 | ||
207 | nsqe = GNUNET_NAMESTORE_lookup_block (nsh, &derived_hash, | 207 | nsqe = GNUNET_NAMESTORE_lookup_block (nsh, &derived_hash, |
208 | &name_lookup_proc, (void *) name); | 208 | &name_lookup_proc, (void *) name); |
@@ -214,7 +214,7 @@ run (void *cls, | |||
214 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 214 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
215 | struct GNUNET_TESTING_Peer *peer) | 215 | struct GNUNET_TESTING_Peer *peer) |
216 | { | 216 | { |
217 | struct GNUNET_NAMESTORE_RecordData rd; | 217 | struct GNUNET_GNSRECORD_Data rd; |
218 | char *hostkey_file; | 218 | char *hostkey_file; |
219 | 219 | ||
220 | update_performed = GNUNET_NO; | 220 | update_performed = GNUNET_NO; |
@@ -230,7 +230,7 @@ run (void *cls, | |||
230 | GNUNET_assert (privkey != NULL); | 230 | GNUNET_assert (privkey != NULL); |
231 | GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); | 231 | GNUNET_CRYPTO_ecdsa_key_get_public (privkey, &pubkey); |
232 | 232 | ||
233 | rd.flags = GNUNET_NAMESTORE_RF_NONE; | 233 | rd.flags = GNUNET_GNSRECORD_RF_NONE; |
234 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; | 234 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value_us; |
235 | rd.record_type = TEST_RECORD_TYPE; | 235 | rd.record_type = TEST_RECORD_TYPE; |
236 | rd.data_size = TEST_RECORD_DATALEN; | 236 | rd.data_size = TEST_RECORD_DATALEN; |