2
* Generated by asn1c-0.9.22.1409 (http://lionet.info/asn1c)
3
* From ASN.1 module "SPNEGO"
4
* found in "spnego.asn1"
5
* `asn1c -fnative-types -fskeletons-copy`
8
#include <asn_internal.h>
13
MechType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
14
asn_app_constraint_failed_f *ctfailcb, void *app_key) {
15
/* Replace with underlying type checker */
16
td->check_constraints = asn_DEF_OBJECT_IDENTIFIER.check_constraints;
17
return td->check_constraints(td, sptr, ctfailcb, app_key);
21
* This type is implemented using OBJECT_IDENTIFIER,
22
* so here we adjust the DEF accordingly.
25
MechType_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
26
td->free_struct = asn_DEF_OBJECT_IDENTIFIER.free_struct;
27
td->print_struct = asn_DEF_OBJECT_IDENTIFIER.print_struct;
28
td->ber_decoder = asn_DEF_OBJECT_IDENTIFIER.ber_decoder;
29
td->der_encoder = asn_DEF_OBJECT_IDENTIFIER.der_encoder;
30
td->xer_decoder = asn_DEF_OBJECT_IDENTIFIER.xer_decoder;
31
td->xer_encoder = asn_DEF_OBJECT_IDENTIFIER.xer_encoder;
32
td->uper_decoder = asn_DEF_OBJECT_IDENTIFIER.uper_decoder;
33
td->uper_encoder = asn_DEF_OBJECT_IDENTIFIER.uper_encoder;
34
if(!td->per_constraints)
35
td->per_constraints = asn_DEF_OBJECT_IDENTIFIER.per_constraints;
36
td->elements = asn_DEF_OBJECT_IDENTIFIER.elements;
37
td->elements_count = asn_DEF_OBJECT_IDENTIFIER.elements_count;
38
td->specifics = asn_DEF_OBJECT_IDENTIFIER.specifics;
42
MechType_free(asn_TYPE_descriptor_t *td,
43
void *struct_ptr, int contents_only) {
44
MechType_1_inherit_TYPE_descriptor(td);
45
td->free_struct(td, struct_ptr, contents_only);
49
MechType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
50
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
51
MechType_1_inherit_TYPE_descriptor(td);
52
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
56
MechType_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
57
void **structure, const void *bufptr, size_t size, int tag_mode) {
58
MechType_1_inherit_TYPE_descriptor(td);
59
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
63
MechType_encode_der(asn_TYPE_descriptor_t *td,
64
void *structure, int tag_mode, ber_tlv_tag_t tag,
65
asn_app_consume_bytes_f *cb, void *app_key) {
66
MechType_1_inherit_TYPE_descriptor(td);
67
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
71
MechType_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
72
void **structure, const char *opt_mname, const void *bufptr, size_t size) {
73
MechType_1_inherit_TYPE_descriptor(td);
74
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
78
MechType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
79
int ilevel, enum xer_encoder_flags_e flags,
80
asn_app_consume_bytes_f *cb, void *app_key) {
81
MechType_1_inherit_TYPE_descriptor(td);
82
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
86
MechType_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
87
asn_per_constraints_t *constraints, void **structure, asn_per_data_t *per_data) {
88
MechType_1_inherit_TYPE_descriptor(td);
89
return td->uper_decoder(opt_codec_ctx, td, constraints, structure, per_data);
93
MechType_encode_uper(asn_TYPE_descriptor_t *td,
94
asn_per_constraints_t *constraints,
95
void *structure, asn_per_outp_t *per_out) {
96
MechType_1_inherit_TYPE_descriptor(td);
97
return td->uper_encoder(td, constraints, structure, per_out);
100
static ber_tlv_tag_t asn_DEF_MechType_tags_1[] = {
101
(ASN_TAG_CLASS_UNIVERSAL | (6 << 2))
103
asn_TYPE_descriptor_t asn_DEF_MechType = {
113
MechType_decode_uper,
114
MechType_encode_uper,
115
0, /* Use generic outmost tag fetcher */
116
asn_DEF_MechType_tags_1,
117
sizeof(asn_DEF_MechType_tags_1)
118
/sizeof(asn_DEF_MechType_tags_1[0]), /* 1 */
119
asn_DEF_MechType_tags_1, /* Same as above */
120
sizeof(asn_DEF_MechType_tags_1)
121
/sizeof(asn_DEF_MechType_tags_1[0]), /* 1 */
122
0, /* No PER visible constraints */
123
0, 0, /* No members */