Commit Graph

18 Commits

Author SHA1 Message Date
Flakebi
b678c70508 Reduce num dependencies, improve class implementation and add explicit tags
The default datatypes always have Universal as their class. If we
encounter another class while parsing, it is a tagged block.

I am not sure how (and if at all) we can distinguish explicitly and
implicitly tagged data. For now they should be parsed as unknown (or
explicit if they are a valid ASN.1 block).
2018-12-09 12:01:01 +01:00
Ryan Leckey
9f22f1dde0 Set bit 5 for SEQUENCE 0x10 and SET 0x11 to indicate constructed encoding 2018-11-14 21:12:13 -08:00
823fc31f6f Add Display and Error implementations for ASN1DecodeError, plus some context. 2018-10-26 12:04:31 -07:00
bdb8f7f8aa Make ASN1EncodeErr an instance of std::Error. 2018-10-26 09:25:05 -07:00
484ccef3fb Remove a warning that's not entirely helpful. 2018-10-26 09:24:37 -07:00
Ryan Leckey
939621b8c4 Upgrade dependencies 2018-10-23 12:42:44 -07:00
f89c6d9be6 Fix comment around ToASN1. 2018-01-16 17:45:03 -08:00
f6b39d7003 Documentation! 2017-12-26 18:06:23 -08:00
dc1fd79886 Add generic operators for ASN1Blocks. 2017-12-21 22:27:21 -08:00
c6a7d3039c Add the ability to capture start indexes of components, and variants of FromASN1 that require the body contents. 2017-12-21 21:44:06 -08:00
5e8dde500e Shift import into test module to avoid warning. 2017-12-21 16:56:56 -08:00
762b9b2fa4 Add time value support. 2017-12-19 10:21:36 -08:00
89cf0a25b5 Support more string types. 2017-12-11 21:31:57 -08:00
dd281edcd1 Add support for printable strings. 2017-12-10 21:54:01 -08:00
018770f711 Generic traits for dealing with ASN1. 2017-11-14 14:55:01 -08:00
b9594c9fb4 Ignore read result. 2017-11-14 14:54:46 -08:00
7134b205d4 Factor out OIDs into their own structure, with relevant functions and macros. 2017-11-14 14:54:10 -08:00
827aa0e74e Initial parser. 2017-11-06 14:47:27 -08:00