Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
70853058
Commit
70853058
authored
Nov 26, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade
parent
04affbfa
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
271 additions
and
296 deletions
+271
-296
libasn1parser/asn1p_expr.h
libasn1parser/asn1p_expr.h
+2
-1
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+265
-266
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+3
-4
libasn1parser/asn1parser.c
libasn1parser/asn1parser.c
+0
-16
libasn1parser/asn1parser.h
libasn1parser/asn1parser.h
+1
-9
No files found.
libasn1parser/asn1p_expr.h
View file @
70853058
...
...
@@ -176,7 +176,7 @@ typedef struct asn1p_expr_s {
enum
asn1p_expr_marker_e
{
EM_NOMARK
,
EM_INDIRECT
=
0x01
,
/* 00001 Represent as pointer */
EM_OMITABLE
=
0x0
3
,
/* 00011
May be absent in encoding */
EM_OMITABLE
=
0x0
2
,
/* 00010
May be absent in encoding */
EM_OPTIONAL
=
0x07
,
/* 00111 Optional member */
EM_DEFAULT
=
0x0F
,
/* 01111 default_value */
EM_UNRECURSE
=
0x10
,
/* 10000 Use safe naming */
...
...
@@ -225,6 +225,7 @@ typedef struct asn1p_expr_s {
*/
int
_anonymous_type
;
/* This type is unnamed */
int
_type_unique_index
;
/* A per top-level-type unique index */
int
_type_referenced
;
/* This type is referenced from another place */
/*
* Opaque data may be attached to this structure,
...
...
libasn1parser/asn1p_y.c
View file @
70853058
This diff is collapsed.
Click to expand it.
libasn1parser/asn1p_y.y
View file @
70853058
...
...
@@ -575,9 +575,8 @@ ModuleSpecificationElement:
*/
| BasicString {
return yyerror(
"Attempt to redefine a standard basic type, "
"use -ftypesXY to switch back "
"to older version of ASN.1 standard");
"Attempt to redefine a standard basic string type, "
"please comment out or remove this type redefinition.");
}
;
...
...
@@ -1944,7 +1943,7 @@ optMarker:
Marker:
TOK_OPTIONAL {
$$.flags = EM_OPTIONAL;
$$.flags = EM_OPTIONAL
| EM_INDIRECT
;
$$.default_value = 0;
}
| TOK_DEFAULT Value {
...
...
libasn1parser/asn1parser.c
View file @
70853058
...
...
@@ -138,22 +138,6 @@ _asn1p_set_flags(enum asn1p_flags flags) {
asn1p__flex_debug
=
1
;
}
/*
* Restrict embedded types to ASN.1:1988 version of standard.
*/
if
(
flags
&
A1P_TYPES_RESTRICT_TO_1988
)
{
flags
&=
~
A1P_TYPES_RESTRICT_TO_1988
;
asn1p_lexer_types_year
=
1988
;
}
/*
* Restrict embedded types to ASN.1:1988 version of standard.
*/
if
(
flags
&
A1P_TYPES_RESTRICT_TO_1988
)
{
flags
&=
~
A1P_TYPES_RESTRICT_TO_1988
;
asn1p_lexer_types_year
=
1988
;
}
/*
* Check that we haven't missed an unknown flag.
*/
...
...
libasn1parser/asn1parser.h
View file @
70853058
...
...
@@ -57,15 +57,7 @@ enum asn1p_flags {
/*
* Enable verbose debugging output from lexer.
*/
A1P_LEXER_DEBUG
=
0x0001
,
/*
* Embedded types restricted to ASN.1:1988
*/
A1P_TYPES_RESTRICT_TO_1988
=
0x0010
,
/*
* Embedded constructs (concepts) restricted to ASN.1:1990
*/
A1P_CONSTRUCTS_RESTRICT_TO_1990
=
0x0020
,
A1P_LEXER_DEBUG
=
0x0001
};
/*
...
...
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