add CredPair cache

Note that this does not yet use SecureMem. It would probably make sense for
the Password part of a CredPair to use SecureMem, and making that change
is better than passing in a String and having it converted to SecureMem in
this code.
This commit is contained in:
Joey Hess 2014-04-29 18:01:14 -04:00
parent 89bd493e33
commit ac98853f05
4 changed files with 77 additions and 1 deletions

View file

@ -9,4 +9,6 @@ module Types.Creds where
type Creds = String -- can be any data that contains credentials
type CredPair = (String, String) -- login, password
type CredPair = (Login, Password)
type Login = String
type Password = String -- todo: use securemem