Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Infered |
- data ASN1Class
- = Universal
- | Application
- | Context
- | Private
- type ASN1Tag = Int
- data ASN1Length
- data ASN1Header = ASN1Header !ASN1Class !ASN1Tag !Bool !ASN1Length
- data ASN1Error
- data ASN1Event
Raw types
Element class
data ASN1Length Source
ASN1 Length with all different formats
data ASN1Header Source
ASN1 Header with the class, tag, constructed flag and length.
Errors types
Possible errors during parsing operations
StreamUnexpectedEOC | Unexpected EOC in the stream. |
StreamInfinitePrimitive | Invalid primitive with infinite length in a stream. |
StreamConstructionWrongSize | A construction goes over the size specified in the header. |
StreamUnexpectedSituation String | An unexpected situation has come up parsing an ASN1 event stream. |
ParsingHeaderFail String | Parsing an invalid header. |
ParsingPartial | Parsing is not finished, there is construction unended. |
TypeNotImplemented String | Decoding of a type that is not implemented. Contribution welcome. |
TypeDecodingFailed String | Decoding of a knowed type failed. |
PolicyFailed String String | Policy failed including the name of the policy and the reason. |
Events types
represent one event from an asn1 data stream
Header ASN1Header | ASN1 Header |
Primitive !ByteString | Primitive |
ConstructionBegin | Constructed value start |
ConstructionEnd | Constructed value end |