diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnels.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnels.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnels.h b/src/cadet/gnunet-service-cadet_tunnels.h index ef07badea..147f2e56f 100644 --- a/src/cadet/gnunet-service-cadet_tunnels.h +++ b/src/cadet/gnunet-service-cadet_tunnels.h | |||
@@ -80,6 +80,14 @@ enum CadetTunnelEState | |||
80 | CADET_TUNNEL_KEY_OK | 80 | CADET_TUNNEL_KEY_OK |
81 | }; | 81 | }; |
82 | 82 | ||
83 | /** | ||
84 | * Am I Alice or Betty (some call her Bob), or talking to myself? | ||
85 | * | ||
86 | * @param other the other peer | ||
87 | * @return #GNUNET_YES for Alice, #GNUNET_NO for Betty, #GNUNET_SYSERR if talking to myself | ||
88 | */ | ||
89 | int | ||
90 | GCT_alice_or_betty (const struct GNUNET_PeerIdentity *other); | ||
83 | 91 | ||
84 | /** | 92 | /** |
85 | * Get the static string for the peer this tunnel is directed. | 93 | * Get the static string for the peer this tunnel is directed. |
@@ -226,7 +234,8 @@ struct CadetTunnelQueueEntry * | |||
226 | GCT_send (struct CadetTunnel *t, | 234 | GCT_send (struct CadetTunnel *t, |
227 | const struct GNUNET_MessageHeader *message, | 235 | const struct GNUNET_MessageHeader *message, |
228 | GCT_SendContinuation cont, | 236 | GCT_SendContinuation cont, |
229 | void *cont_cls); | 237 | void *cont_cls, |
238 | struct GNUNET_CADET_ChannelTunnelNumber *ctn); | ||
230 | 239 | ||
231 | 240 | ||
232 | /** | 241 | /** |
@@ -320,6 +329,16 @@ GCT_iterate_channels (struct CadetTunnel *t, | |||
320 | enum CadetTunnelEState | 329 | enum CadetTunnelEState |
321 | GCT_get_estate (struct CadetTunnel *t); | 330 | GCT_get_estate (struct CadetTunnel *t); |
322 | 331 | ||
332 | /** | ||
333 | * Change the tunnel encryption state. | ||
334 | * If the encryption state changes to OK, stop the rekey task. | ||
335 | * | ||
336 | * @param t Tunnel whose encryption state to change, or NULL. | ||
337 | * @param state New encryption state. | ||
338 | */ | ||
339 | void | ||
340 | GCT_change_estate (struct CadetTunnel *t, | ||
341 | enum CadetTunnelEState state); | ||
323 | 342 | ||
324 | /** | 343 | /** |
325 | * Handle KX message. | 344 | * Handle KX message. |