diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-30 10:05:14 -0500 |
---|---|---|
committer | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-30 10:05:18 -0500 |
commit | 19f938bb73e4ecb378ca2a81c4bd92ac2e325d53 (patch) | |
tree | 1713af0b822000f7a9134663f16380db3e5a16e2 /Data | |
parent | 78c7085809d15c1c42ff2ed211d8a53c95988d93 (diff) |
hlint
Diffstat (limited to 'Data')
-rw-r--r-- | Data/OpenPGP.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Data/OpenPGP.hs b/Data/OpenPGP.hs index 6e488eb..a05a980 100644 --- a/Data/OpenPGP.hs +++ b/Data/OpenPGP.hs | |||
@@ -883,7 +883,7 @@ parse_signature_subpacket 12 = do | |||
883 | kalgo <- get | 883 | kalgo <- get |
884 | fpr <- getSomeByteString 20 | 884 | fpr <- getSomeByteString 20 |
885 | -- bitfield must have bit 0x80 set, says the spec | 885 | -- bitfield must have bit 0x80 set, says the spec |
886 | return $ RevocationKeyPacket { | 886 | return RevocationKeyPacket { |
887 | sensitive = bitfield .&. 0x40 == 0x40, | 887 | sensitive = bitfield .&. 0x40 == 0x40, |
888 | revocation_key_algorithm = kalgo, | 888 | revocation_key_algorithm = kalgo, |
889 | revocation_key_fingerprint = | 889 | revocation_key_fingerprint = |
@@ -906,7 +906,7 @@ parse_signature_subpacket 20 = do | |||
906 | (m,n) <- liftM2 (,) get get :: Get (Word16,Word16) | 906 | (m,n) <- liftM2 (,) get get :: Get (Word16,Word16) |
907 | name <- fmap B.toString $ getSomeByteString $ fromIntegral m | 907 | name <- fmap B.toString $ getSomeByteString $ fromIntegral m |
908 | value <- fmap B.toString $ getSomeByteString $ fromIntegral n | 908 | value <- fmap B.toString $ getSomeByteString $ fromIntegral n |
909 | return $ NotationDataPacket { | 909 | return NotationDataPacket { |
910 | human_readable = flag1 .&. 0x80 == 0x80, | 910 | human_readable = flag1 .&. 0x80 == 0x80, |
911 | notation_name = name, | 911 | notation_name = name, |
912 | notation_value = value | 912 | notation_value = value |
@@ -924,7 +924,7 @@ parse_signature_subpacket 22 = | |||
924 | parse_signature_subpacket 23 = do | 924 | parse_signature_subpacket 23 = do |
925 | empty <- isEmpty | 925 | empty <- isEmpty |
926 | flag1 <- if empty then return 0 else get :: Get Word8 | 926 | flag1 <- if empty then return 0 else get :: Get Word8 |
927 | return $ KeyServerPreferencesPacket { | 927 | return KeyServerPreferencesPacket { |
928 | keyserver_no_modify = flag1 .&. 0x80 == 0x80 | 928 | keyserver_no_modify = flag1 .&. 0x80 == 0x80 |
929 | } | 929 | } |
930 | -- PreferredKeyServerPacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.18 | 930 | -- PreferredKeyServerPacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.18 |
@@ -940,7 +940,7 @@ parse_signature_subpacket 26 = | |||
940 | parse_signature_subpacket 27 = do | 940 | parse_signature_subpacket 27 = do |
941 | empty <- isEmpty | 941 | empty <- isEmpty |
942 | flag1 <- if empty then return 0 else get :: Get Word8 | 942 | flag1 <- if empty then return 0 else get :: Get Word8 |
943 | return $ KeyFlagsPacket { | 943 | return KeyFlagsPacket { |
944 | certify_keys = flag1 .&. 0x01 == 0x01, | 944 | certify_keys = flag1 .&. 0x01 == 0x01, |
945 | sign_data = flag1 .&. 0x02 == 0x02, | 945 | sign_data = flag1 .&. 0x02 == 0x02, |
946 | encrypt_communication = flag1 .&. 0x04 == 0x04, | 946 | encrypt_communication = flag1 .&. 0x04 == 0x04, |
@@ -959,7 +959,7 @@ parse_signature_subpacket 29 = liftM2 ReasonForRevocationPacket get | |||
959 | parse_signature_subpacket 30 = do | 959 | parse_signature_subpacket 30 = do |
960 | empty <- isEmpty | 960 | empty <- isEmpty |
961 | flag1 <- if empty then return 0 else get :: Get Word8 | 961 | flag1 <- if empty then return 0 else get :: Get Word8 |
962 | return $ FeaturesPacket { | 962 | return FeaturesPacket { |
963 | supports_mdc = flag1 .&. 0x01 == 0x01 | 963 | supports_mdc = flag1 .&. 0x01 == 0x01 |
964 | } | 964 | } |
965 | -- SignatureTargetPacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.25 | 965 | -- SignatureTargetPacket, http://tools.ietf.org/html/rfc4880#section-5.2.3.25 |