diff options
Diffstat (limited to 'src/Network/Tox/Crypto/Transport.hs')
-rw-r--r-- | src/Network/Tox/Crypto/Transport.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Transport.hs b/src/Network/Tox/Crypto/Transport.hs index 9220fd1e..2a0633f0 100644 --- a/src/Network/Tox/Crypto/Transport.hs +++ b/src/Network/Tox/Crypto/Transport.hs | |||
@@ -154,8 +154,9 @@ data HandshakeData = HandshakeData | |||
154 | -- This prevents a replay attack where a new cookie is inserted into | 154 | -- This prevents a replay attack where a new cookie is inserted into |
155 | -- an old valid handshake packet | 155 | -- an old valid handshake packet |
156 | , otherCookie :: Cookie Encrypted | 156 | , otherCookie :: Cookie Encrypted |
157 | -- ^ Other Cookie (used by the repient to respond to the handshake packet) | 157 | -- ^ Other Cookie (used by the recipient to respond to the handshake packet) |
158 | } | 158 | } |
159 | deriving (Eq,Ord,Show) | ||
159 | 160 | ||
160 | instance Sized HandshakeData where | 161 | instance Sized HandshakeData where |
161 | size = contramap baseNonce size | 162 | size = contramap baseNonce size |