libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit 75181fd666212a262d253e066c31f1cb121a1dae
parent b8957b795309b3a395efeb60ef679983f58120f8
Author: Jacki <jacki@thejackimonster.de>
Date:   Mon, 27 Oct 2025 21:59:56 +0100

Refactoring to be compatible with naming changes of key structures in GNUnet

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
Msrc/gnunet_chat_account.c | 4++--
Msrc/gnunet_chat_account.h | 4++--
Msrc/gnunet_chat_contact.c | 8++++----
Msrc/gnunet_chat_contact.h | 4++--
Msrc/gnunet_chat_context.c | 2+-
Msrc/gnunet_chat_handle.c | 10+++++-----
Msrc/gnunet_chat_handle.h | 2+-
Msrc/gnunet_chat_handle_intern.c | 10+++++-----
Msrc/gnunet_chat_lib.c | 16++++++++--------
Msrc/gnunet_chat_lib_intern.c | 40++++++++++++++++++++--------------------
Msrc/gnunet_chat_lobby_intern.c | 8++++----
Msrc/gnunet_chat_ticket.c | 14+++++++-------
Msrc/gnunet_chat_ticket_intern.c | 4++--
Msrc/gnunet_chat_uri.c | 10+++++-----
Msrc/gnunet_chat_uri.h | 6+++---
Mtools/gnunet_messenger_ping.c | 2+-
Mtools/gnunet_messenger_uml.c | 2+-
17 files changed, 73 insertions(+), 73 deletions(-)

