diff options
author | joe <joe@jerkface.net> | 2016-08-28 03:16:07 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2016-08-28 03:16:07 -0400 |
commit | 83e97b86973fc63eda92f5b38c112f0d374503c0 (patch) | |
tree | a36851ead54c2da03b3a9d9d112c117a9fee2f12 /kiki.hs | |
parent | 7c024e8b1545666915d7eb313098e6015974c164 (diff) |
Basic gpg-agent support.
Diffstat (limited to 'kiki.hs')
-rw-r--r-- | kiki.hs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 | } |