Commit Graph

17 Commits

Author SHA1 Message Date
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
a96b264050 Fix len_unsigned for certain negative integers, it got the length
wrong, fix from Panasas, Inc.

rename len_int and len_unsigned to _heim_\&


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-07 14:27:59 +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
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
Johan Danielsson
5ce268bf83 Fix encoding of "unsigned" integers. If MSB is set, we need to pad
with a zero byte.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-27 21:59:52 +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
276200e841 (length_unsigned): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-06 17:20:26 +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
Assar Westerlund
f95c0bd7d1 (length_int): handle the case of the largest negative integer by not
calling abs


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6468 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-15 17:15:58 +00:00
Assar Westerlund
bd157c7efd (length_unsigned): new function
(length_int): handle signed integers


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5349 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-13 16:15:18 +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
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
Johan Danielsson
f13518ca8f krb5_data -> octet_string, char * -> general_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1873 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-09 22:43:04 +00:00
Johan Danielsson
e2653a19af Fix include files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1449 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-17 10:36:32 +00:00
Assar Westerlund
f4ccbc3c92 new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1409 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-14 03:14:33 +00:00