summaryrefslogtreecommitdiff
path: root/PEM.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-05-15 04:45:05 -0400
committerjoe <joe@jerkface.net>2014-05-15 04:45:05 -0400
commit73e9081cbd07359d85926d16d9ef1bf418e61f96 (patch)
tree59976d8ecbf5eaf457ab3460d0c08b632c9beb50 /PEM.hs
parent7307fb20e430ef896131f0fd6bfe2ae2371e1008 (diff)
fixes
Diffstat (limited to 'PEM.hs')
-rw-r--r--PEM.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/PEM.hs b/PEM.hs
index 7b27e04..f969484 100644
--- a/PEM.hs
+++ b/PEM.hs
@@ -24,7 +24,7 @@ pemParser mtyp = ScanningParser (maybe fndany fndtyp mtyp) pbdy
24 let typ = L.take (L.length x0 - 5) x0 24 let typ = L.take (L.length x0 - 5) x0
25 return typ 25 return typ
26 26
27 pbdy typ xs = (mblob, rs) 27 pbdy typ xs = (mblob, drop 1 rs)
28 where 28 where
29 (ys,rs) = span (/="-----END " <> typ <> "-----") xs 29 (ys,rs) = span (/="-----END " <> typ <> "-----") xs
30 mblob = PEMBlob typ <$> LW.pack <$> Base64.decode (L.unpack dta) 30 mblob = PEMBlob typ <$> LW.pack <$> Base64.decode (L.unpack dta)