I noticed that withSSH2User doesn't error when known_hosts doesn't have the hosts key. I tested in GHCi and checkHost returned FAILURE instead of NOTFOUND or MATCH. I tested with a host which is in known_hosts and a host which was not in known_hosts. I would expect checkHost to return NOTFOUND and MATCH instead of FAILURE for the two cases.
I am running Arch Linux and version 1.8.2 of libssh2 and version 0.2.0.7 of libssh2-hs library.
Is the intention for withSSH2User to only fail if MISMATCH is found? I would also expect NOTFOUND to cause an error too.
I noticed that
withSSH2Userdoesn't error whenknown_hostsdoesn't have the hosts key. I tested in GHCi andcheckHostreturnedFAILUREinstead ofNOTFOUNDorMATCH. I tested with a host which is inknown_hostsand a host which was not inknown_hosts. I would expectcheckHostto returnNOTFOUNDandMATCHinstead ofFAILUREfor the two cases.I am running Arch Linux and version
1.8.2of libssh2 and version0.2.0.7of libssh2-hs library.Is the intention for
withSSH2Userto only fail ifMISMATCHis found? I would also expectNOTFOUNDto cause an error too.