summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-08-28 03:16:07 -0400
committerjoe <joe@jerkface.net>2016-08-28 03:16:07 -0400
commit83e97b86973fc63eda92f5b38c112f0d374503c0 (patch)
treea36851ead54c2da03b3a9d9d112c117a9fee2f12 /kiki.hs
parent7c024e8b1545666915d7eb313098e6015974c164 (diff)
Basic gpg-agent support.
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/kiki.hs b/kiki.hs
index a0eff1a..71222ce 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -1146,8 +1146,8 @@ sync bExport bImport bSecret cmdarg args_raw = do
1146 ++ pems 1146 ++ pems
1147 ++ if bSecret then walts else [] 1147 ++ if bSecret then walts else []
1148 ++ hosts 1148 ++ hosts
1149 , opPassphrases = do pfile <- maybeToList passfd 1149 , opPassphrases = withAgent $ do pfile <- maybeToList passfd
1150 return $ PassphraseSpec Nothing Nothing pfile 1150 return $ PassphraseSpec Nothing Nothing pfile
1151 , opTransforms = maybe [] (const [Autosign]) $ Map.lookup "--autosign" margs 1151 , opTransforms = maybe [] (const [Autosign]) $ Map.lookup "--autosign" margs
1152 , opHome = homespec 1152 , opHome = homespec
1153 } 1153 }
@@ -1252,8 +1252,8 @@ kiki "show" args = do
1252 ++ pems 1252 ++ pems
1253 ++ walts 1253 ++ walts
1254 ++ hosts 1254 ++ hosts
1255 , opPassphrases = do pfile <- maybeToList passfd 1255 , opPassphrases = withAgent $ do pfile <- maybeToList passfd
1256 return $ PassphraseSpec Nothing Nothing pfile 1256 return $ PassphraseSpec Nothing Nothing pfile
1257 , opTransforms = [] 1257 , opTransforms = []
1258 , opHome = homespec 1258 , opHome = homespec
1259 } 1259 }
@@ -1537,8 +1537,8 @@ kiki "delete" args = do
1537 [ ( HomeSec, buildStreamInfo KF_All KeyRingFile ) 1537 [ ( HomeSec, buildStreamInfo KF_All KeyRingFile )
1538 , ( HomePub, buildStreamInfo KF_All KeyRingFile ) 1538 , ( HomePub, buildStreamInfo KF_All KeyRingFile )
1539 ] 1539 ]
1540 , opPassphrases = do pfile <- maybeToList passfd 1540 , opPassphrases = withAgent $ do pfile <- maybeToList passfd
1541 return $ PassphraseSpec Nothing Nothing pfile 1541 return $ PassphraseSpec Nothing Nothing pfile
1542 , opTransforms = map DeleteSubkeyByFingerprint fps 1542 , opTransforms = map DeleteSubkeyByFingerprint fps
1543 , opHome = homespec 1543 , opHome = homespec
1544 } 1544 }