Love Hornquist Astrand
060474df16
quel 64bit warnings, fixup implicit encoding for template, fix spelling
2013-06-03 21:46:20 -07:00
Nicolas Williams
a222521e68
64-bit build fixes for ASN.1 compiler 64-bit integer support
2011-12-13 13:03:57 -06: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
Asanka Herath
3d83131be8
Export and calling convention annotation for lib/asn1
2010-08-20 13:14:10 -04:00
Asanka Herath
d25d9476b7
Type safety and variable initialization in ASN.1 generated code
2010-08-20 13:03:33 -04:00
Love Hornquist Astrand
33b8ccccd6
catch error from as.*printf
2010-05-30 15:13:44 -07:00
Love Hornquist Astrand
b939943b07
first stange of asn1 table driven compiler
2009-11-21 10:24:56 -08:00
Love Hornquist Astrand
4d06f484ec
implement TeletexString
2009-09-30 00:48:18 -07: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
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
6304d68d16
try to avoid aliasing of pointers enum {} vs int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21503 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-12 11:57:19 +00:00
Love Hörnquist Åstrand
983b89b811
Add VisibleString parsing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 17:15:05 +00:00
Love Hörnquist Åstrand
f4f9013804
prefix primitive types with der_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 05:36:34 +00:00
Love Hörnquist Åstrand
40acdb8650
prefix primitive types with der_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18441 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 05:26:36 +00:00
Love Hörnquist Åstrand
394907625f
Change name of oldret for each instance its used to avoid shadow
...
warning. From: Stefan Metzmacher <metze@samba.org >.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15962 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 11:52:16 +00:00
Love Hörnquist Åstrand
a0f68f2640
(length_type): cast size_t argument to unsigned long and use
...
appropriate printf format
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15669 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 18:01:59 +00:00
Love Hörnquist Åstrand
ab69af8c30
(TChoice): add () to make sure variable expression is evaluated correctly
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-13 10:40:23 +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
Love Hörnquist Åstrand
53ac3a20b2
make scope variables unique to avoid shadow warnings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15614 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-10 05:13:09 +00:00
Love Hörnquist Åstrand
de222a34c8
(length_type): TSequenceOf: add up the size of all the elements, don't
...
use just the size of the last element.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13276 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-19 17:54:33 +00:00
Love Hörnquist Åstrand
8b8bcb8c9b
add boolan support
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 00:28:29 +00:00
Love Hörnquist Åstrand
bd85856ef6
-= add parser/generate glue for UTF8String and NULL
...
(DER primitive encode/decode functions missing)
- handle parsing of DEFAULT and, ...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12311 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-20 18:42:10 +00:00
Assar Westerlund
2bcae56ac3
add ENUMERATED and OBJECT IDENTIFIER
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-25 13:39:27 +00:00
Assar Westerlund
6218bc5eb6
(length_type): fail on malloc error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 22:40:53 +00:00
Johan Danielsson
90c3ac7191
support for distinguished value integers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8396 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-19 15:19:23 +00:00
Assar Westerlund
8e42a34bb5
(length_type): add TUInteger
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-06 17:24:30 +00:00
Johan Danielsson
c5b916ca6f
remove advertising clause
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
a74d27d3d7
const-ize
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-10 04:55:28 +00:00
Johan Danielsson
5a32a5c8e7
Add copyright notice.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Assar Westerlund
c1439d2cd8
changed asn1_locl.h to gen_locl.h and der_locl.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2328 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-15 20:02:05 +00:00
Assar Westerlund
5b1f9fc01c
Use err' and
asprintf'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2272 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 11:38:28 +00:00
Assar Westerlund
a1cf5dc4e2
(length_type): Make the length functions for SequenceOf
...
non-destructive
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1939 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-30 04:10:05 +00:00
Johan Danielsson
a510e42b08
Split of gen.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1447 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-17 10:33:57 +00:00