diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-29 18:01:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-29 18:08:02 -0400 |
commit | e7bb1e85fbfa7b691ed4248cc0359a87cb2fb71e (patch) | |
tree | ae6519ac6c37251d6de3e973ee4e160effcb1ee2 /Types | |
parent | bb925fe8111b5e807942d1fdd6dc079e4953e905 (diff) |
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.
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Creds.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Types/Creds.hs b/Types/Creds.hs index cb312f66d..c16e530b1 100644 --- a/Types/Creds.hs +++ b/Types/Creds.hs @@ -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 |