diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-17 17:18:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-17 17:18:53 +0100 |
commit | f9b01d9c8eeac932db6357426f8a70bf525a4e07 (patch) | |
tree | f3023b6cfe959a38ed5d9ab131fc8e1c62d136ea /src/include/gnunet_cadet_service.h | |
parent | 100e16ba31dac7138413bda3389d30b3575a8b8e (diff) | |
download | gnunet-f9b01d9c8eeac932db6357426f8a70bf525a4e07.tar.gz gnunet-f9b01d9c8eeac932db6357426f8a70bf525a4e07.zip |
use new shortmap to simplify CADET logic a bit
Diffstat (limited to 'src/include/gnunet_cadet_service.h')
-rw-r--r-- | src/include/gnunet_cadet_service.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/include/gnunet_cadet_service.h b/src/include/gnunet_cadet_service.h index c6b683370..c17cb983c 100644 --- a/src/include/gnunet_cadet_service.h +++ b/src/include/gnunet_cadet_service.h | |||
@@ -67,15 +67,6 @@ struct GNUNET_CADET_Channel; | |||
67 | */ | 67 | */ |
68 | struct GNUNET_CADET_Port; | 68 | struct GNUNET_CADET_Port; |
69 | 69 | ||
70 | /** | ||
71 | * Hash to be used in Cadet communication. Only 256 bits needed, | ||
72 | * instead of the 512 from `struct GNUNET_HashCode`. | ||
73 | */ | ||
74 | struct GNUNET_CADET_Hash | ||
75 | { | ||
76 | unsigned char bits[256 / 8]; | ||
77 | }; | ||
78 | |||
79 | 70 | ||
80 | /** | 71 | /** |
81 | * Channel options. Second line indicates filed in the | 72 | * Channel options. Second line indicates filed in the |
@@ -255,8 +246,7 @@ GNUNET_CADET_disconnect (struct GNUNET_CADET_Handle *handle); | |||
255 | struct GNUNET_CADET_Port * | 246 | struct GNUNET_CADET_Port * |
256 | GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h, | 247 | GNUNET_CADET_open_port (struct GNUNET_CADET_Handle *h, |
257 | const struct GNUNET_HashCode *port, | 248 | const struct GNUNET_HashCode *port, |
258 | GNUNET_CADET_InboundChannelNotificationHandler | 249 | GNUNET_CADET_InboundChannelNotificationHandler new_channel, |
259 | new_channel, | ||
260 | void *new_channel_cls); | 250 | void *new_channel_cls); |
261 | 251 | ||
262 | /** | 252 | /** |
@@ -496,7 +486,7 @@ typedef void | |||
496 | */ | 486 | */ |
497 | struct GNUNET_CADET_ConnectionTunnelIdentifier | 487 | struct GNUNET_CADET_ConnectionTunnelIdentifier |
498 | { | 488 | { |
499 | struct GNUNET_CADET_Hash connection_of_tunnel; | 489 | struct GNUNET_ShortHashCode connection_of_tunnel; |
500 | }; | 490 | }; |
501 | 491 | ||
502 | 492 | ||