Commit e1bf2193 authored by Bi-Ruei, Chiu's avatar Bi-Ruei, Chiu

Fix issue 180 and 182

parent e9050cc9
...@@ -31,6 +31,7 @@ per_type_encoder_f ANY_encode_uper; ...@@ -31,6 +31,7 @@ per_type_encoder_f ANY_encode_uper;
#define ANY_free OCTET_STRING_free #define ANY_free OCTET_STRING_free
#define ANY_print OCTET_STRING_print #define ANY_print OCTET_STRING_print
#define ANY_compare OCTET_STRING_compare
#define ANY_constraint asn_generic_no_constraint #define ANY_constraint asn_generic_no_constraint
#define ANY_decode_ber OCTET_STRING_decode_ber #define ANY_decode_ber OCTET_STRING_decode_ber
#define ANY_encode_der OCTET_STRING_encode_der #define ANY_encode_der OCTET_STRING_encode_der
......
...@@ -21,6 +21,7 @@ der_type_encoder_f GeneralizedTime_encode_der; ...@@ -21,6 +21,7 @@ der_type_encoder_f GeneralizedTime_encode_der;
xer_type_encoder_f GeneralizedTime_encode_xer; xer_type_encoder_f GeneralizedTime_encode_xer;
#define GeneralizedTime_free OCTET_STRING_free #define GeneralizedTime_free OCTET_STRING_free
#define GeneralizedTime_compare OCTET_STRING_compare
#define GeneralizedTime_decode_ber OCTET_STRING_decode_ber #define GeneralizedTime_decode_ber OCTET_STRING_decode_ber
#define GeneralizedTime_decode_xer OCTET_STRING_decode_xer_utf8 #define GeneralizedTime_decode_xer OCTET_STRING_decode_xer_utf8
#define GeneralizedTime_decode_uper OCTET_STRING_decode_uper #define GeneralizedTime_decode_uper OCTET_STRING_decode_uper
......
...@@ -19,7 +19,7 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = { ...@@ -19,7 +19,7 @@ asn_TYPE_descriptor_t asn_DEF_INTEGER = {
"INTEGER", "INTEGER",
INTEGER_free, INTEGER_free,
INTEGER_print, INTEGER_print,
INTEGER_compare, INTEGER_compare,
asn_generic_no_constraint, asn_generic_no_constraint,
ber_decode_primitive, ber_decode_primitive,
INTEGER_encode_der, INTEGER_encode_der,
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <asn_application.h> #include <asn_application.h>
#include <asn_codecs_prim.h> #include <asn_codecs_prim.h>
#include <NativeInteger.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -35,9 +36,10 @@ typedef struct asn_INTEGER_specifics_s { ...@@ -35,9 +36,10 @@ typedef struct asn_INTEGER_specifics_s {
} asn_INTEGER_specifics_t; } asn_INTEGER_specifics_t;
#define INTEGER_free ASN__PRIMITIVE_TYPE_free #define INTEGER_free ASN__PRIMITIVE_TYPE_free
#define INTEGER_decode_ber ber_decode_primitive
#define INTEGER_constraint asn_generic_no_constraint
asn_struct_print_f INTEGER_print; asn_struct_print_f INTEGER_print;
asn_struct_compare_f INTEGER_compare; asn_struct_compare_f INTEGER_compare;
ber_type_decoder_f INTEGER_decode_ber;
der_type_encoder_f INTEGER_encode_der; der_type_encoder_f INTEGER_encode_der;
xer_type_decoder_f INTEGER_decode_xer; xer_type_decoder_f INTEGER_decode_xer;
xer_type_encoder_f INTEGER_encode_xer; xer_type_encoder_f INTEGER_encode_xer;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <asn_application.h> #include <asn_application.h>
#include <asn_codecs_prim.h> #include <asn_codecs_prim.h>
#include <OCTET_STRING.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
...@@ -24,6 +25,7 @@ xer_type_decoder_f OBJECT_IDENTIFIER_decode_xer; ...@@ -24,6 +25,7 @@ xer_type_decoder_f OBJECT_IDENTIFIER_decode_xer;
xer_type_encoder_f OBJECT_IDENTIFIER_encode_xer; xer_type_encoder_f OBJECT_IDENTIFIER_encode_xer;
#define OBJECT_IDENTIFIER_free ASN__PRIMITIVE_TYPE_free #define OBJECT_IDENTIFIER_free ASN__PRIMITIVE_TYPE_free
#define OBJECT_IDENTIFIER_compare OCTET_STRING_compare
#define OBJECT_IDENTIFIER_decode_ber ber_decode_primitive #define OBJECT_IDENTIFIER_decode_ber ber_decode_primitive
#define OBJECT_IDENTIFIER_encode_der der_encode_primitive #define OBJECT_IDENTIFIER_encode_der der_encode_primitive
#define OBJECT_IDENTIFIER_decode_uper OCTET_STRING_decode_uper #define OBJECT_IDENTIFIER_decode_uper OCTET_STRING_decode_uper
......
...@@ -21,6 +21,7 @@ xer_type_decoder_f RELATIVE_OID_decode_xer; ...@@ -21,6 +21,7 @@ xer_type_decoder_f RELATIVE_OID_decode_xer;
xer_type_encoder_f RELATIVE_OID_encode_xer; xer_type_encoder_f RELATIVE_OID_encode_xer;
#define RELATIVE_OID_free ASN__PRIMITIVE_TYPE_free #define RELATIVE_OID_free ASN__PRIMITIVE_TYPE_free
#define RELATIVE_OID_compare OCTET_STRING_compare
#define RELATIVE_OID_constraint asn_generic_no_constraint #define RELATIVE_OID_constraint asn_generic_no_constraint
#define RELATIVE_OID_decode_ber ber_decode_primitive #define RELATIVE_OID_decode_ber ber_decode_primitive
#define RELATIVE_OID_encode_der der_encode_primitive #define RELATIVE_OID_encode_der der_encode_primitive
......
...@@ -20,6 +20,7 @@ asn_constr_check_f UTCTime_constraint; ...@@ -20,6 +20,7 @@ asn_constr_check_f UTCTime_constraint;
xer_type_encoder_f UTCTime_encode_xer; xer_type_encoder_f UTCTime_encode_xer;
#define UTCTime_free OCTET_STRING_free #define UTCTime_free OCTET_STRING_free
#define UTCTime_compare OCTET_STRING_compare
#define UTCTime_decode_ber OCTET_STRING_decode_ber #define UTCTime_decode_ber OCTET_STRING_decode_ber
#define UTCTime_encode_der OCTET_STRING_encode_der #define UTCTime_encode_der OCTET_STRING_encode_der
#define UTCTime_decode_xer OCTET_STRING_decode_xer_utf8 #define UTCTime_decode_xer OCTET_STRING_decode_xer_utf8
......
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