diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2023-11-15 01:59:14 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2023-11-15 01:59:14 +0100 |
commit | 5122725420c5cbf90f4f22e55b56362d59c66aaa (patch) | |
tree | 7235cb0ab5451c27819bb029c51453df28024e28 | |
parent | 3ed9d9a4dba82db276aa6a7f9bd553ad19c296d3 (diff) | |
download | libgnunetchat-5122725420c5cbf90f4f22e55b56362d59c66aaa.tar.gz libgnunetchat-5122725420c5cbf90f4f22e55b56362d59c66aaa.zip |
Fix build issues with upstream gnunet
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/gnunet_chat_account.c | 6 | ||||
-rw-r--r-- | src/gnunet_chat_contact.c | 6 | ||||
-rw-r--r-- | src/gnunet_chat_context.c | 4 | ||||
-rw-r--r-- | src/gnunet_chat_handle.c | 12 | ||||
-rw-r--r-- | src/gnunet_chat_handle.h | 2 | ||||
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 15 | ||||
-rw-r--r-- | src/gnunet_chat_lib.c | 6 | ||||
-rw-r--r-- | src/gnunet_chat_lib_intern.c | 6 | ||||
-rw-r--r-- | src/gnunet_chat_lobby.c | 4 | ||||
-rw-r--r-- | src/gnunet_chat_lobby_intern.c | 8 | ||||
-rw-r--r-- | src/gnunet_chat_uri.c | 4 | ||||
-rw-r--r-- | src/gnunet_chat_uri.h | 7 |
12 files changed, 40 insertions, 40 deletions
diff --git a/src/gnunet_chat_account.c b/src/gnunet_chat_account.c index 2e93c9c..7076aec 100644 --- a/src/gnunet_chat_account.c +++ b/src/gnunet_chat_account.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2022 GNUnet e.V. | 3 | Copyright (C) 2022--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -53,10 +53,10 @@ account_update_directory (struct GNUNET_CHAT_Account *account, | |||
53 | if (account->directory) | 53 | if (account->directory) |
54 | GNUNET_free(account->directory); | 54 | GNUNET_free(account->directory); |
55 | 55 | ||
56 | struct GNUNET_IDENTITY_PublicKey key; | 56 | struct GNUNET_CRYPTO_PublicKey key; |
57 | GNUNET_IDENTITY_ego_get_public_key(account->ego, &key); | 57 | GNUNET_IDENTITY_ego_get_public_key(account->ego, &key); |
58 | 58 | ||
59 | char *key_string = GNUNET_IDENTITY_public_key_to_string(&key); | 59 | char *key_string = GNUNET_CRYPTO_public_key_to_string(&key); |
60 | 60 | ||
61 | if (!key_string) | 61 | if (!key_string) |
62 | { | 62 | { |
diff --git a/src/gnunet_chat_contact.c b/src/gnunet_chat_contact.c index 5b6c1a5..1a64689 100644 --- a/src/gnunet_chat_contact.c +++ b/src/gnunet_chat_contact.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021--2022 GNUnet e.V. | 3 | Copyright (C) 2021--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -63,11 +63,11 @@ contact_update_key (struct GNUNET_CHAT_Contact *contact) | |||
63 | if (!(contact->member)) | 63 | if (!(contact->member)) |
64 | return; | 64 | return; |
65 | 65 | ||
66 | const struct GNUNET_IDENTITY_PublicKey *pubkey; | 66 | const struct GNUNET_CRYPTO_PublicKey *pubkey; |
67 | pubkey = GNUNET_MESSENGER_contact_get_key(contact->member); | 67 | pubkey = GNUNET_MESSENGER_contact_get_key(contact->member); |
68 | 68 | ||
69 | if (pubkey) | 69 | if (pubkey) |
70 | contact->public_key = GNUNET_IDENTITY_public_key_to_string(pubkey); | 70 | contact->public_key = GNUNET_CRYPTO_public_key_to_string(pubkey); |
71 | } | 71 | } |
72 | 72 | ||
73 | struct GNUNET_CHAT_Context* | 73 | struct GNUNET_CHAT_Context* |
diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c index 961de47..a24dd36 100644 --- a/src/gnunet_chat_context.c +++ b/src/gnunet_chat_context.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021--2022 GNUnet e.V. | 3 | Copyright (C) 2021--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -273,7 +273,7 @@ context_write_records (struct GNUNET_CHAT_Context *context) | |||
273 | (context->handle) && | 273 | (context->handle) && |
274 | (context->room)); | 274 | (context->room)); |
275 | 275 | ||
276 | const struct GNUNET_IDENTITY_PrivateKey *zone = handle_get_key( | 276 | const struct GNUNET_CRYPTO_PrivateKey *zone = handle_get_key( |
277 | context->handle | 277 | context->handle |
278 | ); | 278 | ); |
279 | 279 | ||
diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c index f15259e..8eb42ba 100644 --- a/src/gnunet_chat_handle.c +++ b/src/gnunet_chat_handle.c | |||
@@ -140,11 +140,11 @@ handle_update_key (struct GNUNET_CHAT_Handle *handle) | |||
140 | if (!(handle->messenger)) | 140 | if (!(handle->messenger)) |
141 | return; | 141 | return; |
142 | 142 | ||
143 | const struct GNUNET_IDENTITY_PublicKey *pubkey; | 143 | const struct GNUNET_CRYPTO_PublicKey *pubkey; |
144 | pubkey = GNUNET_MESSENGER_get_key(handle->messenger); | 144 | pubkey = GNUNET_MESSENGER_get_key(handle->messenger); |
145 | 145 | ||
146 | if (pubkey) | 146 | if (pubkey) |
147 | handle->public_key = GNUNET_IDENTITY_public_key_to_string(pubkey); | 147 | handle->public_key = GNUNET_CRYPTO_public_key_to_string(pubkey); |
148 | } | 148 | } |
149 | 149 | ||
150 | void | 150 | void |
@@ -244,7 +244,7 @@ handle_update_identity(struct GNUNET_CHAT_Handle *handle) | |||
244 | NULL | 244 | NULL |
245 | ); | 245 | ); |
246 | 246 | ||
247 | const struct GNUNET_IDENTITY_PrivateKey *zone = handle_get_key(handle); | 247 | const struct GNUNET_CRYPTO_PrivateKey *zone = handle_get_key(handle); |
248 | 248 | ||
249 | if ((!zone) || (handle->monitor)) | 249 | if ((!zone) || (handle->monitor)) |
250 | return; | 250 | return; |
@@ -286,7 +286,7 @@ handle_connect (struct GNUNET_CHAT_Handle *handle, | |||
286 | 286 | ||
287 | const char *name = account->name; | 287 | const char *name = account->name; |
288 | 288 | ||
289 | const struct GNUNET_IDENTITY_PrivateKey *key = NULL; | 289 | const struct GNUNET_CRYPTO_PrivateKey *key = NULL; |
290 | if (account->ego) | 290 | if (account->ego) |
291 | key = GNUNET_IDENTITY_ego_get_private_key(account->ego); | 291 | key = GNUNET_IDENTITY_ego_get_private_key(account->ego); |
292 | 292 | ||
@@ -515,7 +515,7 @@ handle_create_account (struct GNUNET_CHAT_Handle *handle, | |||
515 | handle->identity, | 515 | handle->identity, |
516 | name, | 516 | name, |
517 | NULL, | 517 | NULL, |
518 | GNUNET_IDENTITY_TYPE_ECDSA, | 518 | GNUNET_PUBLIC_KEY_TYPE_ECDSA, |
519 | cb_account_creation, | 519 | cb_account_creation, |
520 | accounts | 520 | accounts |
521 | ); | 521 | ); |
@@ -627,7 +627,7 @@ handle_update (struct GNUNET_CHAT_Handle *handle) | |||
627 | return result; | 627 | return result; |
628 | } | 628 | } |
629 | 629 | ||
630 | const struct GNUNET_IDENTITY_PrivateKey* | 630 | const struct GNUNET_CRYPTO_PrivateKey* |
631 | handle_get_key (const struct GNUNET_CHAT_Handle *handle) | 631 | handle_get_key (const struct GNUNET_CHAT_Handle *handle) |
632 | { | 632 | { |
633 | GNUNET_assert(handle); | 633 | GNUNET_assert(handle); |
diff --git a/src/gnunet_chat_handle.h b/src/gnunet_chat_handle.h index da50e14..4bc3f5a 100644 --- a/src/gnunet_chat_handle.h +++ b/src/gnunet_chat_handle.h | |||
@@ -241,7 +241,7 @@ handle_update (struct GNUNET_CHAT_Handle *handle); | |||
241 | * @param[in] handle Chat handle | 241 | * @param[in] handle Chat handle |
242 | * @return EGOs private key or NULL | 242 | * @return EGOs private key or NULL |
243 | */ | 243 | */ |
244 | const struct GNUNET_IDENTITY_PrivateKey* | 244 | const struct GNUNET_CRYPTO_PrivateKey* |
245 | handle_get_key (const struct GNUNET_CHAT_Handle *handle); | 245 | handle_get_key (const struct GNUNET_CHAT_Handle *handle); |
246 | 246 | ||
247 | /** | 247 | /** |
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index 0b719a6..06dd406 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -30,7 +30,8 @@ | |||
30 | #include "gnunet_chat_invitation.h" | 30 | #include "gnunet_chat_invitation.h" |
31 | #include "gnunet_chat_message.h" | 31 | #include "gnunet_chat_message.h" |
32 | #include "gnunet_chat_util.h" | 32 | #include "gnunet_chat_util.h" |
33 | #include <gnunet/gnunet_common.h> | 33 | |
34 | #include <gnunet/gnunet_util_lib.h> | ||
34 | #include <stdio.h> | 35 | #include <stdio.h> |
35 | 36 | ||
36 | #define GNUNET_UNUSED __attribute__ ((unused)) | 37 | #define GNUNET_UNUSED __attribute__ ((unused)) |
@@ -333,7 +334,7 @@ send_refresh: | |||
333 | 334 | ||
334 | void | 335 | void |
335 | cb_account_creation (void *cls, | 336 | cb_account_creation (void *cls, |
336 | const struct GNUNET_IDENTITY_PrivateKey *key, | 337 | const struct GNUNET_CRYPTO_PrivateKey *key, |
337 | enum GNUNET_ErrorCode ec) | 338 | enum GNUNET_ErrorCode ec) |
338 | { | 339 | { |
339 | GNUNET_assert(cls); | 340 | GNUNET_assert(cls); |
@@ -444,7 +445,7 @@ cb_account_rename (void *cls, | |||
444 | 445 | ||
445 | static void | 446 | static void |
446 | cb_account_update_completion (void *cls, | 447 | cb_account_update_completion (void *cls, |
447 | const struct GNUNET_IDENTITY_PrivateKey *key, | 448 | const struct GNUNET_CRYPTO_PrivateKey *key, |
448 | enum GNUNET_ErrorCode ec) | 449 | enum GNUNET_ErrorCode ec) |
449 | { | 450 | { |
450 | GNUNET_assert(cls); | 451 | GNUNET_assert(cls); |
@@ -483,7 +484,7 @@ cb_account_update (void *cls, | |||
483 | handle->identity, | 484 | handle->identity, |
484 | accounts->identifier, | 485 | accounts->identifier, |
485 | NULL, | 486 | NULL, |
486 | GNUNET_IDENTITY_TYPE_ECDSA, | 487 | GNUNET_PUBLIC_KEY_TYPE_ECDSA, |
487 | cb_account_update_completion, | 488 | cb_account_update_completion, |
488 | accounts | 489 | accounts |
489 | ); | 490 | ); |
@@ -541,7 +542,7 @@ intern_provide_contact_for_member(struct GNUNET_CHAT_Handle *handle, | |||
541 | 542 | ||
542 | struct GNUNET_CHAT_CheckHandleRoomMembers | 543 | struct GNUNET_CHAT_CheckHandleRoomMembers |
543 | { | 544 | { |
544 | const struct GNUNET_IDENTITY_PublicKey *ignore_key; | 545 | const struct GNUNET_CRYPTO_PublicKey *ignore_key; |
545 | const struct GNUNET_MESSENGER_Contact *contact; | 546 | const struct GNUNET_MESSENGER_Contact *contact; |
546 | }; | 547 | }; |
547 | 548 | ||
@@ -554,7 +555,7 @@ check_handle_room_members (void* cls, | |||
554 | 555 | ||
555 | GNUNET_assert((check) && (member)); | 556 | GNUNET_assert((check) && (member)); |
556 | 557 | ||
557 | const struct GNUNET_IDENTITY_PublicKey *member_key = ( | 558 | const struct GNUNET_CRYPTO_PublicKey *member_key = ( |
558 | GNUNET_MESSENGER_contact_get_key(member) | 559 | GNUNET_MESSENGER_contact_get_key(member) |
559 | ); | 560 | ); |
560 | 561 | ||
@@ -588,7 +589,7 @@ scan_handle_room_members (void* cls, | |||
588 | void | 589 | void |
589 | on_monitor_namestore_record(void *cls, | 590 | on_monitor_namestore_record(void *cls, |
590 | GNUNET_UNUSED const | 591 | GNUNET_UNUSED const |
591 | struct GNUNET_IDENTITY_PrivateKey *zone, | 592 | struct GNUNET_CRYPTO_PrivateKey *zone, |
592 | const char *label, | 593 | const char *label, |
593 | unsigned int count, | 594 | unsigned int count, |
594 | const struct GNUNET_GNSRECORD_Data *data) | 595 | const struct GNUNET_GNSRECORD_Data *data) |
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 0dc660d..439a5d3 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -270,7 +270,7 @@ GNUNET_CHAT_uri_parse (const char *uri, | |||
270 | return NULL; | 270 | return NULL; |
271 | } | 271 | } |
272 | 272 | ||
273 | struct GNUNET_IDENTITY_PublicKey zone; | 273 | struct GNUNET_CRYPTO_PublicKey zone; |
274 | 274 | ||
275 | const char *data = uri + prefix_len; | 275 | const char *data = uri + prefix_len; |
276 | char *end = strchr(data, '.'); | 276 | char *end = strchr(data, '.'); |
@@ -285,7 +285,7 @@ GNUNET_CHAT_uri_parse (const char *uri, | |||
285 | 285 | ||
286 | char *zone_data = GNUNET_strndup(data, (size_t) (end - data)); | 286 | char *zone_data = GNUNET_strndup(data, (size_t) (end - data)); |
287 | 287 | ||
288 | if (GNUNET_OK != GNUNET_IDENTITY_public_key_from_string(zone_data, &zone)) | 288 | if (GNUNET_OK != GNUNET_CRYPTO_public_key_from_string(zone_data, &zone)) |
289 | { | 289 | { |
290 | GNUNET_free(zone_data); | 290 | GNUNET_free(zone_data); |
291 | 291 | ||
@@ -309,7 +309,7 @@ GNUNET_CHAT_uri_to_string (const struct GNUNET_CHAT_Uri *uri) | |||
309 | if (!uri) | 309 | if (!uri) |
310 | return NULL; | 310 | return NULL; |
311 | 311 | ||
312 | char *key_string = GNUNET_IDENTITY_public_key_to_string(&(uri->zone)); | 312 | char *key_string = GNUNET_CRYPTO_public_key_to_string(&(uri->zone)); |
313 | 313 | ||
314 | char *string; | 314 | char *string; |
315 | GNUNET_asprintf ( | 315 | GNUNET_asprintf ( |
diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c index dbb599a..5b35327 100644 --- a/src/gnunet_chat_lib_intern.c +++ b/src/gnunet_chat_lib_intern.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2021--2022 GNUnet e.V. | 3 | Copyright (C) 2021--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -147,7 +147,7 @@ it_handle_iterate_groups (void *cls, | |||
147 | 147 | ||
148 | struct GNUNET_CHAT_RoomFindContact | 148 | struct GNUNET_CHAT_RoomFindContact |
149 | { | 149 | { |
150 | const struct GNUNET_IDENTITY_PublicKey *ignore_key; | 150 | const struct GNUNET_CRYPTO_PublicKey *ignore_key; |
151 | const struct GNUNET_MESSENGER_Contact *contact; | 151 | const struct GNUNET_MESSENGER_Contact *contact; |
152 | }; | 152 | }; |
153 | 153 | ||
@@ -158,7 +158,7 @@ it_room_find_contact (void *cls, | |||
158 | { | 158 | { |
159 | GNUNET_assert((cls) && (member)); | 159 | GNUNET_assert((cls) && (member)); |
160 | 160 | ||
161 | const struct GNUNET_IDENTITY_PublicKey *key = GNUNET_MESSENGER_contact_get_key( | 161 | const struct GNUNET_CRYPTO_PublicKey *key = GNUNET_MESSENGER_contact_get_key( |
162 | member | 162 | member |
163 | ); | 163 | ); |
164 | 164 | ||
diff --git a/src/gnunet_chat_lobby.c b/src/gnunet_chat_lobby.c index 4887ad8..65274c8 100644 --- a/src/gnunet_chat_lobby.c +++ b/src/gnunet_chat_lobby.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2022 GNUnet e.V. | 3 | Copyright (C) 2022--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -138,7 +138,7 @@ open_zone: | |||
138 | lobby->handle->identity, | 138 | lobby->handle->identity, |
139 | name, | 139 | name, |
140 | NULL, | 140 | NULL, |
141 | GNUNET_IDENTITY_TYPE_EDDSA, | 141 | GNUNET_PUBLIC_KEY_TYPE_EDDSA, |
142 | cont_lobby_identity_create, | 142 | cont_lobby_identity_create, |
143 | lobby | 143 | lobby |
144 | ); | 144 | ); |
diff --git a/src/gnunet_chat_lobby_intern.c b/src/gnunet_chat_lobby_intern.c index 1d031b0..28c1b7a 100644 --- a/src/gnunet_chat_lobby_intern.c +++ b/src/gnunet_chat_lobby_intern.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2022 GNUnet e.V. | 3 | Copyright (C) 2022--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -70,7 +70,7 @@ call_cb: | |||
70 | 70 | ||
71 | void | 71 | void |
72 | cont_lobby_identity_create (void *cls, | 72 | cont_lobby_identity_create (void *cls, |
73 | const struct GNUNET_IDENTITY_PrivateKey *zone, | 73 | const struct GNUNET_CRYPTO_PrivateKey *zone, |
74 | enum GNUNET_ErrorCode ec) | 74 | enum GNUNET_ErrorCode ec) |
75 | { | 75 | { |
76 | struct GNUNET_CHAT_Lobby *lobby = cls; | 76 | struct GNUNET_CHAT_Lobby *lobby = cls; |
@@ -109,8 +109,8 @@ cont_lobby_identity_create (void *cls, | |||
109 | if (lobby->uri) | 109 | if (lobby->uri) |
110 | uri_destroy(lobby->uri); | 110 | uri_destroy(lobby->uri); |
111 | 111 | ||
112 | struct GNUNET_IDENTITY_PublicKey public_zone; | 112 | struct GNUNET_CRYPTO_PublicKey public_zone; |
113 | GNUNET_IDENTITY_key_get_public(zone, &public_zone); | 113 | GNUNET_CRYPTO_key_get_public(zone, &public_zone); |
114 | 114 | ||
115 | char *label; | 115 | char *label; |
116 | util_get_context_label(lobby->context->type, key, &label); | 116 | util_get_context_label(lobby->context->type, key, &label); |
diff --git a/src/gnunet_chat_uri.c b/src/gnunet_chat_uri.c index cc29756..f92b698 100644 --- a/src/gnunet_chat_uri.c +++ b/src/gnunet_chat_uri.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2022 GNUnet e.V. | 3 | Copyright (C) 2022--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,7 +25,7 @@ | |||
25 | #include "gnunet_chat_uri.h" | 25 | #include "gnunet_chat_uri.h" |
26 | 26 | ||
27 | struct GNUNET_CHAT_Uri* | 27 | struct GNUNET_CHAT_Uri* |
28 | uri_create (const struct GNUNET_IDENTITY_PublicKey *zone, | 28 | uri_create (const struct GNUNET_CRYPTO_PublicKey *zone, |
29 | const char *label) | 29 | const char *label) |
30 | { | 30 | { |
31 | GNUNET_assert((zone) && (label)); | 31 | GNUNET_assert((zone) && (label)); |
diff --git a/src/gnunet_chat_uri.h b/src/gnunet_chat_uri.h index ee533b5..b60c13f 100644 --- a/src/gnunet_chat_uri.h +++ b/src/gnunet_chat_uri.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2022 GNUnet e.V. | 3 | Copyright (C) 2022--2023 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -25,14 +25,13 @@ | |||
25 | #ifndef GNUNET_CHAT_URI_H_ | 25 | #ifndef GNUNET_CHAT_URI_H_ |
26 | #define GNUNET_CHAT_URI_H_ | 26 | #define GNUNET_CHAT_URI_H_ |
27 | 27 | ||
28 | #include <gnunet/gnunet_identity_service.h> | ||
29 | #include <gnunet/gnunet_util_lib.h> | 28 | #include <gnunet/gnunet_util_lib.h> |
30 | 29 | ||
31 | #include "gnunet_chat_util.h" | 30 | #include "gnunet_chat_util.h" |
32 | 31 | ||
33 | struct GNUNET_CHAT_Uri | 32 | struct GNUNET_CHAT_Uri |
34 | { | 33 | { |
35 | struct GNUNET_IDENTITY_PublicKey zone; | 34 | struct GNUNET_CRYPTO_PublicKey zone; |
36 | char *label; | 35 | char *label; |
37 | }; | 36 | }; |
38 | 37 | ||
@@ -45,7 +44,7 @@ struct GNUNET_CHAT_Uri | |||
45 | * @return New chat uri | 44 | * @return New chat uri |
46 | */ | 45 | */ |
47 | struct GNUNET_CHAT_Uri* | 46 | struct GNUNET_CHAT_Uri* |
48 | uri_create (const struct GNUNET_IDENTITY_PublicKey *zone, | 47 | uri_create (const struct GNUNET_CRYPTO_PublicKey *zone, |
49 | const char *label); | 48 | const char *label); |
50 | 49 | ||
51 | /** | 50 | /** |