aboutsummaryrefslogtreecommitdiff
path: root/src/chat/chat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-04 08:09:33 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-04 08:09:33 +0000
commite3445ef22cc8478bb6cdca2b35f20f7f3325c697 (patch)
tree30117bb239a8b5bc03366e18a4901f46a3945147 /src/chat/chat.c
parentef147778f4ada88486a3d0584b34ba8889742249 (diff)
downloadgnunet-e3445ef22cc8478bb6cdca2b35f20f7f3325c697.tar.gz
gnunet-e3445ef22cc8478bb6cdca2b35f20f7f3325c697.zip
chat update -- Mantis 1665
Diffstat (limited to 'src/chat/chat.c')
-rw-r--r--src/chat/chat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/chat/chat.c b/src/chat/chat.c
index f3e3470a0..5f4e121dc 100644
--- a/src/chat/chat.c
+++ b/src/chat/chat.c
@@ -149,7 +149,7 @@ struct GNUNET_CHAT_SendReceiptContext
149 * Ask client to send a join request. 149 * Ask client to send a join request.
150 */ 150 */
151static int 151static int
152GNUNET_CHAT_rejoin_room (struct GNUNET_CHAT_Room *chat_room); 152rejoin_room (struct GNUNET_CHAT_Room *chat_room);
153 153
154 154
155/** 155/**
@@ -448,7 +448,7 @@ receive_results (void *cls,
448 if (NULL == msg) 448 if (NULL == msg)
449 { 449 {
450 GNUNET_break (0); 450 GNUNET_break (0);
451 GNUNET_CHAT_rejoin_room (chat_room); 451 rejoin_room (chat_room);
452 return; 452 return;
453 } 453 }
454 process_result (chat_room, msg); 454 process_result (chat_room, msg);
@@ -468,8 +468,8 @@ receive_results (void *cls,
468 * Returns the private key on success, NULL on error. 468 * Returns the private key on success, NULL on error.
469 */ 469 */
470static struct GNUNET_CRYPTO_RsaPrivateKey * 470static struct GNUNET_CRYPTO_RsaPrivateKey *
471GNUNET_CHAT_initPrivateKey (const struct GNUNET_CONFIGURATION_Handle *cfg, 471init_private_key (const struct GNUNET_CONFIGURATION_Handle *cfg,
472 const char *nick_name) 472 const char *nick_name)
473{ 473{
474 char *home; 474 char *home;
475 char *keyfile; 475 char *keyfile;
@@ -548,7 +548,7 @@ transmit_join_request (void *cls,
548 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 548 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
549 "Could not transmit join request, retrying...\n"); 549 "Could not transmit join request, retrying...\n");
550#endif 550#endif
551 GNUNET_CHAT_rejoin_room (chat_room); 551 rejoin_room (chat_room);
552 return 0; 552 return 0;
553 } 553 }
554#if DEBUG_CHAT 554#if DEBUG_CHAT
@@ -591,7 +591,7 @@ transmit_join_request (void *cls,
591 * Ask to send a join request. 591 * Ask to send a join request.
592 */ 592 */
593static int 593static int
594GNUNET_CHAT_rejoin_room (struct GNUNET_CHAT_Room *chat_room) 594rejoin_room (struct GNUNET_CHAT_Room *chat_room)
595{ 595{
596 size_t size_of_join; 596 size_t size_of_join;
597 597
@@ -682,7 +682,7 @@ GNUNET_CHAT_join_room (const struct GNUNET_CONFIGURATION_Handle *cfg,
682#if DEBUG_CHAT 682#if DEBUG_CHAT
683 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Joining the room '%s'\n", room_name); 683 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Joining the room '%s'\n", room_name);
684#endif 684#endif
685 priv_key = GNUNET_CHAT_initPrivateKey (cfg, nick_name); 685 priv_key = init_private_key (cfg, nick_name);
686 if (NULL == priv_key) 686 if (NULL == priv_key)
687 return NULL; 687 return NULL;
688 GNUNET_CRYPTO_rsa_key_get_public (priv_key, &pub_key); 688 GNUNET_CRYPTO_rsa_key_get_public (priv_key, &pub_key);
@@ -732,7 +732,7 @@ GNUNET_CHAT_join_room (const struct GNUNET_CONFIGURATION_Handle *cfg,
732 chat_room->cfg = cfg; 732 chat_room->cfg = cfg;
733 chat_room->client = client; 733 chat_room->client = client;
734 chat_room->members = NULL; 734 chat_room->members = NULL;
735 if (GNUNET_SYSERR == GNUNET_CHAT_rejoin_room (chat_room)) 735 if (GNUNET_SYSERR == rejoin_room (chat_room))
736 { 736 {
737 GNUNET_CHAT_leave_room (chat_room); 737 GNUNET_CHAT_leave_room (chat_room);
738 return NULL; 738 return NULL;