summaryrefslogtreecommitdiff
path: root/PEM.hs
diff options
context:
space:
mode:
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)