aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_handle.c')
-rw-r--r--src/gnunet_chat_handle.c12
1 files changed, 6 insertions, 6 deletions
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
150void 150void
@@ -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
630const struct GNUNET_IDENTITY_PrivateKey* 630const struct GNUNET_CRYPTO_PrivateKey*
631handle_get_key (const struct GNUNET_CHAT_Handle *handle) 631handle_get_key (const struct GNUNET_CHAT_Handle *handle)
632{ 632{
633 GNUNET_assert(handle); 633 GNUNET_assert(handle);