Commit Graph

21 Commits

Author SHA1 Message Date
Lev Walkin 20696a4ff3 constness fixes, round-trip and fuzz-testing for CHOICE 2017-10-17 21:27:55 -07:00
Lev Walkin e2bbbf8f1e remove the use of alloca in skeletons 2017-10-08 18:52:37 -07:00
Bi-Ruei, Chiu 1f87ac0058 Move type operations to another structure
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.

Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-24 14:09:28 +08:00
Simo Sorce 9cbd9b850e Remove dead code.
On the previous line we return if cb is Null, so testing cb is worthless.
Dead code, found by coverity.

Signed-off-by: Simo Sorce <simo@redhat.com>
2017-03-26 04:58:06 -07:00
Wim Lewis fb6344ef75 Declare most internal, constant tables as const, particularly the
"specifics" structures and the tables they point to.
2014-07-28 12:16:01 -07:00
Lev Walkin 523de9eba2 per support 2006-08-18 01:34:18 +00:00
Lev Walkin fc77643765 globalized assert() 2005-03-29 17:21:14 +00:00
Lev Walkin 814cca7d24 C++ compatibility 2004-12-15 23:23:53 +00:00
Lev Walkin c4676a80e6 der_encode_to_buffer() 2004-11-16 09:46:00 +00:00
Lev Walkin 5e03376b84 asn1_* renamed into asn_* 2004-09-29 13:26:15 +00:00
Lev Walkin 8e8078aa88 clean-up; removed unnecessary field from type descriptor 2004-09-26 13:10:40 +00:00
Lev Walkin 11c3e1704f reheaderization 2004-09-24 21:00:50 +00:00
Lev Walkin a9cc46e3f3 XER support 2004-09-22 16:06:28 +00:00
Lev Walkin 906654e1d7 refactored tagging support 2004-09-10 15:49:15 +00:00
Lev Walkin 2ca9543033 der->ber 2004-08-19 13:27:34 +00:00
Lev Walkin c2346578e4 C++ compatibility 2004-08-11 09:07:36 +00:00
Lev Walkin 4d9528c7c9 portability 2004-08-11 08:10:13 +00:00
Lev Walkin 7e0d2cb62c portability 2004-08-11 07:41:45 +00:00
Lev Walkin f7a6c6d4b4 invalid memory reference fix and test case 2004-07-21 03:55:44 +00:00
Lev Walkin d9bd775af1 enforsed compilation with -W -Werror 2004-06-05 08:17:50 +00:00
Lev Walkin f15320bf6b Initial revision 2004-06-03 03:38:44 +00:00