Portability | portable |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Inferred |
Read and write PEM files
- data PEM = PEM {
- pemName :: String
- pemHeader :: [(String, ByteString)]
- pemContent :: ByteString
- pemWriteLBS :: PEM -> ByteString
- pemWriteBS :: PEM -> ByteString
- pemParseBS :: ByteString -> Either String [PEM]
- pemParseLBS :: ByteString -> Either String [PEM]
Documentation
Represent one PEM section
for now headers are not serialized at all. this is just available here as a placeholder for a later implementation.
PEM | |
|
pemWriteLBS :: PEM -> ByteStringSource
convert a PEM structure to a lazy bytestring
pemWriteBS :: PEM -> ByteStringSource
convert a PEM structure to a bytestring
pemParseBS :: ByteString -> Either String [PEM]Source
parse a PEM content using a strict bytestring
pemParseLBS :: ByteString -> Either String [PEM]Source
parse a PEM content using a dynamic bytestring