Commit Graph

19 Commits

Author SHA1 Message Date
Nicolas Williams
a3a8c1e4a4 ASN.1: Support wider bit sets (fix #514) 2019-01-15 13:21:25 -06:00
Luke Howard
5180a4ed75 asn1: maximum unsigned INTEGER range is 2^63 (#458)
As ranges are stored as signed 64-bit integers, they will be clamped to 2^63.
Do not use a maximum range of 2^64 in the test suite.
2018-12-20 12:23:13 +11:00
Viktor Dukhovni
f9749627f0 New test case detects previous template bug 2016-11-09 18:34:24 -05:00
Love Hornquist Astrand
060474df16 quel 64bit warnings, fixup implicit encoding for template, fix spelling 2013-06-03 21:46:20 -07:00
Viktor Dukhovni
5e081aa4a6 Fix ASN.1 template compiler bug and add test cases more likely to trip on similar (structure size/type) errors
Signed-off-by: Roland C. Dowdeswell <elric@imrryr.org>
2012-06-05 22:05:35 +01:00
Love Hörnquist Åstrand
2a551314a6 don't use negative size 2011-12-13 21:51:48 -08:00
Nicolas Williams
19d378f44d Add 64-bit integer support to ASN.1 compiler
ASN.1 INTEGERs will now compile to C int64_t or uint64_t, depending
    on whether the constraint ranges include numbers that cannot be
    represented in 32-bit ints and whether they include negative
    numbers.

    Template backend support included.  check-template is now built with
    --template, so we know we're testing it.

    Tests included.
2011-12-12 20:01:20 -06:00
Love Hornquist Astrand
1a77d64a97 check encoding of MechTypeList 2011-05-07 06:34:36 -07:00
Love Hornquist Astrand
b939943b07 first stange of asn1 table driven compiler 2009-11-21 10:24:56 -08:00
Love Hörnquist Åstrand
0e6b5c5c22 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-05-28 01:17:17 +00:00
Love Hörnquist Åstrand
e7110b7081 Test SIZE attribute for SEQ and OCTET STRING
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21455 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-10 12:51:19 +00:00
Love Hörnquist Åstrand
e67cafcc42 Add TESTSeqOf for testing sequence generation code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18013 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 14:00:44 +00:00
Love Hörnquist Åstrand
3ec55439c0 check for "tagless ANY OPTIONAL"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16671 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-31 09:42:31 +00:00
Love Hörnquist Åstrand
88df0535c2 Check OPTIONAL context-tagless elements.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 17:26:25 +00:00
Love Hörnquist Åstrand
945ffb4357 Add test string for constraints.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-06 20:00:33 +00:00
Love Hörnquist Åstrand
5dfc656f1e Two implicit tests, one with all structures inlined
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-21 20:48:27 +00:00
Love Hörnquist Åstrand
aefa27d866 test several IMPLICIT tag level deep
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-21 19:39:40 +00:00
Love Hörnquist Åstrand
3d9e36d3a1 tests for IMPLICIT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15695 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-21 19:14:53 +00:00
Love Hörnquist Åstrand
b838707d0e Commit much improved ASN.1 compiler from joda-choice-branch.
Highlighs for the compiler is support for CHOICE and in general better
support for tags. This compiler support most of what is needed for
PK-INIT, LDAP, X.509, PKCS-12 and many other protocols.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 06:27:42 +00:00