diff options
author | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:37:10 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2020-06-05 16:37:10 +0200 |
commit | d22eacb13eb676b5c096b47c72a3fdbdb332d5a5 (patch) | |
tree | 9be948a80a6be2c56080be8826cba747de9dce57 /src/cadet/cadet_protocol.h | |
parent | 59f616a3c5d8a6873de0090d0db1413c8b9c411d (diff) | |
download | gnunet-d22eacb13eb676b5c096b47c72a3fdbdb332d5a5.tar.gz gnunet-d22eacb13eb676b5c096b47c72a3fdbdb332d5a5.zip |
Fixed bug #5822 by adding a monotonic time to the connection create message of a peer that want to start a KX, and the corresponding test #5823. Credits to dvn, lurchi and xrs for helpful discussions and coding.
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index e3417f8c4..08298e224 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -85,6 +85,24 @@ struct GNUNET_CADET_ConnectionCreateMessage | |||
85 | uint32_t options GNUNET_PACKED; | 85 | uint32_t options GNUNET_PACKED; |
86 | 86 | ||
87 | /** | 87 | /** |
88 | * This flag indicates the peer sending the connection create | ||
89 | * meassage likes to trigger a KX handshake. | ||
90 | */ | ||
91 | int has_monotime; | ||
92 | |||
93 | /** | ||
94 | * This monotonic time is set, if a peer likes to trigger a KX, but is not | ||
95 | * the peer that should start the KX. (xrs,t3ss) | ||
96 | */ | ||
97 | struct GNUNET_TIME_AbsoluteNBO monotime; | ||
98 | |||
99 | /** | ||
100 | * We sign the monotime. The receiving peer can check the signature, to verify | ||
101 | * the sending peer. | ||
102 | */ | ||
103 | struct GNUNET_CRYPTO_EddsaSignature monotime_sig; | ||
104 | |||
105 | /** | ||
88 | * ID of the connection | 106 | * ID of the connection |
89 | */ | 107 | */ |
90 | struct GNUNET_CADET_ConnectionTunnelIdentifier cid; | 108 | struct GNUNET_CADET_ConnectionTunnelIdentifier cid; |