
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.
14 lines
316 B
Haskell
14 lines
316 B
Haskell
{- credentials
|
|
-
|
|
- Copyright 2014 Joey Hess <joey@kitenet.net>
|
|
-
|
|
- Licensed under the GNU GPL version 3 or higher.
|
|
-}
|
|
|
|
module Types.Creds where
|
|
|
|
type Creds = String -- can be any data that contains credentials
|
|
|
|
type CredPair = (Login, Password)
|
|
type Login = String
|
|
type Password = String -- todo: use securemem
|