diff --git a/src/gnunet_chat_account.c b/src/gnunet_chat_account.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2022--2024 GNUnet e.V. + Copyright (C) 2022--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -63,7 +63,7 @@ account_create_from_ego (struct GNUNET_IDENTITY_Ego *ego, return account; } -const struct GNUNET_CRYPTO_PrivateKey* +const struct GNUNET_CRYPTO_BlindablePrivateKey* account_get_key (const struct GNUNET_CHAT_Account *account) { GNUNET_assert(account); diff --git a/src/gnunet_chat_account.h b/src/gnunet_chat_account.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2022--2024 GNUnet e.V. + Copyright (C) 2022--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -69,7 +69,7 @@ account_create_from_ego (struct GNUNET_IDENTITY_Ego *ego, * @param[in] account Chat account * @return EGOs private key or NULL */ -const struct GNUNET_CRYPTO_PrivateKey* +const struct GNUNET_CRYPTO_BlindablePrivateKey* account_get_key (const struct GNUNET_CHAT_Account *account); /** diff --git a/src/gnunet_chat_contact.c b/src/gnunet_chat_contact.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2021--2024 GNUnet e.V. + Copyright (C) 2021--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -161,16 +161,16 @@ contact_update_key (struct GNUNET_CHAT_Contact *contact) if (contact->public_key) GNUNET_free(contact->public_key); - const struct GNUNET_CRYPTO_PublicKey *pubkey; + const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey; pubkey = contact_get_key(contact); if (pubkey) - contact->public_key = GNUNET_CRYPTO_public_key_to_string(pubkey); + contact->public_key = GNUNET_CRYPTO_blindable_public_key_to_string(pubkey); else contact->public_key = NULL; } -const struct GNUNET_CRYPTO_PublicKey* +const struct GNUNET_CRYPTO_BlindablePublicKey* contact_get_key (const struct GNUNET_CHAT_Contact *contact) { GNUNET_assert(contact); diff --git a/src/gnunet_chat_contact.h b/src/gnunet_chat_contact.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2021--2024 GNUnet e.V. + Copyright (C) 2021--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -115,7 +115,7 @@ contact_update_key (struct GNUNET_CHAT_Contact *contact); * * @param[in] contact Chat contact */ -const struct GNUNET_CRYPTO_PublicKey* +const struct GNUNET_CRYPTO_BlindablePublicKey* contact_get_key (const struct GNUNET_CHAT_Contact *contact); /** diff --git a/src/gnunet_chat_context.c b/src/gnunet_chat_context.c @@ -451,7 +451,7 @@ context_write_records (struct GNUNET_CHAT_Context *context) { GNUNET_assert((context) && (context->handle) && (context->room)); - const struct GNUNET_CRYPTO_PrivateKey *zone = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *zone = handle_get_key( context->handle ); diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c @@ -173,11 +173,11 @@ handle_update_key (struct GNUNET_CHAT_Handle *handle) if (!(handle->messenger)) return; - const struct GNUNET_CRYPTO_PublicKey *pubkey; + const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey; pubkey = GNUNET_MESSENGER_get_key(handle->messenger); if (pubkey) - handle->public_key = GNUNET_CRYPTO_public_key_to_string(pubkey); + handle->public_key = GNUNET_CRYPTO_blindable_public_key_to_string(pubkey); } void @@ -311,7 +311,7 @@ handle_update_identity(struct GNUNET_CHAT_Handle *handle) GNUNET_NO ); - const struct GNUNET_CRYPTO_PrivateKey *zone = handle_get_key(handle); + const struct GNUNET_CRYPTO_BlindablePrivateKey *zone = handle_get_key(handle); if ((!zone) || (handle->monitor)) return; @@ -360,7 +360,7 @@ handle_connect (struct GNUNET_CHAT_Handle *handle, handle->gns = GNUNET_GNS_connect(handle->cfg); - const struct GNUNET_CRYPTO_PrivateKey *key; + const struct GNUNET_CRYPTO_BlindablePrivateKey *key; key = account_get_key(account); const char *name = account_get_name(account); @@ -835,7 +835,7 @@ handle_update (struct GNUNET_CHAT_Handle *handle) return result; } -const struct GNUNET_CRYPTO_PrivateKey* +const struct GNUNET_CRYPTO_BlindablePrivateKey* handle_get_key (const struct GNUNET_CHAT_Handle *handle) { GNUNET_assert(handle); diff --git a/src/gnunet_chat_handle.h b/src/gnunet_chat_handle.h @@ -301,7 +301,7 @@ handle_update (struct GNUNET_CHAT_Handle *handle); * @param[in] handle Chat handle * @return EGOs private key or NULL */ -const struct GNUNET_CRYPTO_PrivateKey* +const struct GNUNET_CRYPTO_BlindablePrivateKey* handle_get_key (const struct GNUNET_CHAT_Handle *handle); /** diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c @@ -388,7 +388,7 @@ send_refresh: void cb_account_creation (void *cls, - const struct GNUNET_CRYPTO_PrivateKey *key, + const struct GNUNET_CRYPTO_BlindablePrivateKey *key, enum GNUNET_ErrorCode ec) { GNUNET_assert(cls); @@ -519,7 +519,7 @@ cb_lobby_deletion (void *cls, static void cb_account_update_completion (void *cls, - const struct GNUNET_CRYPTO_PrivateKey *key, + const struct GNUNET_CRYPTO_BlindablePrivateKey *key, enum GNUNET_ErrorCode ec) { GNUNET_assert(cls); @@ -611,7 +611,7 @@ intern_provide_contact_for_member(struct GNUNET_CHAT_Handle *handle, struct GNUNET_CHAT_CheckHandleRoomMembers { - const struct GNUNET_CRYPTO_PublicKey *ignore_key; + const struct GNUNET_CRYPTO_BlindablePublicKey *ignore_key; const struct GNUNET_MESSENGER_Contact *contact; }; @@ -624,7 +624,7 @@ check_handle_room_members (void* cls, GNUNET_assert((check) && (member)); - const struct GNUNET_CRYPTO_PublicKey *member_key = ( + const struct GNUNET_CRYPTO_BlindablePublicKey *member_key = ( GNUNET_MESSENGER_contact_get_key(member) ); @@ -658,7 +658,7 @@ scan_handle_room_members (void* cls, void on_monitor_namestore_record(void *cls, GNUNET_UNUSED const - struct GNUNET_CRYPTO_PrivateKey *zone, + struct GNUNET_CRYPTO_BlindablePrivateKey *zone, const char *label, unsigned int count, const struct GNUNET_GNSRECORD_Data *data) diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c @@ -330,7 +330,7 @@ GNUNET_CHAT_set_attribute (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -388,7 +388,7 @@ GNUNET_CHAT_delete_attribute (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -424,7 +424,7 @@ GNUNET_CHAT_get_attributes (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -463,11 +463,11 @@ GNUNET_CHAT_share_attribute_with (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction) || (!contact)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); - const struct GNUNET_CRYPTO_PublicKey *pubkey = contact_get_key( + const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey = contact_get_key( contact ); @@ -503,7 +503,7 @@ GNUNET_CHAT_unshare_attribute_from (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction) || (!contact)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -540,7 +540,7 @@ GNUNET_CHAT_get_shared_attributes (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction) || (!contact)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -968,7 +968,7 @@ GNUNET_CHAT_account_get_attributes (struct GNUNET_CHAT_Handle *handle, if ((!handle) || (handle->destruction) || (!account)) return; - const struct GNUNET_CRYPTO_PrivateKey *key = account_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = account_get_key( account ); diff --git a/src/gnunet_chat_lib_intern.c b/src/gnunet_chat_lib_intern.c @@ -277,7 +277,7 @@ it_contact_iterate_contexts (void *cls, struct GNUNET_CHAT_RoomFindContact { - const struct GNUNET_CRYPTO_PublicKey *ignore_key; + const struct GNUNET_CRYPTO_BlindablePublicKey *ignore_key; const struct GNUNET_MESSENGER_Contact *contact; }; @@ -288,7 +288,7 @@ it_room_find_contact (void *cls, { GNUNET_assert((cls) && (member)); - const struct GNUNET_CRYPTO_PublicKey *key = GNUNET_MESSENGER_contact_get_key( + const struct GNUNET_CRYPTO_BlindablePublicKey *key = GNUNET_MESSENGER_contact_get_key( member ); @@ -604,7 +604,7 @@ cb_task_finish_iterate_attribute (void *cls) struct GNUNET_CHAT_Handle *handle = attributes->handle; - const struct GNUNET_CRYPTO_PrivateKey *key; + const struct GNUNET_CRYPTO_BlindablePrivateKey *key; if (attributes->account) key = account_get_key(attributes->account); @@ -661,7 +661,7 @@ cb_task_error_iterate_attribute (void *cls) void cb_store_attribute (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute) { GNUNET_assert(cls); @@ -672,7 +672,7 @@ cb_store_attribute (void *cls, struct GNUNET_CHAT_Handle *handle = attributes->handle; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -717,7 +717,7 @@ cb_store_attribute (void *cls, void cb_delete_attribute (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute) { GNUNET_assert(cls); @@ -734,7 +734,7 @@ cb_delete_attribute (void *cls, struct GNUNET_CHAT_Handle *handle = attributes->handle; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -760,7 +760,7 @@ cb_delete_attribute (void *cls, void cb_iterate_attribute (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute) { GNUNET_assert(cls); @@ -885,7 +885,7 @@ attribute_list_from_attribute (const struct GNUNET_RECLAIM_Attribute *attribute) void cb_share_attribute (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute) { GNUNET_assert(cls); @@ -913,21 +913,21 @@ cb_share_attribute (void *cls, GNUNET_free(attributes->name); attributes->name = NULL; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); if (!key) return; - const struct GNUNET_CRYPTO_PublicKey *pubkey = contact_get_key( + const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey = contact_get_key( attributes->contact ); if (!pubkey) return; - char *rp_uri = GNUNET_CRYPTO_public_key_to_string(pubkey); + char *rp_uri = GNUNET_CRYPTO_blindable_public_key_to_string(pubkey); struct GNUNET_RECLAIM_AttributeList *attrs; attrs = attribute_list_from_attribute(attribute); @@ -1024,7 +1024,7 @@ cont_revoke_ticket (void *cls, void cb_consume_ticket_check (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute, const struct GNUNET_RECLAIM_Presentation *presentation) { @@ -1040,7 +1040,7 @@ cb_consume_ticket_check (void *cls, struct GNUNET_CHAT_Handle *handle = tickets->handle; - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -1088,16 +1088,16 @@ is_contact_ticket_audience (const struct GNUNET_CHAT_Contact *contact, { GNUNET_assert((contact) && (rp_uri)); - const struct GNUNET_CRYPTO_PublicKey *pubkey; + const struct GNUNET_CRYPTO_BlindablePublicKey *pubkey; pubkey = contact_get_key(contact); if (!pubkey) return GNUNET_NO; - struct GNUNET_CRYPTO_PublicKey audience; + struct GNUNET_CRYPTO_BlindablePublicKey audience; enum GNUNET_GenericReturnValue parsing; - parsing = GNUNET_CRYPTO_public_key_from_string(rp_uri, &audience); + parsing = GNUNET_CRYPTO_blindable_public_key_from_string(rp_uri, &audience); if ((GNUNET_OK != parsing) || (0 != GNUNET_memcmp(pubkey, &audience))) return GNUNET_NO; @@ -1125,7 +1125,7 @@ cb_iterate_ticket_check (void *cls, return; } - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); @@ -1157,7 +1157,7 @@ cb_iterate_ticket_check (void *cls, void cb_consume_ticket (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute, const struct GNUNET_RECLAIM_Presentation *presentation) { @@ -1211,7 +1211,7 @@ cb_iterate_ticket (void *cls, return; } - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( handle ); diff --git a/src/gnunet_chat_lobby_intern.c b/src/gnunet_chat_lobby_intern.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2022--2024 GNUnet e.V. + Copyright (C) 2022--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -63,7 +63,7 @@ call_cb: void cont_lobby_identity_create (void *cls, - const struct GNUNET_CRYPTO_PrivateKey *zone, + const struct GNUNET_CRYPTO_BlindablePrivateKey *zone, enum GNUNET_ErrorCode ec) { struct GNUNET_CHAT_Lobby *lobby = cls; @@ -104,8 +104,8 @@ cont_lobby_identity_create (void *cls, if (lobby->uri) uri_destroy(lobby->uri); - struct GNUNET_CRYPTO_PublicKey public_zone; - GNUNET_CRYPTO_key_get_public(zone, &public_zone); + struct GNUNET_CRYPTO_BlindablePublicKey public_zone; + GNUNET_CRYPTO_blindable_key_get_public(zone, &public_zone); char *label; util_get_context_label(lobby->context->type, key, &label); diff --git a/src/gnunet_chat_ticket.c b/src/gnunet_chat_ticket.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2024 GNUnet e.V. + Copyright (C) 2024--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -40,8 +40,8 @@ ticket_create_from_message (struct GNUNET_CHAT_Handle *handle, { GNUNET_assert((handle) && (issuer) && (message)); - const struct GNUNET_CRYPTO_PublicKey *identity; - const struct GNUNET_CRYPTO_PublicKey *audience; + const struct GNUNET_CRYPTO_BlindablePublicKey *identity; + const struct GNUNET_CRYPTO_BlindablePublicKey *audience; identity = contact_get_key(issuer); audience = GNUNET_MESSENGER_get_key(handle->messenger); @@ -72,17 +72,17 @@ ticket_consume(struct GNUNET_CHAT_Ticket *ticket, { GNUNET_assert(ticket); - const struct GNUNET_CRYPTO_PrivateKey *key = handle_get_key( + const struct GNUNET_CRYPTO_BlindablePrivateKey *key = handle_get_key( ticket->handle ); if (!key) return; - struct GNUNET_CRYPTO_PublicKey pubkey; - GNUNET_CRYPTO_key_get_public(key, &pubkey); + struct GNUNET_CRYPTO_BlindablePublicKey pubkey; + GNUNET_CRYPTO_blindable_key_get_public(key, &pubkey); - char *rp_uri = GNUNET_CRYPTO_public_key_to_string(&pubkey); + char *rp_uri = GNUNET_CRYPTO_blindable_public_key_to_string(&pubkey); ticket->callback = callback; ticket->closure = cls; diff --git a/src/gnunet_chat_ticket_intern.c b/src/gnunet_chat_ticket_intern.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2024 GNUnet e.V. + Copyright (C) 2024--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -29,7 +29,7 @@ void cb_ticket_consume_attribute (void *cls, - const struct GNUNET_CRYPTO_PublicKey *identity, + const struct GNUNET_CRYPTO_BlindablePublicKey *identity, const struct GNUNET_RECLAIM_Attribute *attribute, const struct GNUNET_RECLAIM_Presentation *presentation) { diff --git a/src/gnunet_chat_uri.c b/src/gnunet_chat_uri.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2022--2024 GNUnet e.V. + Copyright (C) 2022--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -29,7 +29,7 @@ #define _(String) ((const char*) String) struct GNUNET_CHAT_Uri* -uri_create_chat (const struct GNUNET_CRYPTO_PublicKey *zone, +uri_create_chat (const struct GNUNET_CRYPTO_BlindablePublicKey *zone, const char *label) { GNUNET_assert((zone) && (label)); @@ -103,7 +103,7 @@ uri_parse_from_string (const char *string, if (GNUNET_YES == string_starts_with(string, GNUNET_CHAT_URI_PREFIX, &prefix_len)) { - struct GNUNET_CRYPTO_PublicKey zone; + struct GNUNET_CRYPTO_BlindablePublicKey zone; const char *data = string + prefix_len; char *end = strchr(data, '.'); @@ -118,7 +118,7 @@ uri_parse_from_string (const char *string, char *zone_data = GNUNET_strndup(data, (size_t) (end - data)); - if (GNUNET_OK != GNUNET_CRYPTO_public_key_from_string(zone_data, &zone)) + if (GNUNET_OK != GNUNET_CRYPTO_blindable_public_key_from_string(zone_data, &zone)) { GNUNET_free(zone_data); @@ -161,7 +161,7 @@ uri_to_string (const struct GNUNET_CHAT_Uri *uri) { case GNUNET_CHAT_URI_TYPE_CHAT: { - char *zone = GNUNET_CRYPTO_public_key_to_string(&(uri->chat.zone)); + char *zone = GNUNET_CRYPTO_blindable_public_key_to_string(&(uri->chat.zone)); char *result; GNUNET_asprintf ( diff --git a/src/gnunet_chat_uri.h b/src/gnunet_chat_uri.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2022--2024 GNUnet e.V. + Copyright (C) 2022--2025 GNUnet e.V. GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -32,7 +32,7 @@ struct GNUNET_CHAT_UriChat { - struct GNUNET_CRYPTO_PublicKey zone; + struct GNUNET_CRYPTO_BlindablePublicKey zone; char *label; }; @@ -60,7 +60,7 @@ struct GNUNET_CHAT_Uri * @return New chat uri */ struct GNUNET_CHAT_Uri* -uri_create_chat (const struct GNUNET_CRYPTO_PublicKey *zone, +uri_create_chat (const struct GNUNET_CRYPTO_BlindablePublicKey *zone, const char *label); /** diff --git a/tools/gnunet_messenger_ping.c b/tools/gnunet_messenger_ping.c @@ -474,7 +474,7 @@ ego_lookup (void *cls, tool->lookup = NULL; - const struct GNUNET_CRYPTO_PrivateKey *key; + const struct GNUNET_CRYPTO_BlindablePrivateKey *key; key = ego? GNUNET_IDENTITY_ego_get_private_key(ego) : NULL; tool->handle = GNUNET_MESSENGER_connect( diff --git a/tools/gnunet_messenger_uml.c b/tools/gnunet_messenger_uml.c @@ -398,7 +398,7 @@ ego_lookup (void *cls, tool->lookup = NULL; - const struct GNUNET_CRYPTO_PrivateKey *key; + const struct GNUNET_CRYPTO_BlindablePrivateKey *key; key = ego? GNUNET_IDENTITY_ego_get_private_key(ego) : NULL; tool->handle = GNUNET_MESSENGER_connect(