diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kiki.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Kiki.hs b/lib/Kiki.hs index 02ac397..870bbba 100644 --- a/lib/Kiki.hs +++ b/lib/Kiki.hs | |||
@@ -580,8 +580,8 @@ sshKeyToHostname sshkey = do | |||
580 | case rsaKeyFromPacket sshkey of | 580 | case rsaKeyFromPacket sshkey of |
581 | Just (RSAKey (MPI n) (MPI e)) -> do | 581 | Just (RSAKey (MPI n) (MPI e)) -> do |
582 | let blob = SSH.sshrsa e n | 582 | let blob = SSH.sshrsa e n |
583 | sha1 = C.hashlazy blob :: C.Digest C.SHA1 | 583 | sum = C.hashlazy blob :: C.Digest C.SHA256 |
584 | Char8.fromStrict (convertToBase Base16 sha1) <> ".ssh-rsa.cryptonomic.net" | 584 | Char8.fromStrict (convertToBase Base16 sum) <> ".ssh-rsa.cryptonomic.net" |
585 | Nothing -> "" | 585 | Nothing -> "" |
586 | 586 | ||
587 | peerConnectionName :: Peer -> Char8.ByteString | 587 | peerConnectionName :: Peer -> Char8.ByteString |