aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/psycstore_api.c
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-07-10 17:49:53 +0000
committerGabor X Toth <*@tg-x.net>2014-07-10 17:49:53 +0000
commita8133f3ff80aaaccc904e4bbaf69bc53dee499cb (patch)
treec10edd7a8156280c61357ccf9e0f1f27c7a0d6db /src/psycstore/psycstore_api.c
parent6c75526e936fcc74ee79b13831b2b6dda57f293d (diff)
downloadgnunet-a8133f3ff80aaaccc904e4bbaf69bc53dee499cb.tar.gz
gnunet-a8133f3ff80aaaccc904e4bbaf69bc53dee499cb.zip
PSYC(store), Multicast: use ECDSA slave/member keys; PSYC: add GNUNET_PSYC_message_create()
Diffstat (limited to 'src/psycstore/psycstore_api.c')
-rw-r--r--src/psycstore/psycstore_api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/psycstore/psycstore_api.c b/src/psycstore/psycstore_api.c
index a5fdea10b..38580b013 100644
--- a/src/psycstore/psycstore_api.c
+++ b/src/psycstore/psycstore_api.c
@@ -656,7 +656,7 @@ GNUNET_PSYCSTORE_operation_cancel (struct GNUNET_PSYCSTORE_OperationHandle *op)
656struct GNUNET_PSYCSTORE_OperationHandle * 656struct GNUNET_PSYCSTORE_OperationHandle *
657GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h, 657GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
658 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 658 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
659 const struct GNUNET_CRYPTO_EddsaPublicKey *slave_key, 659 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
660 int did_join, 660 int did_join,
661 uint64_t announced_at, 661 uint64_t announced_at,
662 uint64_t effective_since, 662 uint64_t effective_since,
@@ -722,7 +722,7 @@ GNUNET_PSYCSTORE_membership_store (struct GNUNET_PSYCSTORE_Handle *h,
722struct GNUNET_PSYCSTORE_OperationHandle * 722struct GNUNET_PSYCSTORE_OperationHandle *
723GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h, 723GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
724 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 724 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
725 const struct GNUNET_CRYPTO_EddsaPublicKey *slave_key, 725 const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key,
726 uint64_t message_id, 726 uint64_t message_id,
727 uint64_t group_generation, 727 uint64_t group_generation,
728 GNUNET_PSYCSTORE_ResultCallback rcb, 728 GNUNET_PSYCSTORE_ResultCallback rcb,
@@ -770,12 +770,12 @@ GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
770struct GNUNET_PSYCSTORE_OperationHandle * 770struct GNUNET_PSYCSTORE_OperationHandle *
771GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h, 771GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
772 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key, 772 const struct GNUNET_CRYPTO_EddsaPublicKey *channel_key,
773 const struct GNUNET_MULTICAST_MessageHeader *message, 773 const struct GNUNET_MULTICAST_MessageHeader *msg,
774 uint32_t psycstore_flags, 774 enum GNUNET_PSYCSTORE_MessageFlags psycstore_flags,
775 GNUNET_PSYCSTORE_ResultCallback rcb, 775 GNUNET_PSYCSTORE_ResultCallback rcb,
776 void *rcb_cls) 776 void *rcb_cls)
777{ 777{
778 uint16_t size = ntohs (message->header.size); 778 uint16_t size = ntohs (msg->header.size);
779 struct FragmentStoreRequest *req; 779 struct FragmentStoreRequest *req;
780 struct GNUNET_PSYCSTORE_OperationHandle *op 780 struct GNUNET_PSYCSTORE_OperationHandle *op
781 = GNUNET_malloc (sizeof (*op) + sizeof (*req) + size); 781 = GNUNET_malloc (sizeof (*op) + sizeof (*req) + size);
@@ -789,7 +789,7 @@ GNUNET_PSYCSTORE_fragment_store (struct GNUNET_PSYCSTORE_Handle *h,
789 req->header.size = htons (sizeof (*req) + size); 789 req->header.size = htons (sizeof (*req) + size);
790 req->channel_key = *channel_key; 790 req->channel_key = *channel_key;
791 req->psycstore_flags = htonl (psycstore_flags); 791 req->psycstore_flags = htonl (psycstore_flags);
792 memcpy (&req[1], message, size); 792 memcpy (&req[1], msg, size);
793 793
794 op->op_id = get_next_op_id (h); 794 op->op_id = get_next_op_id (h);
795 req->op_id = htonl (op->op_id); 795 req->op_id = htonl (op->op_id);