aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_connection.h
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2020-06-17 22:07:39 +0200
committerxrs <xrs@mail36.net>2020-06-17 22:07:39 +0200
commit49cf7a8e893eaf7682ac12c7d0ea5ca4a6d1a73d (patch)
tree71830c1751e291e45795958cad15e9dfa8239e1a /src/cadet/gnunet-service-cadet_connection.h
parentb9333fef25b57bdd7f556f5fb73f9abaef9bc5ef (diff)
parente500e9ec3678dfbb666d173854c134ac3858f8b1 (diff)
downloadgnunet-49cf7a8e893eaf7682ac12c7d0ea5ca4a6d1a73d.tar.gz
gnunet-49cf7a8e893eaf7682ac12c7d0ea5ca4a6d1a73d.zip
Merge branch 'master' into rewrite_of_cadet_test
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.h')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.h26
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 */
189struct 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.