diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 18 | ||||
-rw-r--r-- | src/include/gnunet_psyc_service.h | 26 |
2 files changed, 22 insertions, 22 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index 9bbc69243..a4da495a3 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -179,7 +179,7 @@ struct GNUNET_MULTICAST_RequestHeader | |||
179 | /** | 179 | /** |
180 | * Public key of the sending member. | 180 | * Public key of the sending member. |
181 | */ | 181 | */ |
182 | struct GNUNET_CRYPTO_EcdsaPublicKey member_key; | 182 | struct GNUNET_CRYPTO_EcdsaPublicKey member_pub_key; |
183 | 183 | ||
184 | /** | 184 | /** |
185 | * ECC signature of the request fragment. | 185 | * ECC signature of the request fragment. |
@@ -285,7 +285,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | |||
285 | * | 285 | * |
286 | * @param cls | 286 | * @param cls |
287 | * Closure. | 287 | * Closure. |
288 | * @param member_key | 288 | * @param member_pub_key |
289 | * Public key of the member requesting join. | 289 | * Public key of the member requesting join. |
290 | * @param join_msg | 290 | * @param join_msg |
291 | * Application-dependent join message from the new member. | 291 | * Application-dependent join message from the new member. |
@@ -294,7 +294,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | |||
294 | */ | 294 | */ |
295 | typedef void | 295 | typedef void |
296 | (*GNUNET_MULTICAST_JoinRequestCallback) (void *cls, | 296 | (*GNUNET_MULTICAST_JoinRequestCallback) (void *cls, |
297 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_key, | 297 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_pub_key, |
298 | const struct GNUNET_MessageHeader *join_msg, | 298 | const struct GNUNET_MessageHeader *join_msg, |
299 | struct GNUNET_MULTICAST_JoinHandle *jh); | 299 | struct GNUNET_MULTICAST_JoinHandle *jh); |
300 | 300 | ||
@@ -398,7 +398,7 @@ struct GNUNET_MULTICAST_ReplayHandle; | |||
398 | * @param cls | 398 | * @param cls |
399 | * Closure (set from GNUNET_MULTICAST_origin_start() | 399 | * Closure (set from GNUNET_MULTICAST_origin_start() |
400 | * or GNUNET_MULTICAST_member_join()). | 400 | * or GNUNET_MULTICAST_member_join()). |
401 | * @param member_key | 401 | * @param member_pub_key |
402 | * The member requesting replay. | 402 | * The member requesting replay. |
403 | * @param fragment_id | 403 | * @param fragment_id |
404 | * Which message fragment should be replayed. | 404 | * Which message fragment should be replayed. |
@@ -409,7 +409,7 @@ struct GNUNET_MULTICAST_ReplayHandle; | |||
409 | */ | 409 | */ |
410 | typedef void | 410 | typedef void |
411 | (*GNUNET_MULTICAST_ReplayFragmentCallback) (void *cls, | 411 | (*GNUNET_MULTICAST_ReplayFragmentCallback) (void *cls, |
412 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_key, | 412 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_pub_key, |
413 | uint64_t fragment_id, | 413 | uint64_t fragment_id, |
414 | uint64_t flags, | 414 | uint64_t flags, |
415 | struct GNUNET_MULTICAST_ReplayHandle *rh); | 415 | struct GNUNET_MULTICAST_ReplayHandle *rh); |
@@ -425,7 +425,7 @@ typedef void | |||
425 | * @param cls | 425 | * @param cls |
426 | * Closure (set from GNUNET_MULTICAST_origin_start() | 426 | * Closure (set from GNUNET_MULTICAST_origin_start() |
427 | * or GNUNET_MULTICAST_member_join()). | 427 | * or GNUNET_MULTICAST_member_join()). |
428 | * @param member_key | 428 | * @param member_pub_key |
429 | * The member requesting replay. | 429 | * The member requesting replay. |
430 | * @param message_id | 430 | * @param message_id |
431 | * Which message should be replayed. | 431 | * Which message should be replayed. |
@@ -438,7 +438,7 @@ typedef void | |||
438 | */ | 438 | */ |
439 | typedef void | 439 | typedef void |
440 | (*GNUNET_MULTICAST_ReplayMessageCallback) (void *cls, | 440 | (*GNUNET_MULTICAST_ReplayMessageCallback) (void *cls, |
441 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_key, | 441 | const struct GNUNET_CRYPTO_EcdsaPublicKey *member_pub_key, |
442 | uint64_t message_id, | 442 | uint64_t message_id, |
443 | uint64_t fragment_offset, | 443 | uint64_t fragment_offset, |
444 | uint64_t flags, | 444 | uint64_t flags, |
@@ -697,7 +697,7 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin, | |||
697 | * Configuration to use. | 697 | * Configuration to use. |
698 | * @param group_key | 698 | * @param group_key |
699 | * ECC public key that identifies the group to join. | 699 | * ECC public key that identifies the group to join. |
700 | * @param member_key | 700 | * @param member_pub_key |
701 | * ECC key that identifies the member | 701 | * ECC key that identifies the member |
702 | * and used to sign requests sent to the origin. | 702 | * and used to sign requests sent to the origin. |
703 | * @param origin | 703 | * @param origin |
@@ -736,7 +736,7 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin, | |||
736 | struct GNUNET_MULTICAST_Member * | 736 | struct GNUNET_MULTICAST_Member * |
737 | GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | 737 | GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg, |
738 | const struct GNUNET_CRYPTO_EddsaPublicKey *group_key, | 738 | const struct GNUNET_CRYPTO_EddsaPublicKey *group_key, |
739 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *member_key, | 739 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *member_pub_key, |
740 | const struct GNUNET_PeerIdentity *origin, | 740 | const struct GNUNET_PeerIdentity *origin, |
741 | uint16_t relay_count, | 741 | uint16_t relay_count, |
742 | const struct GNUNET_PeerIdentity *relays, | 742 | const struct GNUNET_PeerIdentity *relays, |
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h index 526a70f01..57134baf5 100644 --- a/src/include/gnunet_psyc_service.h +++ b/src/include/gnunet_psyc_service.h | |||
@@ -258,7 +258,7 @@ struct GNUNET_PSYC_MessageHeader | |||
258 | * Sending slave's public key. | 258 | * Sending slave's public key. |
259 | * Not set if the message is from the master. | 259 | * Not set if the message is from the master. |
260 | */ | 260 | */ |
261 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_key; | 261 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key; |
262 | 262 | ||
263 | /* Followed by concatenated PSYC message parts: | 263 | /* Followed by concatenated PSYC message parts: |
264 | * messages with GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_* types | 264 | * messages with GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_* types |
@@ -351,7 +351,7 @@ struct GNUNET_PSYC_JoinRequestMessage | |||
351 | /** | 351 | /** |
352 | * Public key of the joining slave. | 352 | * Public key of the joining slave. |
353 | */ | 353 | */ |
354 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_key; | 354 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key; |
355 | 355 | ||
356 | /* Followed by struct GNUNET_MessageHeader join_request */ | 356 | /* Followed by struct GNUNET_MessageHeader join_request */ |
357 | }; | 357 | }; |
@@ -377,7 +377,7 @@ struct GNUNET_PSYC_JoinDecisionMessage | |||
377 | * Only set when the master is sending the decision, | 377 | * Only set when the master is sending the decision, |
378 | * not set when a slave is receiving it. | 378 | * not set when a slave is receiving it. |
379 | */ | 379 | */ |
380 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_key; | 380 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key; |
381 | 381 | ||
382 | /* Followed by struct GNUNET_MessageHeader join_response */ | 382 | /* Followed by struct GNUNET_MessageHeader join_response */ |
383 | }; | 383 | }; |
@@ -544,7 +544,7 @@ typedef void | |||
544 | * | 544 | * |
545 | * @param cls | 545 | * @param cls |
546 | * Closure. | 546 | * Closure. |
547 | * @param slave_key | 547 | * @param slave_pub_key |
548 | * Public key of the slave sending the message. | 548 | * Public key of the slave sending the message. |
549 | * Only set for channel master. | 549 | * Only set for channel master. |
550 | * @param message_id | 550 | * @param message_id |
@@ -564,7 +564,7 @@ typedef void | |||
564 | */ | 564 | */ |
565 | typedef void | 565 | typedef void |
566 | (*GNUNET_PSYC_MessagePartCallback) (void *cls, | 566 | (*GNUNET_PSYC_MessagePartCallback) (void *cls, |
567 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 567 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, |
568 | uint64_t message_id, | 568 | uint64_t message_id, |
569 | uint32_t flags, | 569 | uint32_t flags, |
570 | uint64_t data_offset, | 570 | uint64_t data_offset, |
@@ -576,7 +576,7 @@ typedef void | |||
576 | * | 576 | * |
577 | * @param cls | 577 | * @param cls |
578 | * Closure. | 578 | * Closure. |
579 | * @param slave_key | 579 | * @param slave_pub_key |
580 | * Public key of the slave requesting join. | 580 | * Public key of the slave requesting join. |
581 | * @param join_msg | 581 | * @param join_msg |
582 | * Join message sent along with the request. | 582 | * Join message sent along with the request. |
@@ -586,7 +586,7 @@ typedef void | |||
586 | typedef void | 586 | typedef void |
587 | (*GNUNET_PSYC_JoinRequestCallback) (void *cls, | 587 | (*GNUNET_PSYC_JoinRequestCallback) (void *cls, |
588 | const struct GNUNET_PSYC_JoinRequestMessage *req, | 588 | const struct GNUNET_PSYC_JoinRequestMessage *req, |
589 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 589 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, |
590 | const struct GNUNET_PSYC_Message *join_msg, | 590 | const struct GNUNET_PSYC_Message *join_msg, |
591 | struct GNUNET_PSYC_JoinHandle *jh); | 591 | struct GNUNET_PSYC_JoinHandle *jh); |
592 | 592 | ||
@@ -920,7 +920,7 @@ enum GNUNET_PSYC_SlaveJoinFlags | |||
920 | * Configuration to use. | 920 | * Configuration to use. |
921 | * @param channel_pub_key | 921 | * @param channel_pub_key |
922 | * ECC public key that identifies the channel we wish to join. | 922 | * ECC public key that identifies the channel we wish to join. |
923 | * @param slave_key | 923 | * @param slave_pub_key |
924 | * ECC private-public key pair that identifies the slave, and | 924 | * ECC private-public key pair that identifies the slave, and |
925 | * used by multicast to sign the join request and subsequent unicast | 925 | * used by multicast to sign the join request and subsequent unicast |
926 | * requests sent to the master. | 926 | * requests sent to the master. |
@@ -951,7 +951,7 @@ enum GNUNET_PSYC_SlaveJoinFlags | |||
951 | struct GNUNET_PSYC_Slave * | 951 | struct GNUNET_PSYC_Slave * |
952 | GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | 952 | GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg, |
953 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_pub_key, | 953 | const struct GNUNET_CRYPTO_EddsaPublicKey *channel_pub_key, |
954 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_key, | 954 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *slave_pub_key, |
955 | enum GNUNET_PSYC_SlaveJoinFlags flags, | 955 | enum GNUNET_PSYC_SlaveJoinFlags flags, |
956 | const struct GNUNET_PeerIdentity *origin, | 956 | const struct GNUNET_PeerIdentity *origin, |
957 | uint32_t relay_count, | 957 | uint32_t relay_count, |
@@ -1085,7 +1085,7 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave); | |||
1085 | * | 1085 | * |
1086 | * @param channel | 1086 | * @param channel |
1087 | * Channel handle. | 1087 | * Channel handle. |
1088 | * @param slave_key | 1088 | * @param slave_pub_key |
1089 | * Identity of channel slave to add. | 1089 | * Identity of channel slave to add. |
1090 | * @param announced_at | 1090 | * @param announced_at |
1091 | * ID of the message that announced the membership change. | 1091 | * ID of the message that announced the membership change. |
@@ -1101,7 +1101,7 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slave); | |||
1101 | */ | 1101 | */ |
1102 | void | 1102 | void |
1103 | GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, | 1103 | GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, |
1104 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 1104 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, |
1105 | uint64_t announced_at, | 1105 | uint64_t announced_at, |
1106 | uint64_t effective_since, | 1106 | uint64_t effective_since, |
1107 | GNUNET_ResultCallback result_cb, | 1107 | GNUNET_ResultCallback result_cb, |
@@ -1127,7 +1127,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, | |||
1127 | * | 1127 | * |
1128 | * @param channel | 1128 | * @param channel |
1129 | * Channel handle. | 1129 | * Channel handle. |
1130 | * @param slave_key | 1130 | * @param slave_pub_key |
1131 | * Identity of channel slave to remove. | 1131 | * Identity of channel slave to remove. |
1132 | * @param announced_at | 1132 | * @param announced_at |
1133 | * ID of the message that announced the membership change. | 1133 | * ID of the message that announced the membership change. |
@@ -1142,7 +1142,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *channel, | |||
1142 | void | 1142 | void |
1143 | GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel, | 1143 | GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *channel, |
1144 | const struct GNUNET_CRYPTO_EcdsaPublicKey | 1144 | const struct GNUNET_CRYPTO_EcdsaPublicKey |
1145 | *slave_key, | 1145 | *slave_pub_key, |
1146 | uint64_t announced_at, | 1146 | uint64_t announced_at, |
1147 | GNUNET_ResultCallback result_cb, | 1147 | GNUNET_ResultCallback result_cb, |
1148 | void *cls); | 1148 | void *cls); |