Commit Graph

657 Commits

Author SHA1 Message Date
Lev Walkin cfc16d354a BIT STRING decode for OER 2017-08-30 20:21:50 -07:00
Lev Walkin aa7c5a635a NULL OER encode/decode 2017-08-30 20:21:38 -07:00
Lev Walkin c6bd359a08 decode SET OF OER, file 2017-08-30 20:21:35 -07:00
Lev Walkin 96f9921b09 decode SET OF in OER 2017-08-29 23:38:31 -07:00
Lev Walkin 290b4d6918 https://github.com/vlm/asn1c/issues/161 2017-08-28 17:48:35 -07:00
Ryan Sleevi ae8a6e4de5 Don't DER encode the default value of SEQUENCE/SET elements
Per X.690 (2002), Section 11.5, for DER, set and sequence values should not
include elements equal to their default value.

This was already handled by the UPER encoder, but not by the DER
encoder.
2017-08-28 17:33:46 -07:00
Lev Walkin 0c54f3d05d more debug 2017-08-28 00:21:15 -07:00
Lev Walkin 94fc4186de fixed constraint reference 2017-08-28 00:14:59 -07:00
Lev Walkin 9a1736da96 CHOICE stub for OER 2017-08-27 23:48:46 -07:00
Lev Walkin 2535bd58f3 verified OCTET STRING OER operation 2017-08-27 23:48:45 -07:00
Lev Walkin f9f3e06e21 NativeEnumerated for OER, and tests 2017-08-27 23:48:28 -07:00
Lev Walkin 049a2d7da7 not pointers 2017-08-27 18:34:02 -07:00
Lev Walkin d3fbff9552 offsets are relative 2017-08-27 12:39:30 -07:00
Lev Walkin 878a521e2b initialize all fields 2017-08-27 12:39:16 -07:00
Lev Walkin 14fd3e5a89 added explicit (deprecated) ANY flag 2017-08-27 01:39:05 -07:00
Lev Walkin a4db2afee3 avoid undefined symbols 2017-08-27 01:27:07 -07:00
Lev Walkin 53657ddc14 remove warnings 2017-08-27 01:07:02 -07:00
Lev Walkin 75b6fe4c8c make junking check work 2017-08-27 01:03:22 -07:00
Lev Walkin 4ccce3da61 restore XER restartability 2017-08-27 00:41:58 -07:00
Lev Walkin c10d30a30f BER open type fix 2017-08-27 00:38:21 -07:00
Lev Walkin 2e5caa514c oer open type fix 2017-08-27 00:38:13 -07:00
Lev Walkin 35ace19d51 uper-encode open type 2017-08-26 23:33:14 -07:00
Lev Walkin 7bb9d5b167 suppress binary output to a terminal 2017-08-26 23:31:58 -07:00
Lev Walkin a4a87215b5 comment added 2017-08-26 23:31:17 -07:00
Lev Walkin f59dac9887 decode Open Type in XER 2017-08-26 23:31:17 -07:00
Lev Walkin 5a0436c80a indent 2017-08-26 23:31:09 -07:00
Lev Walkin ae0c3c27e9 a bit more generic file metaname 2017-08-26 23:31:09 -07:00
Lev Walkin 2481002575 remove warnings 2017-08-26 23:31:09 -07:00
Lev Walkin 6903380f0b generate oer only when requested 2017-08-26 23:31:09 -07:00
Lev Walkin 6cd0d567f0 moved out common bit manipulation code 2017-08-26 23:31:09 -07:00
Lev Walkin 8d99d7b5c8 introduced ASN_STRUCT_RESET; preferred over ASN_STRUCT_FREE_CONTENTS_ONLY 2017-08-25 01:06:00 -07:00
Lev Walkin 56d59b46c0 moved skeletons tests out 2017-08-24 13:54:58 -07:00
Lev Walkin ca0d40ba21 oer field missing 2017-08-24 13:38:05 -07:00
Lev Walkin 7765d4171a Merge branch 'master' of github.com:vlm/asn1c 2017-08-24 13:30:53 -07:00
Lev Walkin 41d972b80f do not add uper if not enabled 2017-08-23 23:30:59 -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
Lev Walkin a7d64001d6 using address sanitizer in tests 2017-08-23 22:34:29 -07:00
Lev Walkin f04d4e42d7 conditional printing 2017-08-23 18:30:04 -07:00
Lev Walkin 53e5ae6524 honor contract wrt zero-termination 2017-08-23 10:56:19 -07:00
Bi-Ruei, Chiu e1bf21933e Fix issue 180 and 182 2017-08-22 20:41:13 +08:00
Lev Walkin d62a662d1f const fix 2017-08-22 02:31:02 -07:00
Lev Walkin 36ddfc8e37 fix warnings 2017-08-22 09:22:08 +00:00
Lev Walkin 91ca273296 fix eager cleanup 2017-08-11 02:32:42 -07:00
Lev Walkin 1dc754c529 open type skeleton 2017-08-11 01:40:01 -07:00
Lev Walkin f6853ce38e further runtime support for information object classes 2017-08-11 01:37:26 -07:00
Lev Walkin 63a35237b1 presence unsigned 2017-08-10 19:59:53 -07:00
Lev Walkin 6aae7c62c1 make J2735 compile again 2017-08-10 17:58:56 -07:00
Lev Walkin 24bf3f6af1 fix warning 2017-08-10 17:58:43 -07:00
Lev Walkin 7c87630180 decode ioc in OER in runtime 2017-08-10 06:11:24 -07:00
Lev Walkin 9de6cd89ca using ioc constraints in run time 2017-08-10 05:51:56 -07:00