Skip to content

Commit

Permalink
Preserve topkey for all subkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Aug 11, 2013
1 parent 7b504d9 commit eba7e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/OpenPGP.hs
Expand Up @@ -948,10 +948,10 @@ paired_sigs _ (p@(SecretKeyPacket {is_subkey = False}):ps) =
paired_sigs (Just p) (dropWhile isSignaturePacket ps)
paired_sigs (Just k) (p@(PublicKeyPacket {is_subkey = True}):ps) =
SubkeySignature k p (takeWhile isSignaturePacket ps) :
paired_sigs (Just p) (dropWhile isSignaturePacket ps)
paired_sigs (Just k) (dropWhile isSignaturePacket ps)
paired_sigs (Just k) (p@(SecretKeyPacket {is_subkey = True}):ps) =
SubkeySignature k p (takeWhile isSignaturePacket ps) :
paired_sigs (Just p) (dropWhile isSignaturePacket ps)
paired_sigs (Just k) (dropWhile isSignaturePacket ps)
paired_sigs (Just k) (p@(UserIDPacket {}):ps) =
CertificationSignature k p (takeWhile isSignaturePacket ps) :
paired_sigs (Just k) (dropWhile isSignaturePacket ps)
Expand Down

0 comments on commit eba7e4f

Please sign in to comment.