diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.h | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.h b/src/cadet/gnunet-service-cadet_connection.h index 18f33ce7c..1c3160dfd 100644 --- a/src/cadet/gnunet-service-cadet_connection.h +++ b/src/cadet/gnunet-service-cadet_connection.h | |||
@@ -125,7 +125,7 @@ typedef void | |||
125 | */ | 125 | */ |
126 | void | 126 | void |
127 | GCC_handle_create (struct CadetPeer *peer, | 127 | GCC_handle_create (struct CadetPeer *peer, |
128 | const struct GNUNET_CADET_ConnectionCreate *msg); | 128 | const struct GNUNET_CADET_ConnectionCreateMessage *msg); |
129 | 129 | ||
130 | 130 | ||
131 | /** | 131 | /** |
@@ -136,7 +136,7 @@ GCC_handle_create (struct CadetPeer *peer, | |||
136 | */ | 136 | */ |
137 | void | 137 | void |
138 | GCC_handle_confirm (struct CadetPeer *peer, | 138 | GCC_handle_confirm (struct CadetPeer *peer, |
139 | const struct GNUNET_CADET_ConnectionACK *msg); | 139 | const struct GNUNET_CADET_ConnectionCreateMessageAckMessage *msg); |
140 | 140 | ||
141 | 141 | ||
142 | /** | 142 | /** |
@@ -147,7 +147,7 @@ GCC_handle_confirm (struct CadetPeer *peer, | |||
147 | */ | 147 | */ |
148 | void | 148 | void |
149 | GCC_handle_broken (struct CadetPeer *peer, | 149 | GCC_handle_broken (struct CadetPeer *peer, |
150 | const struct GNUNET_CADET_ConnectionBroken *msg); | 150 | const struct GNUNET_CADET_ConnectionBrokenMessage *msg); |
151 | 151 | ||
152 | /** | 152 | /** |
153 | * Handler for notifications of destroyed connections. | 153 | * Handler for notifications of destroyed connections. |
@@ -157,7 +157,7 @@ GCC_handle_broken (struct CadetPeer *peer, | |||
157 | */ | 157 | */ |
158 | void | 158 | void |
159 | GCC_handle_destroy (struct CadetPeer *peer, | 159 | GCC_handle_destroy (struct CadetPeer *peer, |
160 | const struct GNUNET_CADET_ConnectionDestroy *msg); | 160 | const struct GNUNET_CADET_ConnectionDestroyMessage *msg); |
161 | 161 | ||
162 | /** | 162 | /** |
163 | * Handler for cadet network traffic hop-by-hop acks. | 163 | * Handler for cadet network traffic hop-by-hop acks. |
@@ -167,7 +167,7 @@ GCC_handle_destroy (struct CadetPeer *peer, | |||
167 | */ | 167 | */ |
168 | void | 168 | void |
169 | GCC_handle_ack (struct CadetPeer *peer, | 169 | GCC_handle_ack (struct CadetPeer *peer, |
170 | const struct GNUNET_CADET_ACK *msg); | 170 | const struct GNUNET_CADET_ConnectionEncryptedAckMessage *msg); |
171 | 171 | ||
172 | /** | 172 | /** |
173 | * Handler for cadet network traffic hop-by-hop data counter polls. | 173 | * Handler for cadet network traffic hop-by-hop data counter polls. |
@@ -177,7 +177,7 @@ GCC_handle_ack (struct CadetPeer *peer, | |||
177 | */ | 177 | */ |
178 | void | 178 | void |
179 | GCC_handle_poll (struct CadetPeer *peer, | 179 | GCC_handle_poll (struct CadetPeer *peer, |
180 | const struct GNUNET_CADET_Poll *msg); | 180 | const struct GNUNET_CADET_ConnectionHopByHopPollMessage *msg); |
181 | 181 | ||
182 | /** | 182 | /** |
183 | * Handler for key exchange traffic (Axolotl KX). | 183 | * Handler for key exchange traffic (Axolotl KX). |
@@ -187,7 +187,7 @@ GCC_handle_poll (struct CadetPeer *peer, | |||
187 | */ | 187 | */ |
188 | void | 188 | void |
189 | GCC_handle_kx (struct CadetPeer *peer, | 189 | GCC_handle_kx (struct CadetPeer *peer, |
190 | const struct GNUNET_CADET_KX *msg); | 190 | const struct GNUNET_CADET_TunnelKeyExchangeMessage *msg); |
191 | 191 | ||
192 | /** | 192 | /** |
193 | * Handler for encrypted cadet network traffic (channel mgmt, data). | 193 | * Handler for encrypted cadet network traffic (channel mgmt, data). |
@@ -197,7 +197,7 @@ GCC_handle_kx (struct CadetPeer *peer, | |||
197 | */ | 197 | */ |
198 | void | 198 | void |
199 | GCC_handle_encrypted (struct CadetPeer *peer, | 199 | GCC_handle_encrypted (struct CadetPeer *peer, |
200 | const struct GNUNET_CADET_Encrypted *msg); | 200 | const struct GNUNET_CADET_TunnelEncryptedMessage *msg); |
201 | 201 | ||
202 | /** | 202 | /** |
203 | * Core handler for axolotl key exchange traffic. | 203 | * Core handler for axolotl key exchange traffic. |
@@ -277,7 +277,7 @@ GCC_shutdown (void); | |||
277 | * NULL in case of error: own id not in path, wrong neighbors, ... | 277 | * NULL in case of error: own id not in path, wrong neighbors, ... |
278 | */ | 278 | */ |
279 | struct CadetConnection * | 279 | struct CadetConnection * |
280 | GCC_new (const struct GNUNET_CADET_Hash *cid, | 280 | GCC_new (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid, |
281 | struct CadetTunnel *t, | 281 | struct CadetTunnel *t, |
282 | struct CadetPeerPath *path, | 282 | struct CadetPeerPath *path, |
283 | unsigned int own_pos); | 283 | unsigned int own_pos); |
@@ -300,22 +300,11 @@ GCC_destroy (struct CadetConnection *c); | |||
300 | * | 300 | * |
301 | * @return ID of the connection. | 301 | * @return ID of the connection. |
302 | */ | 302 | */ |
303 | const struct GNUNET_CADET_Hash * | 303 | const struct GNUNET_CADET_ConnectionTunnelIdentifier * |
304 | GCC_get_id (const struct CadetConnection *c); | 304 | GCC_get_id (const struct CadetConnection *c); |
305 | 305 | ||
306 | 306 | ||
307 | /** | 307 | /** |
308 | * Get a hash for the connection ID. | ||
309 | * | ||
310 | * @param c Connection to get the hash. | ||
311 | * | ||
312 | * @return Hash expanded from the ID of the connection. | ||
313 | */ | ||
314 | const struct GNUNET_HashCode * | ||
315 | GCC_get_h (const struct CadetConnection *c); | ||
316 | |||
317 | |||
318 | /** | ||
319 | * Get the connection path. | 308 | * Get the connection path. |
320 | * | 309 | * |
321 | * @param c Connection to get the path from. | 310 | * @param c Connection to get the path from. |
@@ -383,10 +372,9 @@ GCC_get_qn (struct CadetConnection *c, int fwd); | |||
383 | * | 372 | * |
384 | * @param c Connection. | 373 | * @param c Connection. |
385 | * @param fwd Is query about FWD traffic? | 374 | * @param fwd Is query about FWD traffic? |
386 | * | ||
387 | * @return Next PID to use. | 375 | * @return Next PID to use. |
388 | */ | 376 | */ |
389 | uint32_t | 377 | struct CadetEncryptedMessageIdentifier |
390 | GCC_get_pid (struct CadetConnection *c, int fwd); | 378 | GCC_get_pid (struct CadetConnection *c, int fwd); |
391 | 379 | ||
392 | /** | 380 | /** |
@@ -508,7 +496,8 @@ GCC_cancel (struct CadetConnectionQueue *q); | |||
508 | */ | 496 | */ |
509 | struct CadetConnectionQueue * | 497 | struct CadetConnectionQueue * |
510 | GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | 498 | GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, |
511 | uint16_t payload_type, uint32_t payload_id, | 499 | uint16_t payload_type, |
500 | struct CadetEncryptedMessageIdentifier payload_id, | ||
512 | struct CadetConnection *c, int fwd, int force, | 501 | struct CadetConnection *c, int fwd, int force, |
513 | GCC_sent cont, void *cont_cls); | 502 | GCC_sent cont, void *cont_cls); |
514 | 503 | ||