aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/test_conversation_api_reject.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-10-18 13:37:38 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2023-10-18 13:37:38 +0200
commit9ef4abad615bea12d13be542b8ae5fbeb2dfee32 (patch)
tree8875a687e004d331c9ea6a1d511a328c72b88113 /src/conversation/test_conversation_api_reject.c
parente95236b3ed78cd597c15f34b89385295702b627f (diff)
downloadgnunet-9ef4abad615bea12d13be542b8ae5fbeb2dfee32.tar.gz
gnunet-9ef4abad615bea12d13be542b8ae5fbeb2dfee32.zip
NEWS: Refactoring components under src/ into lib/, plugin/, cli/ and service/
This also includes a necessary API refactoring of crypto from IDENTITY to UTIL.
Diffstat (limited to 'src/conversation/test_conversation_api_reject.c')
-rw-r--r--src/conversation/test_conversation_api_reject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conversation/test_conversation_api_reject.c b/src/conversation/test_conversation_api_reject.c
index a7aab069f..37192f5b8 100644
--- a/src/conversation/test_conversation_api_reject.c
+++ b/src/conversation/test_conversation_api_reject.c
@@ -179,7 +179,7 @@ static void
179phone_event_handler (void *cls, 179phone_event_handler (void *cls,
180 enum GNUNET_CONVERSATION_PhoneEventCode code, 180 enum GNUNET_CONVERSATION_PhoneEventCode code,
181 struct GNUNET_CONVERSATION_Caller *caller, 181 struct GNUNET_CONVERSATION_Caller *caller,
182 const struct GNUNET_IDENTITY_PublicKey *caller_id) 182 const struct GNUNET_CRYPTO_PublicKey *caller_id)
183{ 183{
184 static enum GNUNET_CONVERSATION_PhoneEventCode expect = 184 static enum GNUNET_CONVERSATION_PhoneEventCode expect =
185 GNUNET_CONVERSATION_EC_PHONE_RING; 185 GNUNET_CONVERSATION_EC_PHONE_RING;
@@ -238,7 +238,7 @@ call_event_handler (void *cls, enum GNUNET_CONVERSATION_CallEventCode code)
238 238
239static void 239static void
240caller_ego_create_cont (void *cls, 240caller_ego_create_cont (void *cls,
241 const struct GNUNET_IDENTITY_PrivateKey *pk, 241 const struct GNUNET_CRYPTO_PrivateKey *pk,
242 enum GNUNET_ErrorCode ec) 242 enum GNUNET_ErrorCode ec)
243{ 243{
244 (void) cls; 244 (void) cls;
@@ -255,7 +255,7 @@ namestore_put_cont (void *cls, enum GNUNET_ErrorCode ec)
255 GNUNET_assert (GNUNET_EC_NONE == ec); 255 GNUNET_assert (GNUNET_EC_NONE == ec);
256 GNUNET_assert (NULL == op); 256 GNUNET_assert (NULL == op);
257 op = GNUNET_IDENTITY_create (id, "caller-ego", NULL, 257 op = GNUNET_IDENTITY_create (id, "caller-ego", NULL,
258 GNUNET_IDENTITY_TYPE_ECDSA, 258 GNUNET_PUBLIC_KEY_TYPE_ECDSA,
259 &caller_ego_create_cont, 259 &caller_ego_create_cont,
260 NULL); 260 NULL);
261} 261}
@@ -268,7 +268,7 @@ identity_cb (void *cls,
268 const char *name) 268 const char *name)
269{ 269{
270 struct GNUNET_GNSRECORD_Data rd; 270 struct GNUNET_GNSRECORD_Data rd;
271 struct GNUNET_IDENTITY_PublicKey pub; 271 struct GNUNET_CRYPTO_PublicKey pub;
272 272
273 (void) cls; 273 (void) cls;
274 (void) ctx; 274 (void) ctx;
@@ -319,7 +319,7 @@ identity_cb (void *cls,
319 319
320static void 320static void
321phone_ego_create_cont (void *cls, 321phone_ego_create_cont (void *cls,
322 const struct GNUNET_IDENTITY_PrivateKey *pk, 322 const struct GNUNET_CRYPTO_PrivateKey *pk,
323 enum GNUNET_ErrorCode ec) 323 enum GNUNET_ErrorCode ec)
324{ 324{
325 (void) cls; 325 (void) cls;
@@ -339,7 +339,7 @@ run (void *cls,
339 GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_test, NULL); 339 GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_test, NULL);
340 id = GNUNET_IDENTITY_connect (cfg, &identity_cb, NULL); 340 id = GNUNET_IDENTITY_connect (cfg, &identity_cb, NULL);
341 op = GNUNET_IDENTITY_create (id, "phone-ego", NULL, 341 op = GNUNET_IDENTITY_create (id, "phone-ego", NULL,
342 GNUNET_IDENTITY_TYPE_ECDSA, 342 GNUNET_PUBLIC_KEY_TYPE_ECDSA,
343 &phone_ego_create_cont, 343 &phone_ego_create_cont,
344 NULL); 344 NULL);
345 ns = GNUNET_NAMESTORE_connect (cfg); 345 ns = GNUNET_NAMESTORE_connect (cfg);