Commit Graph

31 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
6f6a02b312 avoid leaking memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-21 18:27:59 +00:00
Love Hörnquist Åstrand
2f48a4f301 Prefix primitive types with der_.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 13:02:55 +00:00
Love Hörnquist Åstrand
da6e710e29 New der_put_heim_integer signature.
Test der_parse_heim_oid


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-14 04:55:37 +00:00
Love Hörnquist Åstrand
eb71698416 (check_fail_heim_integer): disable test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17686 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 07:20:09 +00:00
Love Hörnquist Åstrand
8586a88524 (test_heim_oid_format_same): add printing on failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 03:48:45 +00:00
Love Hörnquist Åstrand
64537b853a Add one check for heim_int, add checking for oid printing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17675 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 03:43:04 +00:00
Love Hörnquist Åstrand
483d00b945 check heim_integer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-20 10:00:14 +00:00
Love Hörnquist Åstrand
905a9d79b8 check that der_parse_hex_heim_integer() handles odd length numbers.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16572 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-16 23:02:16 +00:00
Love Hörnquist Åstrand
7f2116e65f Add tests for parse and print functions for heim_integer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-07 03:49:57 +00:00
Love Hörnquist Åstrand
0bb2f95b62 Avoid empty array initiators.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-13 21:08:03 +00:00
Love Hörnquist Åstrand
b9a6e93c62 Don't depend on malloc(very-very-larger-value) will fail.
Cast to unsigned long before printing size_t.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16057 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-13 19:36:17 +00:00
Love Hörnquist Åstrand
fc894dcecf Removed wrong variable.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16053 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-09 12:04:38 +00:00
Love Hörnquist Åstrand
dea6f6cdf8 (test_one_int): len and len_len is size_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16047 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-09 04:57:08 +00:00
Love Hörnquist Åstrand
56686ca406 Make variable initiation constant by moving them to global context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-27 11:54:36 +00:00
Love Hörnquist Åstrand
876760dd16 make it work for non c99 compilers too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-25 23:36:00 +00:00
Love Hörnquist Åstrand
153f392b66 start testing BIT STRING
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-25 23:35:22 +00:00
Love Hörnquist Åstrand
5940c92087 (check_fail_bitstring): check for length overflow
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15664 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 15:09:18 +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
9dfec2715f use size_t, print size_t by casting to unsigned long
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14742 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 19:36:37 +00:00
Love Hörnquist Åstrand
387710cab1 test for "der_length.c: Fix len_unsigned for certain negative
integers, it got the length wrong" , from Panasas, Inc.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13317 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-07 14:30:07 +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
Love Hörnquist Åstrand
094ad23abc move out the generic asn1/der functions to a common file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-23 10:19:49 +00:00
Assar Westerlund
d58e378f3a make this build again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11213 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-23 03:17:34 +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
7f6621b7f3 add test cases for Generalized time and make sure we return the
correct value


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7055 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-28 03:08:53 +00:00
Assar Westerlund
c57514b379 more test cases for integers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6469 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-15 17:16:37 +00:00
Assar Westerlund
6860cee394 (generic_test): check malloc return value properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6466 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-14 20:58:31 +00:00
Assar Westerlund
86d38a634d add test of -1
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6357 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:39:42 +00:00
Johan Danielsson
67a59977d1 fix printf warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5424 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-26 16:36:59 +00:00
Assar Westerlund
cb60e93e4d new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5352 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-13 16:16:29 +00:00