diff options
author | joe <joe@jerkface.net> | 2017-07-09 21:54:39 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-07-09 21:54:39 -0400 |
commit | c565ec07f37006a5abb7b3bc5a1b08013fbeb5d7 (patch) | |
tree | 6501a1750f3f460c3bc37d6e18c62e77c7580011 /src/Network/DatagramServer.hs | |
parent | 7808d0e6c96ccdf0431619fa1a688612b8a1f921 (diff) |
Added MAC authentication (hash after encrypt).
Diffstat (limited to 'src/Network/DatagramServer.hs')
-rw-r--r-- | src/Network/DatagramServer.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Network/DatagramServer.hs b/src/Network/DatagramServer.hs index 8c4ec928..bcf8b9af 100644 --- a/src/Network/DatagramServer.hs +++ b/src/Network/DatagramServer.hs | |||
@@ -569,8 +569,10 @@ listener mgr@Manager{..} hs p = do | |||
569 | (bs, addr) <- liftIO $ do | 569 | (bs, addr) <- liftIO $ do |
570 | handle exceptions $ BS.recvFrom sock (optMaxMsgSize options) | 570 | handle exceptions $ BS.recvFrom sock (optMaxMsgSize options) |
571 | case parsePacket (msgProxy p) bs >>= \r -> (,) r <$> decodeHeaders ctx r of | 571 | case parsePacket (msgProxy p) bs >>= \r -> (,) r <$> decodeHeaders ctx r of |
572 | Left e -> -- XXX: Send parse failure message? | 572 | Left e -> do |
573 | -- XXX: Send parse failure message? | ||
573 | -- liftIO \$ sendMessage sock addr $ encodeHeaders ctx (unknownMessage e) | 574 | -- liftIO \$ sendMessage sock addr $ encodeHeaders ctx (unknownMessage e) |
575 | logMsg 'W' "listener" (T.pack $ show e) | ||
574 | return () -- Without transaction id, error message isn't very useful. | 576 | return () -- Without transaction id, error message isn't very useful. |
575 | Right (raw,m) -> | 577 | Right (raw,m) -> |
576 | case envelopeClass m of | 578 | case envelopeClass m of |