Commit fa45e88b authored by luhan Wang's avatar luhan Wang

modify missed code

parent 4ac4fbe8
......@@ -19,13 +19,13 @@ asn_TYPE_operation_t asn_OP_ANY = {
OCTET_STRING_encode_der,
OCTET_STRING_decode_xer_hex,
ANY_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
0,
0,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0, 0, 0, 0,
#else
......
......@@ -25,13 +25,13 @@ asn_TYPE_operation_t asn_OP_BIT_STRING = {
OCTET_STRING_encode_der, /* Implemented in terms of OCTET STRING */
OCTET_STRING_decode_xer_binary,
BIT_STRING_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
BIT_STRING_decode_oer,
BIT_STRING_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <BIT_STRING.h>
......@@ -171,4 +171,4 @@ BIT_STRING_encode_oer(const asn_TYPE_descriptor_t *td,
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -22,13 +22,13 @@ asn_TYPE_operation_t asn_OP_INTEGER = {
INTEGER_encode_der,
INTEGER_decode_xer,
INTEGER_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
INTEGER_decode_oer, /* OER decoder */
INTEGER_encode_oer, /* Canonical OER encoder */
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <INTEGER.h>
......@@ -176,4 +176,4 @@ INTEGER_encode_oer(const asn_TYPE_descriptor_t *td,
ASN__ENCODED_OK(er);
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -26,13 +26,13 @@ asn_TYPE_operation_t asn_OP_NativeEnumerated = {
NativeInteger_encode_der,
NativeInteger_decode_xer,
NativeEnumerated_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
NativeEnumerated_decode_oer,
NativeEnumerated_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <NativeEnumerated.h>
......@@ -146,4 +146,4 @@ NativeEnumerated_encode_oer(const asn_TYPE_descriptor_t *td,
}
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -27,13 +27,13 @@ asn_TYPE_operation_t asn_OP_NativeInteger = {
NativeInteger_encode_der,
NativeInteger_decode_xer,
NativeInteger_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
NativeInteger_decode_oer, /* OER decoder */
NativeInteger_encode_oer, /* Canonical OER encoder */
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <NativeInteger.h>
......@@ -96,4 +96,4 @@ NativeInteger_encode_oer(const asn_TYPE_descriptor_t *td,
}
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -8,9 +8,9 @@
#include "Ngap_AMF-TNLAssociationSetupList.h"
#include "Ngap_AMF-TNLAssociationSetupItem.h"
static asn_oer_constraints_t asn_OER_type_Ngap_AMF_TNLAssociationSetupList_constr_1 CC_NOTUSED = {
{ 0, 0 },
-1 /* (SIZE(1..32)) */};
//static asn_oer_constraints_t asn_OER_type_Ngap_AMF_TNLAssociationSetupList_constr_1 CC_NOTUSED = {
// { 0, 0 },
// -1 /* (SIZE(1..32)) */};
asn_per_constraints_t asn_PER_type_Ngap_AMF_TNLAssociationSetupList_constr_1 CC_NOTUSED = {
{ APC_UNCONSTRAINED, -1, -1, 0, 0 },
{ APC_CONSTRAINED, 5, 5, 1, 32 } /* (SIZE(1..32)) */,
......@@ -45,7 +45,7 @@ asn_TYPE_descriptor_t asn_DEF_Ngap_AMF_TNLAssociationSetupList = {
asn_DEF_Ngap_AMF_TNLAssociationSetupList_tags_1, /* Same as above */
sizeof(asn_DEF_Ngap_AMF_TNLAssociationSetupList_tags_1)
/sizeof(asn_DEF_Ngap_AMF_TNLAssociationSetupList_tags_1[0]), /* 1 */
{ &asn_OER_type_Ngap_AMF_TNLAssociationSetupList_constr_1, &asn_PER_type_Ngap_AMF_TNLAssociationSetupList_constr_1, SEQUENCE_OF_constraint },
{ 0, &asn_PER_type_Ngap_AMF_TNLAssociationSetupList_constr_1, SEQUENCE_OF_constraint },
asn_MBR_Ngap_AMF_TNLAssociationSetupList_1,
1, /* Single element */
&asn_SPC_Ngap_AMF_TNLAssociationSetupList_specs_1 /* Additional specs */
......
......@@ -23,13 +23,13 @@ asn_TYPE_operation_t asn_OP_OBJECT_IDENTIFIER = {
der_encode_primitive,
OBJECT_IDENTIFIER_decode_xer,
OBJECT_IDENTIFIER_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
OBJECT_IDENTIFIER_decode_oer,
OBJECT_IDENTIFIER_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -28,13 +28,13 @@ asn_TYPE_operation_t asn_OP_OCTET_STRING = {
OCTET_STRING_encode_der,
OCTET_STRING_decode_xer_hex,
OCTET_STRING_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
OCTET_STRING_decode_oer,
OCTET_STRING_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <OCTET_STRING.h>
......@@ -168,4 +168,4 @@ OCTET_STRING_encode_oer(const asn_TYPE_descriptor_t *td,
}
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -16,7 +16,7 @@ asn_TYPE_operation_t asn_OP_OPEN_TYPE = {
OPEN_TYPE_encode_der,
OPEN_TYPE_decode_xer,
OPEN_TYPE_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0, 0, /* No OER support, use "-gen-OER" to enable */
#else
OPEN_TYPE_decode_oer,
......
......@@ -55,13 +55,13 @@ asn_TYPE_operation_t asn_OP_PrintableString = {
OCTET_STRING_encode_der,
OCTET_STRING_decode_xer_utf8,
OCTET_STRING_encode_xer_utf8,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
OCTET_STRING_decode_oer,
OCTET_STRING_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -287,13 +287,13 @@ asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx,
errno = ENOENT; /* Transfer syntax is not defined for any type. */
ASN__ENCODE_FAILED;
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
case ATS_BASIC_OER:
case ATS_CANONICAL_OER:
errno = ENOENT; /* PER is not defined. */
ASN__ENCODE_FAILED;
break;
#else /* ASN_DISABLE_OER_SUPPORT */
#else /* ASN_DISABLE_OER_SUPPORT_NGAP */
case ATS_BASIC_OER:
/* CANONICAL-OER is a superset of BASIC-OER. */
/* Fall through. */
......@@ -312,7 +312,7 @@ asn_encode_internal(const asn_codec_ctx_t *opt_codec_ctx,
ASN__ENCODE_FAILED;
}
break;
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
case ATS_UNALIGNED_BASIC_PER:
......@@ -448,7 +448,7 @@ asn_decode(const asn_codec_ctx_t *opt_codec_ctx,
case ATS_BASIC_OER:
case ATS_CANONICAL_OER:
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
errno = ENOENT;
ASN__DECODE_FAILED;
#else
......
......@@ -1491,13 +1491,13 @@ asn_TYPE_operation_t asn_OP_CHOICE = {
CHOICE_encode_der,
CHOICE_decode_xer,
CHOICE_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
CHOICE_decode_oer,
CHOICE_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <constr_CHOICE.h>
......@@ -377,4 +377,4 @@ CHOICE_encode_oer(const asn_TYPE_descriptor_t *td,
return er;
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -1972,13 +1972,13 @@ asn_TYPE_operation_t asn_OP_SEQUENCE = {
SEQUENCE_encode_der,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
SEQUENCE_decode_oer,
SEQUENCE_encode_oer,
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -334,13 +334,13 @@ asn_TYPE_operation_t asn_OP_SEQUENCE_OF = {
SEQUENCE_OF_encode_der,
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
SEQUENCE_OF_decode_oer, /* Same as SET OF decoder. */
SEQUENCE_OF_encode_oer, /* Same as SET OF encoder */
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
#ifdef ASN_DISABLE_PER_SUPPORT
0,
0,
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <constr_SEQUENCE.h>
......@@ -558,4 +558,4 @@ SEQUENCE_encode_oer(const asn_TYPE_descriptor_t *td,
}
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -1277,7 +1277,7 @@ asn_TYPE_operation_t asn_OP_SET_OF = {
SET_OF_encode_der,
SET_OF_decode_xer,
SET_OF_encode_xer,
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
0,
0,
#else
......
......@@ -3,7 +3,7 @@
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#ifndef ASN_DISABLE_OER_SUPPORT
#ifndef ASN_DISABLE_OER_SUPPORT_NGAP
#include <asn_internal.h>
#include <constr_SET_OF.h>
......@@ -282,4 +282,4 @@ SET_OF_encode_oer(const asn_TYPE_descriptor_t *td,
}
}
#endif /* ASN_DISABLE_OER_SUPPORT */
#endif /* ASN_DISABLE_OER_SUPPORT_NGAP */
......@@ -43,7 +43,7 @@ typedef struct asn_struct_ctx_s {
#include <constraints.h> /* Subtype constraints support */
#include <asn_random_fill.h> /* Random structures support */
#ifdef ASN_DISABLE_OER_SUPPORT
#ifdef ASN_DISABLE_OER_SUPPORT_NGAP
typedef void (oer_type_decoder_f)(void);
typedef void (oer_type_encoder_f)(void);
typedef void asn_oer_constraints_t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment