summaryrefslogtreecommitdiff
path: root/Data/OpenPGP.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Data/OpenPGP.hs')
-rw-r--r--Data/OpenPGP.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs
index dc6fb78..6140ddf 100644
--- a/Data/OpenPGP.hs
+++ b/Data/OpenPGP.hs
@@ -75,7 +75,8 @@ module Data.OpenPGP (
75 decode_public_key_material, 75 decode_public_key_material,
76 getEllipticCurvePublicKey, 76 getEllipticCurvePublicKey,
77 encodeOID, 77 encodeOID,
78 hashLen 78 hashLen,
79 defaultFeatures
79) where 80) where
80 81
81import Control.Applicative 82import Control.Applicative
@@ -1326,6 +1327,14 @@ data SignatureSubpacket =
1326 UnsupportedSignatureSubpacket Word8 B.ByteString 1327 UnsupportedSignatureSubpacket Word8 B.ByteString
1327 deriving (Show, Read, Eq) 1328 deriving (Show, Read, Eq)
1328 1329
1330defaultFeatures :: SignatureSubpacket
1331defaultFeatures =
1332 FeaturesPacket
1333 { supports_mdc = True
1334 , supports_aead = False
1335 , supports_v5 = True
1336 }
1337
1329instance BINARY_CLASS SignatureSubpacket where 1338instance BINARY_CLASS SignatureSubpacket where
1330 put p = do 1339 put p = do
1331 -- Use 5-octet-length + 1 for tag as the first packet body octet 1340 -- Use 5-octet-length + 1 for tag as the first packet body octet