summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-05-29 19:00:48 -0400
committerjoe <joe@jerkface.net>2018-05-29 19:00:48 -0400
commit037981b15324ca3c1d4f560b928228be43f0729c (patch)
tree599fbe8865550e34c83a7e2d753101f71357af5c /examples/dhtd.hs
parent5902c68ed88b5bae956753cf5fd88f236545e019 (diff)
Obtain selected secret-key from STM state.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 8fd707cd..6b8954d1 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -788,6 +788,9 @@ clientSession s@Session{..} sock cnum h = do
788 goTarget 788 goTarget
789 $ dhtParseId nidstr 789 $ dhtParseId nidstr
790 goTarget nid = do 790 goTarget nid = do
791 msec <- atomically $ do
792 ks <- map swap <$> readKeys userkeys (accounts roster)
793 return $ Data.List.lookup mypubkey ks
791 hPutClient h "TODO: convert selected public key to private, call netCrypto.." 794 hPutClient h "TODO: convert selected public key to private, call netCrypto.."
792 goParse 795 goParse
793 ("g", s) | Just DHT{..} <- Map.lookup netname dhts 796 ("g", s) | Just DHT{..} <- Map.lookup netname dhts