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/gnsrecord/test_gnsrecord_crypto.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/gnsrecord/test_gnsrecord_crypto.c')
-rw-r--r-- | src/gnsrecord/test_gnsrecord_crypto.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gnsrecord/test_gnsrecord_crypto.c b/src/gnsrecord/test_gnsrecord_crypto.c index 345bf353b..91bafdf21 100644 --- a/src/gnsrecord/test_gnsrecord_crypto.c +++ b/src/gnsrecord/test_gnsrecord_crypto.c | |||
@@ -42,20 +42,20 @@ | |||
42 | 42 | ||
43 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; | 43 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; |
44 | 44 | ||
45 | static struct GNUNET_NAMESTORE_RecordData *s_rd; | 45 | static struct GNUNET_GNSRECORD_Data *s_rd; |
46 | 46 | ||
47 | static char *s_name; | 47 | static char *s_name; |
48 | 48 | ||
49 | static int res; | 49 | static int res; |
50 | 50 | ||
51 | 51 | ||
52 | static struct GNUNET_NAMESTORE_RecordData * | 52 | static struct GNUNET_GNSRECORD_Data * |
53 | create_record (int count) | 53 | create_record (int count) |
54 | { | 54 | { |
55 | unsigned int c; | 55 | unsigned int c; |
56 | struct GNUNET_NAMESTORE_RecordData * rd; | 56 | struct GNUNET_GNSRECORD_Data * rd; |
57 | 57 | ||
58 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_NAMESTORE_RecordData)); | 58 | rd = GNUNET_malloc (count * sizeof (struct GNUNET_GNSRECORD_Data)); |
59 | for (c = 0; c < count; c++) | 59 | for (c = 0; c < count; c++) |
60 | { | 60 | { |
61 | rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value_us; | 61 | rd[c].expiration_time = GNUNET_TIME_absolute_get().abs_value_us; |
@@ -71,7 +71,7 @@ create_record (int count) | |||
71 | static void | 71 | static void |
72 | rd_decrypt_cb (void *cls, | 72 | rd_decrypt_cb (void *cls, |
73 | unsigned int rd_count, | 73 | unsigned int rd_count, |
74 | const struct GNUNET_NAMESTORE_RecordData *rd) | 74 | const struct GNUNET_GNSRECORD_Data *rd) |
75 | { | 75 | { |
76 | char rd_cmp_data[TEST_RECORD_DATALEN]; | 76 | char rd_cmp_data[TEST_RECORD_DATALEN]; |
77 | 77 | ||
@@ -98,7 +98,7 @@ static void | |||
98 | run (void *cls, char *const *args, const char *cfgfile, | 98 | run (void *cls, char *const *args, const char *cfgfile, |
99 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 99 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
100 | { | 100 | { |
101 | struct GNUNET_NAMESTORE_Block *block; | 101 | struct GNUNET_GNSRECORD_Block *block; |
102 | struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; | 102 | struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; |
103 | 103 | ||
104 | /* load privat key */ | 104 | /* load privat key */ |
@@ -118,9 +118,9 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
118 | s_rd = create_record (RECORDS); | 118 | s_rd = create_record (RECORDS); |
119 | 119 | ||
120 | /* Create block */ | 120 | /* Create block */ |
121 | GNUNET_assert (NULL != (block = GNUNET_NAMESTORE_block_create (privkey, expire,s_name, s_rd, RECORDS))); | 121 | GNUNET_assert (NULL != (block = GNUNET_GNSRECORD_block_create (privkey, expire,s_name, s_rd, RECORDS))); |
122 | GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_block_verify (block)); | 122 | GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_verify (block)); |
123 | GNUNET_assert (GNUNET_OK == GNUNET_NAMESTORE_block_decrypt (block, &pubkey, s_name, &rd_decrypt_cb, s_name)); | 123 | GNUNET_assert (GNUNET_OK == GNUNET_GNSRECORD_block_decrypt (block, &pubkey, s_name, &rd_decrypt_cb, s_name)); |
124 | 124 | ||
125 | GNUNET_free (block); | 125 | GNUNET_free (block); |
126 | } | 126 | } |