aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-service-conversation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r--src/conversation/gnunet-service-conversation.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 5c8b573a2..a69c95a80 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -752,10 +752,11 @@ handle_cadet_ring_message (void *cls, const struct CadetPhoneRingMessage *msg)
752 rs.expiration_time = msg->expiration_time; 752 rs.expiration_time = msg->expiration_time;
753 753
754 if (GNUNET_OK != 754 if (GNUNET_OK !=
755 GNUNET_IDENTITY_public_key_verify (GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING, 755 GNUNET_IDENTITY_signature_verify (
756 &rs, 756 GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING,
757 &msg->signature, 757 &rs,
758 &msg->caller_id)) 758 &msg->signature,
759 &msg->caller_id))
759 { 760 {
760 GNUNET_break_op (0); 761 GNUNET_break_op (0);
761 destroy_line_cadet_channels (ch); 762 destroy_line_cadet_channels (ch);
@@ -1138,7 +1139,7 @@ handle_client_call_message (void *cls, const struct ClientCallMessage *msg)
1138 e = GNUNET_MQ_msg (ring, GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RING); 1139 e = GNUNET_MQ_msg (ring, GNUNET_MESSAGE_TYPE_CONVERSATION_CADET_PHONE_RING);
1139 GNUNET_IDENTITY_key_get_public (&msg->caller_id, &ring->caller_id); 1140 GNUNET_IDENTITY_key_get_public (&msg->caller_id, &ring->caller_id);
1140 ring->expiration_time = rs.expiration_time; 1141 ring->expiration_time = rs.expiration_time;
1141 GNUNET_IDENTITY_private_key_sign(&msg->caller_id, &rs, &ring->signature); 1142 GNUNET_IDENTITY_sign (&msg->caller_id, &rs, &ring->signature);
1142 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending RING message via CADET\n"); 1143 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending RING message via CADET\n");
1143 GNUNET_MQ_send (ch->mq, e); 1144 GNUNET_MQ_send (ch->mq, e);
1144 GNUNET_SERVICE_client_continue (line->client); 1145 GNUNET_SERVICE_client_continue (line->client);