aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/test_fs_uri.c')
-rw-r--r--src/fs/test_fs_uri.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/test_fs_uri.c b/src/fs/test_fs_uri.c
index 2a324af9a..30eafab9a 100644
--- a/src/fs/test_fs_uri.c
+++ b/src/fs/test_fs_uri.c
@@ -81,7 +81,7 @@ testLocation ()
81 struct GNUNET_FS_Uri *uri2; 81 struct GNUNET_FS_Uri *uri2;
82 struct GNUNET_FS_Uri *baseURI; 82 struct GNUNET_FS_Uri *baseURI;
83 char *emsg; 83 char *emsg;
84 struct GNUNET_CRYPTO_EddsaPrivateKey *pk; 84 struct GNUNET_CRYPTO_EddsaPrivateKey pk;
85 85
86 baseURI = 86 baseURI =
87 GNUNET_FS_uri_parse 87 GNUNET_FS_uri_parse
@@ -90,11 +90,10 @@ testLocation ()
90 &emsg); 90 &emsg);
91 GNUNET_assert (baseURI != NULL); 91 GNUNET_assert (baseURI != NULL);
92 GNUNET_assert (emsg == NULL); 92 GNUNET_assert (emsg == NULL);
93 pk = GNUNET_CRYPTO_eddsa_key_create (); 93 GNUNET_CRYPTO_eddsa_key_create (&pk);
94 uri = GNUNET_FS_uri_loc_create (baseURI, 94 uri = GNUNET_FS_uri_loc_create (baseURI,
95 pk, 95 &pk,
96 GNUNET_TIME_absolute_get ()); 96 GNUNET_TIME_absolute_get ());
97 GNUNET_free (pk);
98 if (NULL == uri) 97 if (NULL == uri)
99 { 98 {
100 GNUNET_break (0); 99 GNUNET_break (0);
@@ -154,7 +153,7 @@ testNamespace (int i)
154 char *uri; 153 char *uri;
155 struct GNUNET_FS_Uri *ret; 154 struct GNUNET_FS_Uri *ret;
156 char *emsg; 155 char *emsg;
157 struct GNUNET_CRYPTO_EcdsaPrivateKey *ph; 156 struct GNUNET_CRYPTO_EcdsaPrivateKey ph;
158 struct GNUNET_CRYPTO_EcdsaPublicKey id; 157 struct GNUNET_CRYPTO_EcdsaPublicKey id;
159 char buf[1024]; 158 char buf[1024];
160 char ubuf[1024]; 159 char ubuf[1024];
@@ -187,8 +186,9 @@ testNamespace (int i)
187 GNUNET_assert (0); 186 GNUNET_assert (0);
188 } 187 }
189 GNUNET_free (emsg); 188 GNUNET_free (emsg);
190 ph = GNUNET_CRYPTO_ecdsa_key_create (); 189 GNUNET_CRYPTO_ecdsa_key_create (&ph);
191 GNUNET_CRYPTO_ecdsa_key_get_public (ph, &id); 190 GNUNET_CRYPTO_ecdsa_key_get_public (&ph,
191 &id);
192 sret = GNUNET_STRINGS_data_to_string (&id, sizeof(id), 192 sret = GNUNET_STRINGS_data_to_string (&id, sizeof(id),
193 ubuf, sizeof(ubuf) - 1); 193 ubuf, sizeof(ubuf) - 1);
194 GNUNET_assert (NULL != sret); 194 GNUNET_assert (NULL != sret);