diff options
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index cca8b899..bffb4280 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -85,6 +85,7 @@ type SessionID = Word64 | |||
85 | 85 | ||
86 | data NetCryptoSession = NCrypto | 86 | data NetCryptoSession = NCrypto |
87 | { ncState :: TVar NetCryptoSessionStatus | 87 | { ncState :: TVar NetCryptoSessionStatus |
88 | , ncMyPublicKey :: PublicKey | ||
88 | , ncSessionId :: SessionID | 89 | , ncSessionId :: SessionID |
89 | , ncTheirPublicKey :: PublicKey -- Tox id w/o nospam | 90 | , ncTheirPublicKey :: PublicKey -- Tox id w/o nospam |
90 | , ncTheirBaseNonce :: TVar Nonce24 -- base nonce + packet number | 91 | , ncTheirBaseNonce :: TVar Nonce24 -- base nonce + packet number |
@@ -339,6 +340,7 @@ freshCryptoSession sessions | |||
339 | pktoq <- atomically $ PQ.newOutGoing pktq ncToWire toWireIO 0 (outboundQueueCapacity sessions) 0 | 340 | pktoq <- atomically $ PQ.newOutGoing pktq ncToWire toWireIO 0 (outboundQueueCapacity sessions) 0 |
340 | let netCryptoSession0 = | 341 | let netCryptoSession0 = |
341 | NCrypto { ncState = ncState0 | 342 | NCrypto { ncState = ncState0 |
343 | , ncMyPublicKey = toPublic key | ||
342 | , ncSessionId = sessionId | 344 | , ncSessionId = sessionId |
343 | , ncTheirPublicKey = remotePublicKey | 345 | , ncTheirPublicKey = remotePublicKey |
344 | , ncTheirBaseNonce = ncTheirBaseNonce0 | 346 | , ncTheirBaseNonce = ncTheirBaseNonce0 |