-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support files from vlm/asn1c project
- Loading branch information
Showing
158 changed files
with
22,321 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.o | ||
ldap-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c) | ||
* From ASN.1 module "Lightweight-Directory-Access-Protocol-V3" | ||
* found in "Lightweight-Directory-Access-Protocol-V3.asn1" | ||
* `asn1c -fcompound-names` | ||
*/ | ||
|
||
#include "AbandonRequest.h" | ||
|
||
int | ||
AbandonRequest_constraint(asn_TYPE_descriptor_t *td, const void *sptr, | ||
asn_app_constraint_failed_f *ctfailcb, void *app_key) { | ||
long value; | ||
|
||
if(!sptr) { | ||
_ASN_CTFAIL(app_key, td, sptr, | ||
"%s: value not given (%s:%d)", | ||
td->name, __FILE__, __LINE__); | ||
return -1; | ||
} | ||
|
||
value = *(const long *)sptr; | ||
|
||
if((value >= 0 && value <= 2147483647)) { | ||
/* Constraint check succeeded */ | ||
return 0; | ||
} else { | ||
_ASN_CTFAIL(app_key, td, sptr, | ||
"%s: constraint failed (%s:%d)", | ||
td->name, __FILE__, __LINE__); | ||
return -1; | ||
} | ||
} | ||
|
||
/* | ||
* This type is implemented using MessageID, | ||
* so here we adjust the DEF accordingly. | ||
*/ | ||
static void | ||
AbandonRequest_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { | ||
td->free_struct = asn_DEF_MessageID.free_struct; | ||
td->print_struct = asn_DEF_MessageID.print_struct; | ||
td->ber_decoder = asn_DEF_MessageID.ber_decoder; | ||
td->der_encoder = asn_DEF_MessageID.der_encoder; | ||
td->xer_decoder = asn_DEF_MessageID.xer_decoder; | ||
td->xer_encoder = asn_DEF_MessageID.xer_encoder; | ||
td->uper_decoder = asn_DEF_MessageID.uper_decoder; | ||
td->uper_encoder = asn_DEF_MessageID.uper_encoder; | ||
if(!td->per_constraints) | ||
td->per_constraints = asn_DEF_MessageID.per_constraints; | ||
td->elements = asn_DEF_MessageID.elements; | ||
td->elements_count = asn_DEF_MessageID.elements_count; | ||
td->specifics = asn_DEF_MessageID.specifics; | ||
} | ||
|
||
void | ||
AbandonRequest_free(asn_TYPE_descriptor_t *td, | ||
void *struct_ptr, int contents_only) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
td->free_struct(td, struct_ptr, contents_only); | ||
} | ||
|
||
int | ||
AbandonRequest_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, | ||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key); | ||
} | ||
|
||
asn_dec_rval_t | ||
AbandonRequest_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, | ||
void **structure, const void *bufptr, size_t size, int tag_mode) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); | ||
} | ||
|
||
asn_enc_rval_t | ||
AbandonRequest_encode_der(asn_TYPE_descriptor_t *td, | ||
void *structure, int tag_mode, ber_tlv_tag_t tag, | ||
asn_app_consume_bytes_f *cb, void *app_key) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); | ||
} | ||
|
||
asn_dec_rval_t | ||
AbandonRequest_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, | ||
void **structure, const char *opt_mname, const void *bufptr, size_t size) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); | ||
} | ||
|
||
asn_enc_rval_t | ||
AbandonRequest_encode_xer(asn_TYPE_descriptor_t *td, void *structure, | ||
int ilevel, enum xer_encoder_flags_e flags, | ||
asn_app_consume_bytes_f *cb, void *app_key) { | ||
AbandonRequest_1_inherit_TYPE_descriptor(td); | ||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); | ||
} | ||
|
||
static ber_tlv_tag_t asn_DEF_AbandonRequest_tags_1[] = { | ||
(ASN_TAG_CLASS_APPLICATION | (16 << 2)), | ||
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2)) | ||
}; | ||
asn_TYPE_descriptor_t asn_DEF_AbandonRequest = { | ||
"AbandonRequest", | ||
"AbandonRequest", | ||
AbandonRequest_free, | ||
AbandonRequest_print, | ||
AbandonRequest_constraint, | ||
AbandonRequest_decode_ber, | ||
AbandonRequest_encode_der, | ||
AbandonRequest_decode_xer, | ||
AbandonRequest_encode_xer, | ||
0, 0, /* No PER support, use "-gen-PER" to enable */ | ||
0, /* Use generic outmost tag fetcher */ | ||
asn_DEF_AbandonRequest_tags_1, | ||
sizeof(asn_DEF_AbandonRequest_tags_1) | ||
/sizeof(asn_DEF_AbandonRequest_tags_1[0]) - 1, /* 1 */ | ||
asn_DEF_AbandonRequest_tags_1, /* Same as above */ | ||
sizeof(asn_DEF_AbandonRequest_tags_1) | ||
/sizeof(asn_DEF_AbandonRequest_tags_1[0]), /* 2 */ | ||
0, /* No PER visible constraints */ | ||
0, 0, /* No members */ | ||
0 /* No specifics */ | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c) | ||
* From ASN.1 module "Lightweight-Directory-Access-Protocol-V3" | ||
* found in "Lightweight-Directory-Access-Protocol-V3.asn1" | ||
* `asn1c -fcompound-names` | ||
*/ | ||
|
||
#ifndef _AbandonRequest_H_ | ||
#define _AbandonRequest_H_ | ||
|
||
|
||
#include <asn_application.h> | ||
|
||
/* Including external dependencies */ | ||
#include "MessageID.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* AbandonRequest */ | ||
typedef MessageID_t AbandonRequest_t; | ||
|
||
/* Implementation */ | ||
extern asn_TYPE_descriptor_t asn_DEF_AbandonRequest; | ||
asn_struct_free_f AbandonRequest_free; | ||
asn_struct_print_f AbandonRequest_print; | ||
asn_constr_check_f AbandonRequest_constraint; | ||
ber_type_decoder_f AbandonRequest_decode_ber; | ||
der_type_encoder_f AbandonRequest_encode_der; | ||
xer_type_decoder_f AbandonRequest_decode_xer; | ||
xer_type_encoder_f AbandonRequest_encode_xer; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _AbandonRequest_H_ */ | ||
#include <asn_internal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c) | ||
* From ASN.1 module "Lightweight-Directory-Access-Protocol-V3" | ||
* found in "Lightweight-Directory-Access-Protocol-V3.asn1" | ||
* `asn1c -fcompound-names` | ||
*/ | ||
|
||
#include "AddRequest.h" | ||
|
||
static asn_TYPE_member_t asn_MBR_AddRequest_1[] = { | ||
{ ATF_NOFLAGS, 0, offsetof(struct AddRequest, entry), | ||
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), | ||
0, | ||
&asn_DEF_LDAPDN, | ||
0, /* Defer constraints checking to the member type */ | ||
0, /* PER is not compiled, use -gen-PER */ | ||
0, | ||
"entry" | ||
}, | ||
{ ATF_NOFLAGS, 0, offsetof(struct AddRequest, attributes), | ||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), | ||
0, | ||
&asn_DEF_AttributeList, | ||
0, /* Defer constraints checking to the member type */ | ||
0, /* PER is not compiled, use -gen-PER */ | ||
0, | ||
"attributes" | ||
}, | ||
}; | ||
static ber_tlv_tag_t asn_DEF_AddRequest_tags_1[] = { | ||
(ASN_TAG_CLASS_APPLICATION | (8 << 2)), | ||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) | ||
}; | ||
static asn_TYPE_tag2member_t asn_MAP_AddRequest_tag2el_1[] = { | ||
{ (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 }, /* entry at 268 */ | ||
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* attributes at 269 */ | ||
}; | ||
static asn_SEQUENCE_specifics_t asn_SPC_AddRequest_specs_1 = { | ||
sizeof(struct AddRequest), | ||
offsetof(struct AddRequest, _asn_ctx), | ||
asn_MAP_AddRequest_tag2el_1, | ||
2, /* Count of tags in the map */ | ||
0, 0, 0, /* Optional elements (not needed) */ | ||
1, /* Start extensions */ | ||
3 /* Stop extensions */ | ||
}; | ||
asn_TYPE_descriptor_t asn_DEF_AddRequest = { | ||
"AddRequest", | ||
"AddRequest", | ||
SEQUENCE_free, | ||
SEQUENCE_print, | ||
SEQUENCE_constraint, | ||
SEQUENCE_decode_ber, | ||
SEQUENCE_encode_der, | ||
SEQUENCE_decode_xer, | ||
SEQUENCE_encode_xer, | ||
0, 0, /* No PER support, use "-gen-PER" to enable */ | ||
0, /* Use generic outmost tag fetcher */ | ||
asn_DEF_AddRequest_tags_1, | ||
sizeof(asn_DEF_AddRequest_tags_1) | ||
/sizeof(asn_DEF_AddRequest_tags_1[0]) - 1, /* 1 */ | ||
asn_DEF_AddRequest_tags_1, /* Same as above */ | ||
sizeof(asn_DEF_AddRequest_tags_1) | ||
/sizeof(asn_DEF_AddRequest_tags_1[0]), /* 2 */ | ||
0, /* No PER visible constraints */ | ||
asn_MBR_AddRequest_1, | ||
2, /* Elements count */ | ||
&asn_SPC_AddRequest_specs_1 /* Additional specs */ | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c) | ||
* From ASN.1 module "Lightweight-Directory-Access-Protocol-V3" | ||
* found in "Lightweight-Directory-Access-Protocol-V3.asn1" | ||
* `asn1c -fcompound-names` | ||
*/ | ||
|
||
#ifndef _AddRequest_H_ | ||
#define _AddRequest_H_ | ||
|
||
|
||
#include <asn_application.h> | ||
|
||
/* Including external dependencies */ | ||
#include "LDAPDN.h" | ||
#include "AttributeList.h" | ||
#include <constr_SEQUENCE.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* AddRequest */ | ||
typedef struct AddRequest { | ||
LDAPDN_t entry; | ||
AttributeList_t attributes; | ||
/* | ||
* This type is extensible, | ||
* possible extensions are below. | ||
*/ | ||
|
||
/* Context for parsing across buffer boundaries */ | ||
asn_struct_ctx_t _asn_ctx; | ||
} AddRequest_t; | ||
|
||
/* Implementation */ | ||
extern asn_TYPE_descriptor_t asn_DEF_AddRequest; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* _AddRequest_H_ */ | ||
#include <asn_internal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
/* | ||
* Generated by asn1c-0.9.23 (http://lionet.info/asn1c) | ||
* From ASN.1 module "Lightweight-Directory-Access-Protocol-V3" | ||
* found in "Lightweight-Directory-Access-Protocol-V3.asn1" | ||
* `asn1c -fcompound-names` | ||
*/ | ||
|
||
#include "AddResponse.h" | ||
|
||
int | ||
AddResponse_constraint(asn_TYPE_descriptor_t *td, const void *sptr, | ||
asn_app_constraint_failed_f *ctfailcb, void *app_key) { | ||
/* Replace with underlying type checker */ | ||
td->check_constraints = asn_DEF_LDAPResult.check_constraints; | ||
return td->check_constraints(td, sptr, ctfailcb, app_key); | ||
} | ||
|
||
/* | ||
* This type is implemented using LDAPResult, | ||
* so here we adjust the DEF accordingly. | ||
*/ | ||
static void | ||
AddResponse_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { | ||
td->free_struct = asn_DEF_LDAPResult.free_struct; | ||
td->print_struct = asn_DEF_LDAPResult.print_struct; | ||
td->ber_decoder = asn_DEF_LDAPResult.ber_decoder; | ||
td->der_encoder = asn_DEF_LDAPResult.der_encoder; | ||
td->xer_decoder = asn_DEF_LDAPResult.xer_decoder; | ||
td->xer_encoder = asn_DEF_LDAPResult.xer_encoder; | ||
td->uper_decoder = asn_DEF_LDAPResult.uper_decoder; | ||
td->uper_encoder = asn_DEF_LDAPResult.uper_encoder; | ||
if(!td->per_constraints) | ||
td->per_constraints = asn_DEF_LDAPResult.per_constraints; | ||
td->elements = asn_DEF_LDAPResult.elements; | ||
td->elements_count = asn_DEF_LDAPResult.elements_count; | ||
td->specifics = asn_DEF_LDAPResult.specifics; | ||
} | ||
|
||
void | ||
AddResponse_free(asn_TYPE_descriptor_t *td, | ||
void *struct_ptr, int contents_only) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
td->free_struct(td, struct_ptr, contents_only); | ||
} | ||
|
||
int | ||
AddResponse_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, | ||
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
return td->print_struct(td, struct_ptr, ilevel, cb, app_key); | ||
} | ||
|
||
asn_dec_rval_t | ||
AddResponse_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, | ||
void **structure, const void *bufptr, size_t size, int tag_mode) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); | ||
} | ||
|
||
asn_enc_rval_t | ||
AddResponse_encode_der(asn_TYPE_descriptor_t *td, | ||
void *structure, int tag_mode, ber_tlv_tag_t tag, | ||
asn_app_consume_bytes_f *cb, void *app_key) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); | ||
} | ||
|
||
asn_dec_rval_t | ||
AddResponse_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, | ||
void **structure, const char *opt_mname, const void *bufptr, size_t size) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); | ||
} | ||
|
||
asn_enc_rval_t | ||
AddResponse_encode_xer(asn_TYPE_descriptor_t *td, void *structure, | ||
int ilevel, enum xer_encoder_flags_e flags, | ||
asn_app_consume_bytes_f *cb, void *app_key) { | ||
AddResponse_1_inherit_TYPE_descriptor(td); | ||
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); | ||
} | ||
|
||
static ber_tlv_tag_t asn_DEF_AddResponse_tags_1[] = { | ||
(ASN_TAG_CLASS_APPLICATION | (9 << 2)), | ||
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) | ||
}; | ||
asn_TYPE_descriptor_t asn_DEF_AddResponse = { | ||
"AddResponse", | ||
"AddResponse", | ||
AddResponse_free, | ||
AddResponse_print, | ||
AddResponse_constraint, | ||
AddResponse_decode_ber, | ||
AddResponse_encode_der, | ||
AddResponse_decode_xer, | ||
AddResponse_encode_xer, | ||
0, 0, /* No PER support, use "-gen-PER" to enable */ | ||
0, /* Use generic outmost tag fetcher */ | ||
asn_DEF_AddResponse_tags_1, | ||
sizeof(asn_DEF_AddResponse_tags_1) | ||
/sizeof(asn_DEF_AddResponse_tags_1[0]) - 1, /* 1 */ | ||
asn_DEF_AddResponse_tags_1, /* Same as above */ | ||
sizeof(asn_DEF_AddResponse_tags_1) | ||
/sizeof(asn_DEF_AddResponse_tags_1[0]), /* 2 */ | ||
0, /* No PER visible constraints */ | ||
0, 0, /* Defined elsewhere */ | ||
0 /* No specifics */ | ||
}; | ||
|
Oops, something went wrong.