diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-10 17:09:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-10 17:09:45 +0000 |
commit | 5d7d01298cfcde6516cecac01f6bfff31bc20461 (patch) | |
tree | b755a0535a68d3f2f1df4ad266e256954abe2472 /src/conversation/gnunet-service-conversation.c | |
parent | 42c354283221489bf52e0ab4fcc6617e0d691934 (diff) | |
download | gnunet-5d7d01298cfcde6516cecac01f6bfff31bc20461.tar.gz gnunet-5d7d01298cfcde6516cecac01f6bfff31bc20461.zip |
-fix eddsa api migration
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r-- | src/conversation/gnunet-service-conversation.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c index d19be5318..e0c10e533 100644 --- a/src/conversation/gnunet-service-conversation.c +++ b/src/conversation/gnunet-service-conversation.c | |||
@@ -503,15 +503,15 @@ handle_client_call_message (void *cls, | |||
503 | ring->purpose.size = htonl (sizeof (struct GNUNET_PeerIdentity) * 2 + | 503 | ring->purpose.size = htonl (sizeof (struct GNUNET_PeerIdentity) * 2 + |
504 | sizeof (struct GNUNET_TIME_AbsoluteNBO) + | 504 | sizeof (struct GNUNET_TIME_AbsoluteNBO) + |
505 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 505 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
506 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey)); | 506 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey)); |
507 | GNUNET_CRYPTO_ecc_key_get_public_for_signature (&msg->caller_id, | 507 | GNUNET_CRYPTO_ecdsa_key_get_public (&msg->caller_id, |
508 | &ring->caller_id); | 508 | &ring->caller_id); |
509 | ring->remote_line = msg->line; | 509 | ring->remote_line = msg->line; |
510 | ring->source_line = line->local_line; | 510 | ring->source_line = line->local_line; |
511 | ring->target = msg->target; | 511 | ring->target = msg->target; |
512 | ring->source = my_identity; | 512 | ring->source = my_identity; |
513 | ring->expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (RING_TIMEOUT)); | 513 | ring->expiration_time = GNUNET_TIME_absolute_hton (GNUNET_TIME_relative_to_absolute (RING_TIMEOUT)); |
514 | GNUNET_CRYPTO_ecc_sign (&msg->caller_id, | 514 | GNUNET_CRYPTO_ecdsa_sign (&msg->caller_id, |
515 | &ring->purpose, | 515 | &ring->purpose, |
516 | &ring->signature); | 516 | &ring->signature); |
517 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 517 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -680,9 +680,9 @@ handle_mesh_ring_message (void *cls, | |||
680 | if ( (msg->purpose.size != htonl (sizeof (struct GNUNET_PeerIdentity) * 2 + | 680 | if ( (msg->purpose.size != htonl (sizeof (struct GNUNET_PeerIdentity) * 2 + |
681 | sizeof (struct GNUNET_TIME_AbsoluteNBO) + | 681 | sizeof (struct GNUNET_TIME_AbsoluteNBO) + |
682 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + | 682 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose) + |
683 | sizeof (struct GNUNET_CRYPTO_EccPublicSignKey))) || | 683 | sizeof (struct GNUNET_CRYPTO_EcdsaPublicKey))) || |
684 | (GNUNET_OK != | 684 | (GNUNET_OK != |
685 | GNUNET_CRYPTO_ecc_verify (GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING, | 685 | GNUNET_CRYPTO_ecdsa_verify (GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING, |
686 | &msg->purpose, | 686 | &msg->purpose, |
687 | &msg->signature, | 687 | &msg->signature, |
688 | &msg->caller_id)) ) | 688 | &msg->caller_id)) ) |