Commit Graph

72 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
a593f1136d Include <limits.h> for UINT_MAX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21364 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-27 08:51:06 +00:00
Love Hörnquist Åstrand
b313013d8f Add struct units; as a forward declaration. Pointed out by Marcus Watts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20670 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-11 00:39:41 +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
09dc4cecca move any definitions here.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 05:11:52 +00:00
Love Hörnquist Åstrand
9f8a9ce2dd Generate sequence function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18007 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 12:28:56 +00:00
Love Hörnquist Åstrand
916925bc94 (generate_header_of_codefile): remove unused variable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-31 02:52:21 +00:00
Love Hörnquist Åstrand
fb6af46d0e Put all the IMPORTed headers into the headerfile to avoid hidden depencies.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-30 04:40:52 +00:00
Love Hörnquist Åstrand
5be7181d53 (init_generate): Nothing in the generated files needs timegm(), so no
need to provide a prototype for it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-08 12:29:34 +00:00
Love Hörnquist Åstrand
fcfe7bc161 Set new constraints pointer in Type to NULL for inline constructed types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-06 19:59:13 +00:00
Love Hörnquist Åstrand
c6dc7f253e Const poision.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-23 10:50:12 +00:00
Love Hörnquist Åstrand
3d0c56c8fc (generate_constant): oid elements are unsigned
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15678 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 18:46:50 +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
491a812d67 rename function filename to get_filename
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 19:58:58 +00:00
Love Hörnquist Åstrand
6d7b7f51f7 avoid const string warnings steming from writeable-string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14702 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-31 00:08:58 +00:00
Love Hörnquist Åstrand
f2bdee2b8d catch CHOICE and generate dummy placeholder
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 12:44:00 +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
751a7769ef don't prefix the pretty printer with heim_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12611 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 10:07:43 +00:00
Love Hörnquist Åstrand
cbba49a837 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12610 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 10:02:38 +00:00
Love Hörnquist Åstrand
a5d3c4f398 s/UTF8String/heim_utf8_string/ in generated code
From: Luke Howard <lukeh@PADL.COM>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-23 09:59:27 +00:00
Love Hörnquist Åstrand
939b444ca3 prefix typedef\'s and structs with heim_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-15 13:57:32 +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
Love Hörnquist Åstrand
03b4bd44fb remove strcpy/sprintf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-17 07:09:18 +00:00
Johan Danielsson
1517173dcb add convenience macro that allocates a buffer and encoded into that
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11369 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 15:06:18 +00:00
Assar Westerlund
321d14c2e5 include <string.h> in the generated files (for memset)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11229 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:27:20 +00:00
Assar Westerlund
cee81d995f remove libasn1.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-27 16:23:15 +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
53fd71b6b3 (define_asn1): remove an unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-15 04:51:36 +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
a4a57702b8 (filename): new function
clean-up a little bit.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8154 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-09 09:21:25 +00:00
Assar Westerlund
4e4e2837e2 (define_asn1): add TUInteger
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-06 17:21:32 +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
aef640c8fe (define_type): make length in sequences be unsigned.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7369 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 04:14:46 +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
2fba144886 make `BIT STRING's unsigned
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5456 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-28 17:25:04 +00:00
Johan Danielsson
53cf1cc2ee add TUInteger type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5455 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-28 17:23:23 +00:00
Assar Westerlund
10db56db14 (define_type): map ASN1 Integer to int' instead of unsigned'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5350 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-13 16:15:53 +00:00
Johan Danielsson
a058c73ce6 Prototype for timegm().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3977 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 01:37:00 +00:00
Johan Danielsson
0c1ec766ff Fix formating of SEQUENCES.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3666 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-26 02:57:56 +00:00
Assar Westerlund
a4df418aec call generate_glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3246 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 23:18:31 +00:00
Johan Danielsson
7d4eeffa7f Rename basename to avoid conflict with basename(3).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2484 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 04:27:27 +00:00
Johan Danielsson
41502b7f29 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2483 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 01:05:08 +00:00
Johan Danielsson
abb2cf3533 Improve formatting of headerfile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2482 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 01:00:18 +00:00
Johan Danielsson
2bfc6c0add Block definitions of octet_string and general_string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2481 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 00:37:21 +00:00
Johan Danielsson
c6a6c25430 argv[2] is basename of the headerfile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2477 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-20 00:10:17 +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
Johan Danielsson
e8a414ca78 Remove generate_maybe().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2366 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 18:32:18 +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
48011fae6a Give tags to generated structs.
Use `err' and `asprintf'


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2271 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 11:37:10 +00:00
Johan Danielsson
372881f5ef Now all decode_* and encode_* functions now take a final size_t*
argument, that they return the size in. Return values are zero for
success, and anything else (such as some ASN1_* constant) for error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1951 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-01 23:52:30 +00:00