diff options
Diffstat (limited to 'src/namestore/test_namestore_api.c')
-rw-r--r-- | src/namestore/test_namestore_api.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/namestore/test_namestore_api.c b/src/namestore/test_namestore_api.c index c290673fa..32dd4844c 100644 --- a/src/namestore/test_namestore_api.c +++ b/src/namestore/test_namestore_api.c | |||
@@ -39,9 +39,9 @@ static struct GNUNET_NAMESTORE_Handle *nsh; | |||
39 | 39 | ||
40 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; | 40 | static GNUNET_SCHEDULER_TaskIdentifier endbadly_task; |
41 | 41 | ||
42 | static struct GNUNET_CRYPTO_RsaPrivateKey *privkey; | 42 | static struct GNUNET_CRYPTO_EccPrivateKey *privkey; |
43 | 43 | ||
44 | static struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pubkey; | 44 | static struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded pubkey; |
45 | 45 | ||
46 | static struct GNUNET_CRYPTO_ShortHashCode zone; | 46 | static struct GNUNET_CRYPTO_ShortHashCode zone; |
47 | 47 | ||
@@ -60,7 +60,7 @@ cleanup () | |||
60 | } | 60 | } |
61 | if (NULL != privkey) | 61 | if (NULL != privkey) |
62 | { | 62 | { |
63 | GNUNET_CRYPTO_rsa_key_free (privkey); | 63 | GNUNET_CRYPTO_ecc_key_free (privkey); |
64 | privkey = NULL; | 64 | privkey = NULL; |
65 | } | 65 | } |
66 | GNUNET_SCHEDULER_shutdown (); | 66 | GNUNET_SCHEDULER_shutdown (); |
@@ -96,12 +96,12 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
96 | 96 | ||
97 | static void | 97 | static void |
98 | name_lookup_proc (void *cls, | 98 | name_lookup_proc (void *cls, |
99 | const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded *zone_key, | 99 | const struct GNUNET_CRYPTO_EccPublicKeyBinaryEncoded *zone_key, |
100 | struct GNUNET_TIME_Absolute expire, | 100 | struct GNUNET_TIME_Absolute expire, |
101 | const char *name, | 101 | const char *name, |
102 | unsigned int rd_count, | 102 | unsigned int rd_count, |
103 | const struct GNUNET_NAMESTORE_RecordData *rd, | 103 | const struct GNUNET_NAMESTORE_RecordData *rd, |
104 | const struct GNUNET_CRYPTO_RsaSignature *signature) | 104 | const struct GNUNET_CRYPTO_EccSignature *signature) |
105 | { | 105 | { |
106 | nsqe = NULL; | 106 | nsqe = NULL; |
107 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 107 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -135,7 +135,7 @@ run (void *cls, | |||
135 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 135 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
136 | struct GNUNET_TESTING_Peer *peer) | 136 | struct GNUNET_TESTING_Peer *peer) |
137 | { | 137 | { |
138 | struct GNUNET_CRYPTO_RsaSignature signature; | 138 | struct GNUNET_CRYPTO_EccSignature signature; |
139 | struct GNUNET_NAMESTORE_RecordData rd; | 139 | struct GNUNET_NAMESTORE_RecordData rd; |
140 | char *hostkey_file; | 140 | char *hostkey_file; |
141 | const char * name = "dummy.dummy.gnunet"; | 141 | const char * name = "dummy.dummy.gnunet"; |
@@ -147,10 +147,10 @@ run (void *cls, | |||
147 | DIR_SEPARATOR_STR, | 147 | DIR_SEPARATOR_STR, |
148 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 148 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
150 | privkey = GNUNET_CRYPTO_rsa_key_create_from_file (hostkey_file); | 150 | privkey = GNUNET_CRYPTO_ecc_key_create_from_file (hostkey_file); |
151 | GNUNET_free (hostkey_file); | 151 | GNUNET_free (hostkey_file); |
152 | GNUNET_assert (privkey != NULL); | 152 | GNUNET_assert (privkey != NULL); |
153 | GNUNET_CRYPTO_rsa_key_get_public (privkey, &pubkey); | 153 | GNUNET_CRYPTO_ecc_key_get_public (privkey, &pubkey); |
154 | GNUNET_CRYPTO_short_hash (&pubkey, sizeof (pubkey), &zone); | 154 | GNUNET_CRYPTO_short_hash (&pubkey, sizeof (pubkey), &zone); |
155 | memset (&signature, '\0', sizeof (signature)); | 155 | memset (&signature, '\0', sizeof (signature)); |
156 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value; | 156 | rd.expiration_time = GNUNET_TIME_absolute_get().abs_value; |