summaryrefslogtreecommitdiff
path: root/KeyRing.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-05-04 19:47:21 -0400
committerjoe <joe@jerkface.net>2014-05-04 19:47:21 -0400
commit2f31a27316faf3de5008fcb5f49316e5178827e6 (patch)
treec9714cdcfa4cc2db16aa468abe52c7c2f7685fcd /KeyRing.hs
parentace2d142a6824a1d73ebf8b602c495d8b91524fc (diff)
haddock updates
Diffstat (limited to 'KeyRing.hs')
-rw-r--r--KeyRing.hs31
1 files changed, 19 insertions, 12 deletions
diff --git a/KeyRing.hs b/KeyRing.hs
index a96d6a2..9d046b6 100644
--- a/KeyRing.hs
+++ b/KeyRing.hs
@@ -35,9 +35,8 @@ module KeyRing
35 , KeyRingOperation(..) 35 , KeyRingOperation(..)
36 , PassphraseSpec(..) 36 , PassphraseSpec(..)
37 , Transform(..) 37 , Transform(..)
38 , PacketUpdate(..) 38 -- , PacketUpdate(..)
39 , noManip 39 -- , guardAuthentic
40 , guardAuthentic
41 -- * Describing File Operations 40 -- * Describing File Operations
42 , StreamInfo(..) 41 , StreamInfo(..)
43 , Access(..) 42 , Access(..)
@@ -188,11 +187,20 @@ home = HomeDir
188 } 187 }
189 188
190data InputFile = HomeSec 189data InputFile = HomeSec
190 -- ^ A file named secring.gpg located in the home directory.
191 -- See 'opHome'.
191 | HomePub 192 | HomePub
193 -- ^ A file named pubring.gpg located in the home directory.
194 -- See 'opHome'.
192 | ArgFile FilePath 195 | ArgFile FilePath
196 -- ^ Contents will be read or written from the specified path.
193 | FileDesc Posix.Fd 197 | FileDesc Posix.Fd
198 -- ^ Contents will be read or written from the specified file
199 -- descriptor.
194 | Pipe Posix.Fd Posix.Fd 200 | Pipe Posix.Fd Posix.Fd
195 -- ^ Note: Don't use Pipe for wallet files. (TODO) 201 -- ^ Contents will be read from the first descriptor and updated
202 -- content will be writen to the second. Note: Don't use Pipe
203 -- for 'Wallet' files. (TODO: Wallet support)
196 deriving (Eq,Ord) 204 deriving (Eq,Ord)
197 205
198-- type UsageTag = String 206-- type UsageTag = String
@@ -250,24 +258,26 @@ data StreamInfo = StreamInfo { access :: Access
250 -- * 'KF_None' - The file's contents will not be shared. 258 -- * 'KF_None' - The file's contents will not be shared.
251 -- 259 --
252 -- * 'KF_Match' - The file's key will be shared with the specified owner 260 -- * 'KF_Match' - The file's key will be shared with the specified owner
253 -- key and usage tag. 261 -- key and usage tag. If 'fill' is also a 'KF_Match', then it must be
262 -- equal to this value; changing the usage or owner of a key is not
263 -- supported via the fill/spill mechanism.
254 -- 264 --
255 -- * otherwise - Unspecified. Do not use. 265 -- * otherwise - Unspecified. Do not use.
256 -- 266 --
257 -- 'WalletFile': 267 -- 'WalletFile':
258 -- 268 --
259 -- * The 'spill' setting is ignored and the file's contents are shared. 269 -- * The 'spill' setting is ignored and the file's contents are shared.
260 -- (TODO) 270 -- (TODO)
261 -- 271 --
262 -- 'Hosts': 272 -- 'Hosts':
263 -- 273 --
264 -- * The 'spill' setting is ignored and the file's contents are shared. 274 -- * The 'spill' setting is ignored and the file's contents are shared.
265 -- (TODO) 275 -- (TODO)
266 -- 276 --
267 , initializer :: Maybe String 277 , initializer :: Maybe String
268 -- ^ If 'typ' is 'PEMFile' and an 'initializer' string is set, then it is 278 -- ^ If 'typ' is 'PEMFile' and an 'initializer' string is set, then it is
269 -- interpretted as a shell command that may be used to create the key if 279 -- interpretted as a shell command that may be used to create the key if it
270 -- it does not exist. 280 -- does not exist.
271 , transforms :: [Transform] 281 , transforms :: [Transform]
272 -- ^ Ignored. TODO: The intention is that we may indicate per-file 282 -- ^ Ignored. TODO: The intention is that we may indicate per-file
273 -- transformations that occur before the contents of a file are spilled 283 -- transformations that occur before the contents of a file are spilled
@@ -330,9 +340,6 @@ data KeyRingRuntime = KeyRingRuntime
330-- action. 340-- action.
331data PacketUpdate = InducerSignature String [SignatureSubpacket] 341data PacketUpdate = InducerSignature String [SignatureSubpacket]
332 342
333noManip :: KeyRingRuntime -> KeyData -> [PacketUpdate]
334noManip _ _ = []
335
336-- | This type is used to indicate where to obtain passphrases. 343-- | This type is used to indicate where to obtain passphrases.
337data PassphraseSpec = PassphraseSpec 344data PassphraseSpec = PassphraseSpec
338 { passSpecRingFile :: Maybe FilePath 345 { passSpecRingFile :: Maybe FilePath