diff options
Diffstat (limited to 'src/psyc/psyc_api.c')
-rw-r--r-- | src/psyc/psyc_api.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/psyc/psyc_api.c b/src/psyc/psyc_api.c index c9d74f3c8..4e3d9fd7f 100644 --- a/src/psyc/psyc_api.c +++ b/src/psyc/psyc_api.c | |||
@@ -148,7 +148,7 @@ struct GNUNET_PSYC_Slave | |||
148 | struct GNUNET_PSYC_JoinHandle | 148 | struct GNUNET_PSYC_JoinHandle |
149 | { | 149 | { |
150 | struct GNUNET_PSYC_Master *mst; | 150 | struct GNUNET_PSYC_Master *mst; |
151 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_key; | 151 | struct GNUNET_CRYPTO_EcdsaPublicKey slave_pub_key; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | 154 | ||
@@ -470,10 +470,10 @@ master_recv_join_request (void *cls, | |||
470 | 470 | ||
471 | struct GNUNET_PSYC_JoinHandle *jh = GNUNET_malloc (sizeof (*jh)); | 471 | struct GNUNET_PSYC_JoinHandle *jh = GNUNET_malloc (sizeof (*jh)); |
472 | jh->mst = mst; | 472 | jh->mst = mst; |
473 | jh->slave_key = req->slave_key; | 473 | jh->slave_pub_key = req->slave_pub_key; |
474 | 474 | ||
475 | if (NULL != mst->join_req_cb) | 475 | if (NULL != mst->join_req_cb) |
476 | mst->join_req_cb (mst->cb_cls, req, &req->slave_key, join_msg, jh); | 476 | mst->join_req_cb (mst->cb_cls, req, &req->slave_pub_key, join_msg, jh); |
477 | } | 477 | } |
478 | 478 | ||
479 | 479 | ||
@@ -756,7 +756,7 @@ GNUNET_PSYC_join_decision (struct GNUNET_PSYC_JoinHandle *jh, | |||
756 | dcsn->header.size = htons (sizeof (*dcsn) + relay_size + join_resp_size); | 756 | dcsn->header.size = htons (sizeof (*dcsn) + relay_size + join_resp_size); |
757 | dcsn->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_JOIN_DECISION); | 757 | dcsn->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_JOIN_DECISION); |
758 | dcsn->is_admitted = htonl (is_admitted); | 758 | dcsn->is_admitted = htonl (is_admitted); |
759 | dcsn->slave_key = jh->slave_key; | 759 | dcsn->slave_pub_key = jh->slave_pub_key; |
760 | 760 | ||
761 | if (0 < join_resp_size) | 761 | if (0 < join_resp_size) |
762 | memcpy (&dcsn[1], join_resp, join_resp_size); | 762 | memcpy (&dcsn[1], join_resp, join_resp_size); |
@@ -1045,7 +1045,7 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slv) | |||
1045 | * | 1045 | * |
1046 | * @param chn | 1046 | * @param chn |
1047 | * Channel handle. | 1047 | * Channel handle. |
1048 | * @param slave_key | 1048 | * @param slave_pub_key |
1049 | * Identity of channel slave to add. | 1049 | * Identity of channel slave to add. |
1050 | * @param announced_at | 1050 | * @param announced_at |
1051 | * ID of the message that announced the membership change. | 1051 | * ID of the message that announced the membership change. |
@@ -1061,7 +1061,7 @@ GNUNET_PSYC_slave_get_channel (struct GNUNET_PSYC_Slave *slv) | |||
1061 | */ | 1061 | */ |
1062 | void | 1062 | void |
1063 | GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *chn, | 1063 | GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *chn, |
1064 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 1064 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, |
1065 | uint64_t announced_at, | 1065 | uint64_t announced_at, |
1066 | uint64_t effective_since, | 1066 | uint64_t effective_since, |
1067 | GNUNET_ResultCallback result_cb, | 1067 | GNUNET_ResultCallback result_cb, |
@@ -1070,7 +1070,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *chn, | |||
1070 | struct ChannelMembershipStoreRequest *req = GNUNET_malloc (sizeof (*req)); | 1070 | struct ChannelMembershipStoreRequest *req = GNUNET_malloc (sizeof (*req)); |
1071 | req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE); | 1071 | req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE); |
1072 | req->header.size = htons (sizeof (*req)); | 1072 | req->header.size = htons (sizeof (*req)); |
1073 | req->slave_key = *slave_key; | 1073 | req->slave_pub_key = *slave_pub_key; |
1074 | req->announced_at = GNUNET_htonll (announced_at); | 1074 | req->announced_at = GNUNET_htonll (announced_at); |
1075 | req->effective_since = GNUNET_htonll (effective_since); | 1075 | req->effective_since = GNUNET_htonll (effective_since); |
1076 | req->did_join = GNUNET_YES; | 1076 | req->did_join = GNUNET_YES; |
@@ -1100,7 +1100,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *chn, | |||
1100 | * | 1100 | * |
1101 | * @param chn | 1101 | * @param chn |
1102 | * Channel handle. | 1102 | * Channel handle. |
1103 | * @param slave_key | 1103 | * @param slave_pub_key |
1104 | * Identity of channel slave to remove. | 1104 | * Identity of channel slave to remove. |
1105 | * @param announced_at | 1105 | * @param announced_at |
1106 | * ID of the message that announced the membership change. | 1106 | * ID of the message that announced the membership change. |
@@ -1114,7 +1114,7 @@ GNUNET_PSYC_channel_slave_add (struct GNUNET_PSYC_Channel *chn, | |||
1114 | */ | 1114 | */ |
1115 | void | 1115 | void |
1116 | GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *chn, | 1116 | GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *chn, |
1117 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_key, | 1117 | const struct GNUNET_CRYPTO_EcdsaPublicKey *slave_pub_key, |
1118 | uint64_t announced_at, | 1118 | uint64_t announced_at, |
1119 | GNUNET_ResultCallback result_cb, | 1119 | GNUNET_ResultCallback result_cb, |
1120 | void *cls) | 1120 | void *cls) |
@@ -1122,7 +1122,7 @@ GNUNET_PSYC_channel_slave_remove (struct GNUNET_PSYC_Channel *chn, | |||
1122 | struct ChannelMembershipStoreRequest *req = GNUNET_malloc (sizeof (*req)); | 1122 | struct ChannelMembershipStoreRequest *req = GNUNET_malloc (sizeof (*req)); |
1123 | req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE); | 1123 | req->header.type = htons (GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_MEMBERSHIP_STORE); |
1124 | req->header.size = htons (sizeof (*req)); | 1124 | req->header.size = htons (sizeof (*req)); |
1125 | req->slave_key = *slave_key; | 1125 | req->slave_pub_key = *slave_pub_key; |
1126 | req->announced_at = GNUNET_htonll (announced_at); | 1126 | req->announced_at = GNUNET_htonll (announced_at); |
1127 | req->did_join = GNUNET_NO; | 1127 | req->did_join = GNUNET_NO; |
1128 | req->op_id = GNUNET_htonll (GNUNET_CLIENT_MANAGER_op_add (chn->client, | 1128 | req->op_id = GNUNET_htonll (GNUNET_CLIENT_MANAGER_op_add (chn->client, |