aboutsummaryrefslogtreecommitdiff
path: root/src/conversation
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-12 17:49:34 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-12 17:49:34 +0100
commit3522008dfd14f049a821dfba7ba89a27aa27d4aa (patch)
tree09cc48925133f736e48bb2be4f239fb7d6d01950 /src/conversation
parent23f8671e09a80bf722c3268e8d477b5ce5e3d76a (diff)
parente11d1e59e4ae5f7d89c33df3ae9ca8f1ece990cf (diff)
downloadgnunet-3522008dfd14f049a821dfba7ba89a27aa27d4aa.tar.gz
gnunet-3522008dfd14f049a821dfba7ba89a27aa27d4aa.zip
Merge branch 'master' of git+ssh://gnunet.org/gnunet
Diffstat (limited to 'src/conversation')
-rw-r--r--src/conversation/conversation.h2
-rw-r--r--src/conversation/gnunet-service-conversation.c13
2 files changed, 7 insertions, 8 deletions
diff --git a/src/conversation/conversation.h b/src/conversation/conversation.h
index 9eedbeb91..d244f5163 100644
--- a/src/conversation/conversation.h
+++ b/src/conversation/conversation.h
@@ -313,7 +313,7 @@ struct CadetPhoneRingMessage
313 /** 313 /**
314 * Signature over a `struct CadetPhoneRingInfoPS` 314 * Signature over a `struct CadetPhoneRingInfoPS`
315 */ 315 */
316 struct GNUNET_CRYPTO_EcdsaSignature signature; 316 struct GNUNET_IDENTITY_Signature signature;
317}; 317};
318 318
319 319
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index b1a629217..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_CRYPTO_ecdsa_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.ecdsa_key)) 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,9 +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_CRYPTO_ecdsa_sign (&msg->caller_id.ecdsa_key, 1142 GNUNET_IDENTITY_sign (&msg->caller_id, &rs, &ring->signature);
1142 &rs,
1143 &ring->signature);
1144 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");
1145 GNUNET_MQ_send (ch->mq, e); 1144 GNUNET_MQ_send (ch->mq, e);
1146 GNUNET_SERVICE_client_continue (line->client); 1145 GNUNET_SERVICE_client_continue (line->client);