diff options
author | joe <joe@jerkface.net> | 2018-05-31 00:56:14 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-05-31 00:56:14 -0400 |
commit | 9e91ad5c7d29c2e5702ca86c73f1f699e1c2714a (patch) | |
tree | c0813636efa272b008a70a970abcff45e554dbc6 /src/Network/Tox/DHT/Transport.hs | |
parent | f6ac09e60cb38c181b44c6bf51a3d58bdd75e7bc (diff) |
parseNetCrypto should peel id byte before deserializing the rest of the message.
Diffstat (limited to 'src/Network/Tox/DHT/Transport.hs')
-rw-r--r-- | src/Network/Tox/DHT/Transport.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Network/Tox/DHT/Transport.hs b/src/Network/Tox/DHT/Transport.hs index f7feea3b..59b22673 100644 --- a/src/Network/Tox/DHT/Transport.hs +++ b/src/Network/Tox/DHT/Transport.hs | |||
@@ -371,6 +371,7 @@ data CookieData = CookieData -- 16 (mac) | |||
371 | , longTermKey :: PublicKey -- 32 | 371 | , longTermKey :: PublicKey -- 32 |
372 | , dhtKey :: PublicKey -- + 32 | 372 | , dhtKey :: PublicKey -- + 32 |
373 | } -- = 88 bytes when encrypted. | 373 | } -- = 88 bytes when encrypted. |
374 | deriving Show | ||
374 | 375 | ||
375 | instance Sized CookieData where | 376 | instance Sized CookieData where |
376 | size = ConstSize 72 | 377 | size = ConstSize 72 |