ITS
|
Go to the source code of this file.
Macros | |
#define | LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) |
#define | SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) |
#define | ADVANCE(num_bytes) |
#define | NEXT_PHASE(ctx) |
#define | PHASE_OUT(ctx) do { ctx->phase = 10; } while(0) |
#define | RETURN(_code) |
#define | IN_EXTENSION_GROUP(specs, memb_idx) |
#define | XER_ADVANCE(num_bytes) |
#define ADVANCE | ( | num_bytes | ) |
Definition at line 35 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber().
#define IN_EXTENSION_GROUP | ( | specs, | |
memb_idx | |||
) |
Definition at line 68 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber(), SEQUENCE_decode_uper(), SEQUENCE_decode_xer(), SEQUENCE_encode_uper(), and SEQUENCE_handle_extensions().
#define LEFT ((size<(size_t)ctx->left)?size:(size_t)ctx->left) |
Definition at line 15 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber().
#define NEXT_PHASE | ( | ctx | ) |
Definition at line 49 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber().
#define PHASE_OUT | ( | ctx | ) | do { ctx->phase = 10; } while(0) |
Definition at line 53 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber().
#define RETURN | ( | _code | ) |
Definition at line 59 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber(), and SEQUENCE_decode_xer().
#define SIZE_VIOLATION (ctx->left >= 0 && (size_t)ctx->left <= size) |
Definition at line 28 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_ber().
#define XER_ADVANCE | ( | num_bytes | ) |
Definition at line 596 of file constr_SEQUENCE.c.
Referenced by SEQUENCE_decode_xer().
|
static |
Definition at line 77 of file constr_SEQUENCE.c.
References BER_TAG_CLASS, BER_TAG_VALUE, asn_TYPE_tag2member_s::el_no, and asn_TYPE_tag2member_s::el_tag.
Referenced by SEQUENCE_decode_ber().
int SEQUENCE_constraint | ( | asn_TYPE_descriptor_t * | td, |
const void * | sptr, | ||
asn_app_constraint_failed_f * | ctfailcb, | ||
void * | app_key | ||
) |
Definition at line 978 of file constr_SEQUENCE.c.
References _ASN_CTFAIL, ATF_POINTER, asn_TYPE_descriptor_s::check_constraints, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_TYPE_member_s::flags, asn_TYPE_member_s::memb_constraints, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::name, asn_TYPE_member_s::optional, and asn_TYPE_member_s::type.
asn_dec_rval_t SEQUENCE_decode_ber | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
void ** | struct_ptr, | ||
const void * | ptr, | ||
size_t | size, | ||
int | tag_mode | ||
) |
Definition at line 112 of file constr_SEQUENCE.c.
References _t2e_cmp(), ADVANCE, ASN_DEBUG(), ATF_OPEN_TYPE, ATF_POINTER, ber_check_tags(), ber_fetch_tag(), ber_skip_length(), BER_TAGS_EQUAL, BER_TLV_CONSTRUCTED, ber_tlv_tag_string(), CALLOC, asn_SEQUENCE_specifics_s::ctx_offset, asn_TYPE_tag2member_s::el_no, asn_TYPE_tag2member_s::el_tag, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_SEQUENCE_specifics_s::ext_before, IN_EXTENSION_GROUP, LEFT, asn_TYPE_descriptor_s::name, NEXT_PHASE, PHASE_OUT, RC_FAIL, RC_OK, RC_WMORE, RETURN, SIZE_VIOLATION, asn_TYPE_descriptor_s::specifics, asn_SEQUENCE_specifics_s::struct_size, asn_SEQUENCE_specifics_s::tag2el, asn_SEQUENCE_specifics_s::tag2el_count, asn_TYPE_tag2member_s::toff_first, and asn_TYPE_tag2member_s::toff_last.
asn_dec_rval_t SEQUENCE_decode_uper | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
asn_per_constraints_t * | constraints, | ||
void ** | sptr, | ||
asn_per_data_t * | pd | ||
) |
Definition at line 1030 of file constr_SEQUENCE.c.
References _ASN_DECODE_FAILED, _ASN_DECODE_STARVED, _ASN_STACK_OVERFLOW_CHECK(), asn_SEQUENCE_specifics_s::aoms_count, ASN_DEBUG(), ATF_POINTER, asn_per_data_s::buffer, CALLOC, asn_TYPE_member_s::default_value, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_SEQUENCE_specifics_s::ext_after, asn_SEQUENCE_specifics_s::ext_before, asn_TYPE_member_s::flags, FREEMEM, IN_EXTENSION_GROUP, MALLOC, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::name, asn_per_data_s::nbits, asn_TYPE_member_s::optional, asn_TYPE_member_s::per_constraints, per_get_few_bits(), per_get_many_bits(), RC_OK, asn_SEQUENCE_specifics_s::roms_count, asn_TYPE_descriptor_s::specifics, asn_SEQUENCE_specifics_s::struct_size, asn_TYPE_member_s::type, asn_TYPE_descriptor_s::uper_decoder, uper_get_nslength(), uper_open_type_get(), and uper_open_type_skip().
asn_dec_rval_t SEQUENCE_decode_xer | ( | asn_codec_ctx_t * | opt_codec_ctx, |
asn_TYPE_descriptor_t * | td, | ||
void ** | struct_ptr, | ||
const char * | opt_mname, | ||
const void * | buf_ptr, | ||
size_t | size | ||
) |
Definition at line 607 of file constr_SEQUENCE.c.
References ASN_DEBUG(), ATF_POINTER, CALLOC, asn_dec_rval_s::code, asn_dec_rval_s::consumed, asn_SEQUENCE_specifics_s::ctx_offset, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_SEQUENCE_specifics_s::ext_before, asn_TYPE_member_s::flags, IN_EXTENSION_GROUP, asn_TYPE_member_s::memb_offset, asn_TYPE_member_s::name, PXER_COMMENT, PXER_TAG, PXER_TEXT, RC_FAIL, RC_OK, RC_WMORE, RETURN, asn_TYPE_descriptor_s::specifics, asn_SEQUENCE_specifics_s::struct_size, asn_TYPE_member_s::type, XCT_BOTH, XCT_CLOSING, XCT_OPENING, XCT_UNKNOWN_BO, XCT_UNKNOWN_OP, XER_ADVANCE, asn_TYPE_descriptor_s::xer_decoder, xer_next_token(), xer_skip_unknown(), and asn_TYPE_descriptor_s::xml_tag.
asn_enc_rval_t SEQUENCE_encode_der | ( | asn_TYPE_descriptor_t * | td, |
void * | sptr, | ||
int | tag_mode, | ||
ber_tlv_tag_t | tag, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 513 of file constr_SEQUENCE.c.
References _ASN_ENCODE_FAILED, _ASN_ENCODED_OK, ASN_DEBUG(), ATF_POINTER, asn_TYPE_descriptor_s::der_encoder, der_write_tags(), asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_enc_rval_s::encoded, asn_TYPE_member_s::flags, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::name, asn_TYPE_member_s::optional, asn_TYPE_member_s::tag, asn_TYPE_member_s::tag_mode, and asn_TYPE_member_s::type.
asn_enc_rval_t SEQUENCE_encode_uper | ( | asn_TYPE_descriptor_t * | td, |
asn_per_constraints_t * | constraints, | ||
void * | sptr, | ||
asn_per_outp_t * | po | ||
) |
Definition at line 1295 of file constr_SEQUENCE.c.
References _ASN_ENCODE_FAILED, _ASN_ENCODED_OK, ASN_DEBUG(), ATF_POINTER, asn_TYPE_member_s::default_value, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_SEQUENCE_specifics_s::ext_after, asn_SEQUENCE_specifics_s::ext_before, asn_TYPE_member_s::flags, IN_EXTENSION_GROUP, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::name, asn_SEQUENCE_specifics_s::oms, asn_TYPE_member_s::optional, asn_TYPE_member_s::per_constraints, per_put_few_bits(), asn_SEQUENCE_specifics_s::roms_count, SEQUENCE_handle_extensions(), asn_TYPE_descriptor_s::specifics, asn_TYPE_member_s::type, asn_TYPE_descriptor_s::uper_encoder, and uper_put_nslength().
asn_enc_rval_t SEQUENCE_encode_xer | ( | asn_TYPE_descriptor_t * | td, |
void * | sptr, | ||
int | ilevel, | ||
enum xer_encoder_flags_e | flags, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 852 of file constr_SEQUENCE.c.
References _ASN_CALLBACK3, _ASN_ENCODE_FAILED, _ASN_ENCODED_OK, _i_ASN_TEXT_INDENT, ATF_POINTER, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_enc_rval_s::encoded, asn_TYPE_member_s::flags, asn_TYPE_member_s::memb_offset, asn_TYPE_member_s::name, asn_TYPE_member_s::optional, asn_TYPE_member_s::type, asn_TYPE_descriptor_s::xer_encoder, and XER_F_CANONICAL.
void SEQUENCE_free | ( | asn_TYPE_descriptor_t * | td, |
void * | sptr, | ||
int | contents_only | ||
) |
Definition at line 951 of file constr_SEQUENCE.c.
References ASN_DEBUG(), ASN_STRUCT_FREE, ASN_STRUCT_FREE_CONTENTS_ONLY, ATF_POINTER, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_TYPE_member_s::flags, FREEMEM, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, and asn_TYPE_member_s::type.
|
static |
Definition at line 1243 of file constr_SEQUENCE.c.
References ASN_DEBUG(), ATF_POINTER, asn_TYPE_descriptor_s::elements, asn_SEQUENCE_specifics_s::ext_after, asn_SEQUENCE_specifics_s::ext_before, asn_TYPE_member_s::flags, IN_EXTENSION_GROUP, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::per_constraints, per_put_few_bits(), asn_TYPE_descriptor_s::specifics, asn_TYPE_member_s::type, and uper_open_type_put().
Referenced by SEQUENCE_encode_uper().
int SEQUENCE_print | ( | asn_TYPE_descriptor_t * | td, |
const void * | sptr, | ||
int | ilevel, | ||
asn_app_consume_bytes_f * | cb, | ||
void * | app_key | ||
) |
Definition at line 903 of file constr_SEQUENCE.c.
References _i_INDENT, ATF_POINTER, asn_TYPE_descriptor_s::elements, asn_TYPE_descriptor_s::elements_count, asn_TYPE_member_s::flags, asn_TYPE_member_s::memb_offset, asn_TYPE_descriptor_s::name, asn_TYPE_member_s::name, asn_TYPE_member_s::optional, asn_TYPE_descriptor_s::print_struct, and asn_TYPE_member_s::type.