diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:00 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:00 +0000 |
commit | d00ca8d9b73b5c74b7659a2d254012c7e526280a (patch) | |
tree | 6320d589c5d3a15a64a584a96229608b049a8801 /src/cadet/gnunet-service-cadet_connection.h | |
parent | 728f4f354734161d5b90704c8468258100f46917 (diff) | |
download | gnunet-d00ca8d9b73b5c74b7659a2d254012c7e526280a.tar.gz gnunet-d00ca8d9b73b5c74b7659a2d254012c7e526280a.zip |
- added basic axolotl support
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.h | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.h b/src/cadet/gnunet-service-cadet_connection.h index 0ee9c67a5..e6604f392 100644 --- a/src/cadet/gnunet-service-cadet_connection.h +++ b/src/cadet/gnunet-service-cadet_connection.h | |||
@@ -165,7 +165,7 @@ GCC_handle_destroy (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
165 | const struct GNUNET_MessageHeader *message); | 165 | const struct GNUNET_MessageHeader *message); |
166 | 166 | ||
167 | /** | 167 | /** |
168 | * Core handler for encrypted cadet network traffic (channel mgmt, data). | 168 | * Core handler for key exchange traffic (ephemeral key, ping, pong). |
169 | * | 169 | * |
170 | * @param cls Closure (unused). | 170 | * @param cls Closure (unused). |
171 | * @param message Message received. | 171 | * @param message Message received. |
@@ -175,11 +175,11 @@ GCC_handle_destroy (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
175 | * GNUNET_SYSERR to close it (signal serious error) | 175 | * GNUNET_SYSERR to close it (signal serious error) |
176 | */ | 176 | */ |
177 | int | 177 | int |
178 | GCC_handle_encrypted (void *cls, const struct GNUNET_PeerIdentity *peer, | 178 | GCC_handle_kx (void *cls, const struct GNUNET_PeerIdentity *peer, |
179 | const struct GNUNET_MessageHeader *message); | 179 | const struct GNUNET_MessageHeader *message); |
180 | 180 | ||
181 | /** | 181 | /** |
182 | * Core handler for key exchange traffic (ephemeral key, ping, pong). | 182 | * Core handler for encrypted cadet network traffic (channel mgmt, data). |
183 | * | 183 | * |
184 | * @param cls Closure (unused). | 184 | * @param cls Closure (unused). |
185 | * @param message Message received. | 185 | * @param message Message received. |
@@ -189,8 +189,34 @@ GCC_handle_encrypted (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
189 | * GNUNET_SYSERR to close it (signal serious error) | 189 | * GNUNET_SYSERR to close it (signal serious error) |
190 | */ | 190 | */ |
191 | int | 191 | int |
192 | GCC_handle_kx (void *cls, const struct GNUNET_PeerIdentity *peer, | 192 | GCC_handle_encrypted (void *cls, const struct GNUNET_PeerIdentity *peer, |
193 | const struct GNUNET_MessageHeader *message); | 193 | const struct GNUNET_MessageHeader *message); |
194 | |||
195 | /** | ||
196 | * Core handler for axolotl key exchange traffic. | ||
197 | * | ||
198 | * @param cls Closure (unused). | ||
199 | * @param message Message received. | ||
200 | * @param peer Neighbor who sent the message. | ||
201 | * | ||
202 | * @return GNUNET_OK, to keep the connection open. | ||
203 | */ | ||
204 | int | ||
205 | GCC_handle_ax_kx (void *cls, const struct GNUNET_PeerIdentity *peer, | ||
206 | const struct GNUNET_MessageHeader *message); | ||
207 | |||
208 | /** | ||
209 | * Core handler for axolotl encrypted cadet network traffic. | ||
210 | * | ||
211 | * @param cls Closure (unused). | ||
212 | * @param message Message received. | ||
213 | * @param peer Neighbor who sent the message. | ||
214 | * | ||
215 | * @return GNUNET_OK, to keep the connection open. | ||
216 | */ | ||
217 | int | ||
218 | GCC_handle_ax (void *cls, const struct GNUNET_PeerIdentity *peer, | ||
219 | struct GNUNET_MessageHeader *message); | ||
194 | 220 | ||
195 | /** | 221 | /** |
196 | * Core handler for cadet network traffic point-to-point acks. | 222 | * Core handler for cadet network traffic point-to-point acks. |