diff options
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index 9b0abcc55..27247e942 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -53,7 +53,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
53 | struct GNUNET_CADET_ConnectionCreate | 53 | struct GNUNET_CADET_ConnectionCreate |
54 | { | 54 | { |
55 | /** | 55 | /** |
56 | * Type: GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE | 56 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE |
57 | * | 57 | * |
58 | * Size: sizeof (struct GNUNET_CADET_ConnectionCreate) + | 58 | * Size: sizeof (struct GNUNET_CADET_ConnectionCreate) + |
59 | * path_length * sizeof (struct GNUNET_PeerIdentity) | 59 | * path_length * sizeof (struct GNUNET_PeerIdentity) |
@@ -79,7 +79,7 @@ struct GNUNET_CADET_ConnectionCreate | |||
79 | struct GNUNET_CADET_ConnectionACK | 79 | struct GNUNET_CADET_ConnectionACK |
80 | { | 80 | { |
81 | /** | 81 | /** |
82 | * Type: GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK | 82 | * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK |
83 | */ | 83 | */ |
84 | struct GNUNET_MessageHeader header; | 84 | struct GNUNET_MessageHeader header; |
85 | 85 | ||
@@ -97,7 +97,7 @@ struct GNUNET_CADET_ConnectionACK | |||
97 | struct GNUNET_CADET_KX | 97 | struct GNUNET_CADET_KX |
98 | { | 98 | { |
99 | /** | 99 | /** |
100 | * Type: GNUNET_MESSAGE_TYPE_CADET_KX. | 100 | * Type: #GNUNET_MESSAGE_TYPE_CADET_KX. |
101 | */ | 101 | */ |
102 | struct GNUNET_MessageHeader header; | 102 | struct GNUNET_MessageHeader header; |
103 | 103 | ||
@@ -110,6 +110,22 @@ struct GNUNET_CADET_KX | |||
110 | }; | 110 | }; |
111 | 111 | ||
112 | 112 | ||
113 | /** | ||
114 | * Flags to be used in GNUNET_CADET_AX_KX. | ||
115 | */ | ||
116 | enum GNUNET_CADET_AX_KX_Flags { | ||
117 | |||
118 | /** | ||
119 | * Should the peer reply with its KX details? | ||
120 | */ | ||
121 | GNUNET_CADET_AX_KX_FLAG_NONE = 0, | ||
122 | |||
123 | /** | ||
124 | * The peer should reply with its KX details? | ||
125 | */ | ||
126 | GNUNET_CADET_AX_KX_FLAG_FORCE_REPLY = 1 | ||
127 | }; | ||
128 | |||
113 | 129 | ||
114 | /** | 130 | /** |
115 | * Message for encapsulation of a Key eXchange message in a connection. | 131 | * Message for encapsulation of a Key eXchange message in a connection. |
@@ -117,14 +133,15 @@ struct GNUNET_CADET_KX | |||
117 | struct GNUNET_CADET_AX_KX | 133 | struct GNUNET_CADET_AX_KX |
118 | { | 134 | { |
119 | /** | 135 | /** |
120 | * Type: GNUNET_MESSAGE_TYPE_CADET_AX_KX. | 136 | * Type: #GNUNET_MESSAGE_TYPE_CADET_AX_KX. |
121 | */ | 137 | */ |
122 | struct GNUNET_MessageHeader header; | 138 | struct GNUNET_MessageHeader header; |
123 | 139 | ||
124 | /** | 140 | /** |
125 | * Should the peer reply with its KX details? | 141 | * Flags for the key exchange in NBO, based on |
142 | * `enum GNUNET_CADET_AX_KX_Flags`. | ||
126 | */ | 143 | */ |
127 | uint32_t force_reply; | 144 | uint32_t flags GNUNET_PACKED; |
128 | 145 | ||
129 | /** | 146 | /** |
130 | * Sender's ephemeral public ECC key encoded in a | 147 | * Sender's ephemeral public ECC key encoded in a |