From e7bb1e85fbfa7b691ed4248cc0359a87cb2fb71e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 29 Apr 2014 18:01:14 -0400 Subject: 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. --- Types/Creds.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Types') 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 -- cgit v1.2.3