diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-11 01:00:42 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-11 01:00:42 -0400 |
commit | 9ace0afdfed35ffcd344221e17b6eca8eeb56372 (patch) | |
tree | cac97792afb7cac864dee579f459fda9debd122b /Assistant/Pairing.hs | |
parent | 675621d903aeb9928955483a58c2e5d463d31a35 (diff) |
handle stale PairAcks
Diffstat (limited to 'Assistant/Pairing.hs')
-rw-r--r-- | Assistant/Pairing.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Assistant/Pairing.hs b/Assistant/Pairing.hs index 4aade5465..8031a7213 100644 --- a/Assistant/Pairing.hs +++ b/Assistant/Pairing.hs @@ -28,6 +28,9 @@ data PairStage newtype PairMsg = PairMsg (Verifiable (PairStage, PairData, SomeAddr)) deriving (Eq, Read, Show) +verifiedPairMsg :: PairMsg -> PairingInProgress -> Bool +verifiedPairMsg (PairMsg m) pip = verify m $ inProgressSecret pip + fromPairMsg :: PairMsg -> (Verifiable (PairStage, PairData, SomeAddr)) fromPairMsg (PairMsg m) = m |