summaryrefslogtreecommitdiff
path: root/Data/OpenPGP.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Data/OpenPGP.hs')
-rw-r--r--Data/OpenPGP.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs
index 7433889..3008fc2 100644
--- a/Data/OpenPGP.hs
+++ b/Data/OpenPGP.hs
@@ -1251,10 +1251,7 @@ parse_signature_subpacket 31 =
1251 liftM3 SignatureTargetPacket get get getRemainingByteString 1251 liftM3 SignatureTargetPacket get get getRemainingByteString
1252-- EmbeddedSignaturePacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.26 1252-- EmbeddedSignaturePacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.26
1253parse_signature_subpacket 32 = 1253parse_signature_subpacket 32 =
1254 fmap (EmbeddedSignaturePacket . forceSignature) (parse_packet 2) 1254 fmap EmbeddedSignaturePacket (parse_packet 2)
1255 where
1256 forceSignature x@(SignaturePacket {}) = x
1257 forceSignature _ = error "EmbeddedSignature must contain signature"
1258-- Represent unsupported packets as their tag and literal bytes 1255-- Represent unsupported packets as their tag and literal bytes
1259parse_signature_subpacket tag = 1256parse_signature_subpacket tag =
1260 fmap (UnsupportedSignatureSubpacket tag) getRemainingByteString 1257 fmap (UnsupportedSignatureSubpacket tag) getRemainingByteString