Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Havar
asn1c
Commits
e54e942f
Commit
e54e942f
authored
Jul 21, 2005
by
Lev Walkin
Browse files
tagging mode is implicit if automatic tags environment is used
parent
3d551c06
Changes
7
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e54e942f
0.9.16: 2005-July-04
0.9.17: 2005-July-20
* Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
(Test cases 55, 86).
0.9.16: 2005-July-04
* GeneralizedTime API now supports fractions of seconds.
Thanks to Bent Nicolaisen <BN@JAI.com> for support.
...
...
configure
View file @
e54e942f
...
...
@@ -1881,7 +1881,7 @@ fi
# Define the identity of the package.
PACKAGE=asn1c
VERSION=0.9.1
6
VERSION=0.9.1
7
cat >>confdefs.h <<_ACEOF
...
...
configure.in
View file @
e54e942f
...
...
@@ -3,7 +3,7 @@ AC_INIT(libasn1parser/asn1p_y.y)
AC_CANONICAL_BUILD
AC_CANONICAL_TARGET
AC_PREREQ(2.53)
AM_INIT_AUTOMAKE(asn1c, 0.9.1
6
)
AM_INIT_AUTOMAKE(asn1c, 0.9.1
7
)
AM_MAINTAINER_MODE
...
...
libasn1fix/asn1fix_constr.c
View file @
e54e942f
...
...
@@ -252,7 +252,8 @@ asn1f_fix_constr_tag(arg_t *arg, int fix_top_level) {
static
int
_asn1f_fix_type_tag
(
arg_t
*
arg
,
asn1p_expr_t
*
expr
)
{
int
must_explicit
=
_asn1f_check_if_tag_must_be_explicit
(
arg
,
expr
);
int
module_impl_tags
=
(
arg
->
mod
->
module_flags
&
MSF_IMPLICIT_TAGS
);
int
module_impl_tags
=
(
arg
->
mod
->
module_flags
&
(
MSF_IMPLICIT_TAGS
|
MSF_AUTOMATIC_TAGS
));
int
r_value
=
0
;
if
(
expr
->
tag
.
tag_mode
==
TM_DEFAULT
)
{
...
...
tests/55-components-of-OK.asn1.-EF
View file @
e54e942f
...
...
@@ -5,7 +5,7 @@ BEGIN
OneType ::= SEQUENCE {
one-1 INTEGER,
one-2 [1]
EX
PLICIT BOOLEAN,
one-2 [1]
IM
PLICIT BOOLEAN,
one-3 SEQUENCE {
alpha [0] IMPLICIT INTEGER,
beta [1] IMPLICIT INTEGER,
...
...
tests/86-atags-OK.asn1
0 → 100644
View file @
e54e942f
-- OK: Everything is fine
-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
-- .spelio.software.asn1c.test (9363.1.5.1)
-- .86
ModuleAutoTags
{ iso org(3) dod(6) internet (1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 86 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
A ::= SEQUENCE { a INTEGER }
B ::= SEQUENCE { a [0] INTEGER }
C ::= SEQUENCE { a [0] IMPLICIT INTEGER }
D ::= SEQUENCE { a [0] EXPLICIT INTEGER }
E ::= SEQUENCE { a [0] CHOICE { b INTEGER } }
END
tests/86-atags-OK.asn1.-EF
0 → 100644
View file @
e54e942f
ModuleAutoTags { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 86 }
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
A ::= SEQUENCE {
a [0] IMPLICIT INTEGER
}
B ::= SEQUENCE {
a [0] IMPLICIT INTEGER
}
C ::= SEQUENCE {
a [0] IMPLICIT INTEGER
}
D ::= SEQUENCE {
a [0] EXPLICIT INTEGER
}
E ::= SEQUENCE {
a [0] EXPLICIT CHOICE {
b [0] IMPLICIT INTEGER
}
}
END
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment