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
c714e5d7ed
Check range on SEQ OF and OCTET STRING.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21395 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-02 10:19:08 +00:00
Love Hörnquist Åstrand
fcb245c46f
Check for multipication overrun.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21362 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-27 08:39:07 +00:00
Love Hörnquist Åstrand
5342643f04
update (c)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19572 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-29 17:30:32 +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
4e79ae875a
(decode_type): drop unused variable realtype.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18160 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-24 09:13:12 +00:00
Love Hörnquist Åstrand
2c7a8d4dca
TSequenceOf/TSetOf: Increase the length of the array after successful
...
decoding the next element, so that the array don't contain heap-data.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16084 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-21 00:30:37 +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
30cb2f9c22
(decode_type): tagdatalen should be an size_t.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 18:09:30 +00:00
Love Hörnquist Åstrand
c77f5c2515
(find_tag): find external references, we can't handle those, so tell
...
user that instead of crashing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15659 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:21:28 +00:00
Love Hörnquist Åstrand
a42c7b8b15
(find_tag): Fix return in TType case.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15656 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-19 14:16:25 +00:00
Love Hörnquist Åstrand
d79bcbb3a6
(decode_type): TChoice: set the label
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-12 18:08:38 +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
8e78ed6e48
prefix Der_class with ASN1_C_ to avoid problems with system headerfiles that pollute the name space
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 14:23:01 +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
Johan Danielsson
dca68aa10e
remove unused variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-09 15:37:34 +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
6f980743fb
(generate_type_decode): zero the data at the beginning of the
...
generated function, and add a label `fail' that the code jumps to in
case of errors that frees all allocated data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-10 18:14:38 +00:00
Assar Westerlund
2c57d32ca1
test two generated mallocs for success
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-29 08:36:45 +00:00
Assar Westerlund
d43045a867
(decode_type): fail on malloc error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 22:40:23 +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
91384c007f
(decode_type, generate_type_decode): add TUInteger
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-06 17:22:49 +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
8c03752be7
(decode_type): fix generation of decoding information for
...
TSequenceOf.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6393 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:28:55 +00:00
Johan Danielsson
ca8b03f428
Hack to avoid `unused variable'.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4577 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-16 21:26:15 +00:00
Johan Danielsson
f3a74b747f
Allow passing NULL size.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3995 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-15 23:32:43 +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
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
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
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