diff options
Diffstat (limited to 'src/namestore/test_namestore_api_blocks.c')
-rw-r--r-- | src/namestore/test_namestore_api_blocks.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_blocks.c b/src/namestore/test_namestore_api_blocks.c index e480def31..001e7e182 100644 --- a/src/namestore/test_namestore_api_blocks.c +++ b/src/namestore/test_namestore_api_blocks.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #define TEST_REMOVE_RECORD_DATA 'b' | 40 | #define TEST_REMOVE_RECORD_DATA 'b' |
41 | 41 | ||
42 | 42 | ||
43 | static struct GNUNET_CRYPTO_EccPrivateKey * privkey; | 43 | static struct GNUNET_CRYPTO_EcdsaPrivateKey * privkey; |
44 | 44 | ||
45 | static struct GNUNET_NAMESTORE_RecordData *s_rd; | 45 | static struct GNUNET_NAMESTORE_RecordData *s_rd; |
46 | 46 | ||
@@ -99,19 +99,19 @@ 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_NAMESTORE_Block *block; |
102 | struct GNUNET_CRYPTO_EccPublicSignKey pubkey; | 102 | struct GNUNET_CRYPTO_EcdsaPublicKey pubkey; |
103 | 103 | ||
104 | /* load privat key */ | 104 | /* load privat key */ |
105 | char *hostkey_file; | 105 | char *hostkey_file; |
106 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, | 106 | GNUNET_asprintf(&hostkey_file,"zonefiles%s%s",DIR_SEPARATOR_STR, |
107 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 107 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
108 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 108 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); |
109 | privkey = GNUNET_CRYPTO_ecc_key_create_from_file(hostkey_file); | 109 | privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file(hostkey_file); |
110 | GNUNET_free (hostkey_file); | 110 | GNUNET_free (hostkey_file); |
111 | GNUNET_assert (privkey != NULL); | 111 | GNUNET_assert (privkey != NULL); |
112 | struct GNUNET_TIME_Absolute expire = GNUNET_TIME_absolute_get(); | 112 | struct GNUNET_TIME_Absolute expire = GNUNET_TIME_absolute_get(); |
113 | /* get public key */ | 113 | /* get public key */ |
114 | GNUNET_CRYPTO_ecc_key_get_public_for_signature(privkey, &pubkey); | 114 | GNUNET_CRYPTO_ecdsa_key_get_public(privkey, &pubkey); |
115 | 115 | ||
116 | /* create record */ | 116 | /* create record */ |
117 | s_name = "DUMMY.dummy.gnunet"; | 117 | s_name = "DUMMY.dummy.gnunet"; |