summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs11
1 files changed, 7 insertions, 4 deletions
diff --git a/kiki.hs b/kiki.hs
index 0bc7133..03ea635 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -188,7 +188,9 @@ listKeysFiltered style grips pkts0 = do
188 let issuers = do 188 let issuers = do
189 sig_over <- signatures_over sig 189 sig_over <- signatures_over sig
190 i <- maybeToList $ signature_issuer sig_over 190 i <- maybeToList $ signature_issuer sig_over
191 maybeToList $ find_key (matchpr i) (Message keys) (reverse (take 16 (reverse i))) 191 let sigkeyid i | version top == 5 = take 16 i
192 | otherwise = reverse . take 16 . reverse $ i
193 maybeToList $ find_key (matchpr (auto_fp_version sig_over) i) (Message keys) (sigkeyid i)
192 (primary,secondary) = partition (==top) issuers 194 (primary,secondary) = partition (==top) issuers
193 195
194 -- trace ("PRIMARY: "++show (map fingerprint primary)) $ return () 196 -- trace ("PRIMARY: "++show (map fingerprint primary)) $ return ()
@@ -709,13 +711,13 @@ kiki_usage ((== Export) -> bExport) ((== Import) -> bImport) ((== Secret) -> bSe
709 ," position to indicate whether a SUBKEY or MASTER is intended." 711 ," position to indicate whether a SUBKEY or MASTER is intended."
710 ,"" 712 ,""
711 ," MASTER may be any of" 713 ," MASTER may be any of"
712 ," * The tail end of a fingerprint prefixed by 'fp:'" 714 ," * The tail end (or, for v5, front end) of a fingerprint prefixed by 'fp:'"
713 ," * A sub-string of a user id (without slashes) prefixed by 'u:'" 715 ," * A sub-string of a user id (without slashes) prefixed by 'u:'"
714 ," * 40 characters of hexidecimal (kiki will assume this to be a fingerprint)" 716 ," * 40 characters of hexidecimal (kiki will assume this to be a fingerprint)"
715 ," * A sub-string of a user id (without slashes, the prefix 'u:' is optional)" 717 ," * A sub-string of a user id (without slashes, the prefix 'u:' is optional)"
716 ,"" 718 ,""
717 ," SUBKEY may be any of" 719 ," SUBKEY may be any of"
718 ," * The tail end of a fingerprint prefixed by 'fp:'" 720 ," * The tail end (or, for v5, front end) of a fingerprint prefixed by 'fp:'"
719 ," * An exact match of a usage tag prefixed by 't:'" 721 ," * An exact match of a usage tag prefixed by 't:'"
720 ," * 40 characters of hexidecimal (kiki will assume this to be a fingerprint)" 722 ," * 40 characters of hexidecimal (kiki will assume this to be a fingerprint)"
721 ," * An exact match of a usage tag (The prefix 't:' is optional)" 723 ," * An exact match of a usage tag (The prefix 't:' is optional)"
@@ -1642,7 +1644,8 @@ kiki "tar" args | "--help" `elem` args = do
1642 ," (current working identity)" 1644 ," (current working identity)"
1643 ,"" 1645 ,""
1644 ," fp:4A39F" 1646 ," fp:4A39F"
1645 ," (tail end of a fingerprint prefixed by 'fp:')" 1647 ," (tail end of a v4 fingerprint or the front end of a v5"
1648 ," fingerprint prefixed by 'fp:')"
1646 ,"" 1649 ,""
1647 ," u:joe" 1650 ," u:joe"
1648 ," (sub-string of a user id prefixed by 'u:')" 1651 ," (sub-string of a user id prefixed by 'u:')"