diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.h b/src/cadet/gnunet-service-cadet_connection.h index b05c3b72c..ed0e909fb 100644 --- a/src/cadet/gnunet-service-cadet_connection.h +++ b/src/cadet/gnunet-service-cadet_connection.h | |||
@@ -183,6 +183,32 @@ GCC_handle_kx_auth (struct CadetConnection *cc, | |||
183 | const struct | 183 | const struct |
184 | GNUNET_CADET_TunnelKeyExchangeAuthMessage *msg); | 184 | GNUNET_CADET_TunnelKeyExchangeAuthMessage *msg); |
185 | 185 | ||
186 | /** | ||
187 | * Purpose for the signature of a monotime. | ||
188 | */ | ||
189 | struct CadetConnectionCreatePS | ||
190 | { | ||
191 | |||
192 | /** | ||
193 | * Purpose is #GNUNET_SIGNATURE_PURPOSE_CADET_CONNECTION_INITIATOR | ||
194 | */ | ||
195 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
196 | |||
197 | /** | ||
198 | * Time at the initiator when generating the signature. | ||
199 | * | ||
200 | * Note that the receiver MUST IGNORE the absolute time, and only interpret | ||
201 | * the value as a mononic time and reject "older" values than the last one | ||
202 | * observed. This is necessary as we do not want to require synchronized | ||
203 | * clocks and may not have a bidirectional communication channel. | ||
204 | * | ||
205 | * Even with this, there is no real guarantee against replay achieved here, | ||
206 | * unless the latest timestamp is persisted. Persistence should be | ||
207 | * provided via PEERSTORE if possible. | ||
208 | */ | ||
209 | struct GNUNET_TIME_AbsoluteNBO monotonic_time; | ||
210 | |||
211 | }; | ||
186 | 212 | ||
187 | /** | 213 | /** |
188 | * Performance metrics for a connection. | 214 | * Performance metrics for a connection. |