diff --git a/include/asn1common.h b/include/asn1common.h index ac72d0d..1274a13 100644 --- a/include/asn1common.h +++ b/include/asn1common.h @@ -16,6 +16,10 @@ * defines *****************************************************************************/ +#define ASN1_MAJOR_VERSION 0 +#define ASN1_MINOR_VERSION 1 +#define ASN1_FAST_VERSION "0.1" + #define ASN1_UPER_ALIGNED 0 #define ASN1_APER_ALIGNED 1 #define ASN1_OER_ALIGNED 2 diff --git a/include/asn1uper.h b/include/asn1uper.h index e94f152..359b194 100644 --- a/include/asn1uper.h +++ b/include/asn1uper.h @@ -24,6 +24,8 @@ #define uper_get_bits_length(U,S) (uper_get_bits_stream(U,S)+1) #define uper_put_bits_length(U,L,S) uper_put_bits_stream(U,(L)-1,S) +#define uper_get_seq_length(U,S) (uper_get_bits_stream(U,S)+1) + #define uper_init_extension(E) asn1_init_extension(E) #define uper_init_bitstream(E) asn1_init_bitstream(E)