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
a25584ba
Commit
a25584ba
authored
Oct 01, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed INTEGER/ENUMERATED mismatch
parent
18741a96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
87 deletions
+87
-87
libasn1parser/asn1p_y.c
libasn1parser/asn1p_y.c
+86
-86
libasn1parser/asn1p_y.y
libasn1parser/asn1p_y.y
+1
-1
No files found.
libasn1parser/asn1p_y.c
View file @
a25584ba
...
...
@@ -921,15 +921,15 @@ static const yytype_uint16 yyrline[] =
1840
,
1841
,
1847
,
1858
,
1859
,
1865
,
1866
,
1872
,
1873
,
1880
,
1881
,
1887
,
1888
,
1899
,
1905
,
1911
,
1912
,
1914
,
1915
,
1916
,
1921
,
1926
,
1931
,
1936
,
1948
,
1957
,
1958
,
1964
,
1965
,
1970
,
1973
,
1978
,
1986
,
199
1
,
2002
,
2005
,
2011
,
2012
,
2012
,
2013
,
201
5
,
2028
,
2033
,
2039
,
2053
,
2054
,
2058
,
2061
,
2064
,
2072
,
207
3
,
2074
,
2079
,
2078
,
2090
,
2099
,
2100
,
2101
,
2102
,
2105
,
21
08
,
2117
,
2133
,
2139
,
2145
,
2159
,
2170
,
2186
,
2189
,
2209
,
221
3
,
2217
,
2221
,
2228
,
2233
,
2239
,
2248
,
2253
,
2260
,
2268
,
22
78
,
2283
,
2290
,
2298
,
2308
,
2323
,
2328
,
2335
,
2342
,
2350
,
23
58
,
2365
,
2376
,
2380
,
2387
,
2418
,
2419
,
2423
,
2430
,
2436
,
243
7
,
2438
,
2439
,
2443
,
2444
,
2445
,
2449
,
2453
,
2461
,
2462
,
24
68
,
2475
,
2481
1973
,
1978
,
1986
,
199
2
,
2004
,
2007
,
2013
,
2014
,
2014
,
2015
,
201
7
,
2030
,
2035
,
2041
,
2055
,
2056
,
2060
,
2063
,
2066
,
2074
,
207
5
,
2076
,
2081
,
2080
,
2092
,
2101
,
2102
,
2103
,
2104
,
2107
,
21
10
,
2119
,
2135
,
2141
,
2147
,
2161
,
2172
,
2188
,
2191
,
2211
,
221
5
,
2219
,
2223
,
2230
,
2235
,
2241
,
2250
,
2255
,
2262
,
2270
,
22
80
,
2285
,
2292
,
2300
,
2310
,
2325
,
2330
,
2337
,
2344
,
2352
,
23
60
,
2367
,
2378
,
2382
,
2389
,
2420
,
2421
,
2425
,
2432
,
2438
,
243
9
,
2440
,
2441
,
2445
,
2446
,
2447
,
2451
,
2455
,
2463
,
2464
,
24
70
,
2477
,
2484
};
#endif
...
...
@@ -3959,7 +3959,7 @@ yyreduce:
case
190
:
#line 1722 "asn1p_y.y"
{
(
yyval
.
a_type
)
=
ASN_BASIC_
INTEGER
;
}
{
(
yyval
.
a_type
)
=
ASN_BASIC_
ENUMERATED
;
}
break
;
case
191
:
...
...
@@ -4319,7 +4319,7 @@ yyreduce:
break
;
case
263
:
#line 199
1
"asn1p_y.y"
#line 199
2
"asn1p_y.y"
{
(
yyval
.
a_value
)
=
asn1p_value_fromtype
((
yyvsp
[(
1
)
-
(
1
)].
a_expr
));
checkmem
((
yyval
.
a_value
));
...
...
@@ -4328,14 +4328,14 @@ yyreduce:
break
;
case
264
:
#line 200
2
"asn1p_y.y"
#line 200
4
"asn1p_y.y"
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CT_WCOMP
,
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
),
0
);
}
break
;
case
265
:
#line 200
5
"asn1p_y.y"
#line 200
7
"asn1p_y.y"
{
assert
((
yyvsp
[(
3
)
-
(
3
)].
a_constr
)
->
type
==
ACT_CA_CSV
);
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
)
->
type
=
ACT_CT_WCOMPS
;
...
...
@@ -4344,12 +4344,12 @@ yyreduce:
break
;
case
269
:
#line 201
3
"asn1p_y.y"
#line 201
5
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
2
)
-
(
3
)].
a_constr
);
}
break
;
case
270
:
#line 201
5
"asn1p_y.y"
#line 201
7
"asn1p_y.y"
{
assert
((
yyvsp
[(
4
)
-
(
5
)].
a_constr
)
->
type
==
ACT_CA_CSV
);
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
...
@@ -4365,7 +4365,7 @@ yyreduce:
break
;
case
271
:
#line 20
28
"asn1p_y.y"
#line 20
30
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
->
type
=
ACT_CA_CSV
;
...
...
@@ -4374,7 +4374,7 @@ yyreduce:
break
;
case
272
:
#line 203
3
"asn1p_y.y"
#line 203
5
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_constr
);
asn1p_constraint_insert
((
yyval
.
a_constr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_constr
));
...
...
@@ -4382,7 +4382,7 @@ yyreduce:
break
;
case
273
:
#line 20
39
"asn1p_y.y"
#line 20
41
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
...
...
@@ -4394,43 +4394,43 @@ yyreduce:
break
;
case
274
:
#line 205
3
"asn1p_y.y"
#line 205
5
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
ACPRES_DEFAULT
;
}
break
;
case
275
:
#line 205
4
"asn1p_y.y"
#line 205
6
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_pres
);
}
break
;
case
276
:
#line 20
58
"asn1p_y.y"
#line 20
60
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
ACPRES_PRESENT
;
}
break
;
case
277
:
#line 206
1
"asn1p_y.y"
#line 206
3
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
ACPRES_ABSENT
;
}
break
;
case
278
:
#line 206
4
"asn1p_y.y"
#line 206
6
"asn1p_y.y"
{
(
yyval
.
a_pres
)
=
ACPRES_OPTIONAL
;
}
break
;
case
282
:
#line 20
79
"asn1p_y.y"
#line 20
81
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
}
break
;
case
283
:
#line 20
79
"asn1p_y.y"
#line 20
81
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
...
...
@@ -4442,7 +4442,7 @@ yyreduce:
break
;
case
284
:
#line 209
0
"asn1p_y.y"
#line 209
2
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
(
yyval
.
a_constr
)
->
type
=
ACT_CT_CTNG
;
...
...
@@ -4452,41 +4452,41 @@ yyreduce:
break
;
case
285
:
#line 2
099
"asn1p_y.y"
#line 2
101
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_RANGE
;
}
break
;
case
286
:
#line 210
0
"asn1p_y.y"
#line 210
2
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_RLRANGE
;
}
break
;
case
287
:
#line 210
1
"asn1p_y.y"
#line 210
3
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_LLRANGE
;
}
break
;
case
288
:
#line 210
2
"asn1p_y.y"
#line 210
4
"asn1p_y.y"
{
(
yyval
.
a_ctype
)
=
ACT_EL_ULRANGE
;
}
break
;
case
289
:
#line 210
5
"asn1p_y.y"
#line 210
7
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
break
;
case
290
:
#line 21
08
"asn1p_y.y"
#line 21
10
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_constr
);
}
break
;
case
291
:
#line 211
7
"asn1p_y.y"
#line 211
9
"asn1p_y.y"
{
asn1p_ref_t
*
ref
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_constraint_t
*
ct
;
...
...
@@ -4503,14 +4503,14 @@ yyreduce:
break
;
case
292
:
#line 213
3
"asn1p_y.y"
#line 213
5
"asn1p_y.y"
{
CONSTRAINT_INSERT
((
yyval
.
a_constr
),
ACT_CA_CRC
,
(
yyvsp
[(
1
)
-
(
4
)].
a_constr
),
(
yyvsp
[(
3
)
-
(
4
)].
a_constr
));
}
break
;
case
293
:
#line 21
39
"asn1p_y.y"
#line 21
41
"asn1p_y.y"
{
(
yyval
.
a_constr
)
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
checkmem
((
yyval
.
a_constr
));
...
...
@@ -4520,7 +4520,7 @@ yyreduce:
break
;
case
294
:
#line 214
5
"asn1p_y.y"
#line 214
7
"asn1p_y.y"
{
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
,
currentModule
);
...
...
@@ -4532,7 +4532,7 @@ yyreduce:
break
;
case
295
:
#line 21
59
"asn1p_y.y"
#line 21
61
"asn1p_y.y"
{
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
2
)
-
(
2
)].
tv_str
))
+
2
);
int
ret
;
...
...
@@ -4547,7 +4547,7 @@ yyreduce:
break
;
case
296
:
#line 217
0
"asn1p_y.y"
#line 217
2
"asn1p_y.y"
{
char
*
p
=
malloc
(
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
))
+
3
);
int
ret
;
...
...
@@ -4563,14 +4563,14 @@ yyreduce:
break
;
case
297
:
#line 218
6
"asn1p_y.y"
#line 218
8
"asn1p_y.y"
{
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
}
break
;
case
298
:
#line 21
89
"asn1p_y.y"
#line 21
91
"asn1p_y.y"
{
int
l1
=
strlen
((
yyvsp
[(
1
)
-
(
3
)].
tv_str
));
int
l3
=
strlen
((
yyvsp
[(
3
)
-
(
3
)].
tv_str
));
...
...
@@ -4585,7 +4585,7 @@ yyreduce:
break
;
case
299
:
#line 22
09
"asn1p_y.y"
#line 22
11
"asn1p_y.y"
{
(
yyval
.
a_marker
).
flags
=
EM_NOMARK
;
(
yyval
.
a_marker
).
default_value
=
0
;
...
...
@@ -4593,12 +4593,12 @@ yyreduce:
break
;
case
300
:
#line 221
3
"asn1p_y.y"
#line 221
5
"asn1p_y.y"
{
(
yyval
.
a_marker
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_marker
);
}
break
;
case
301
:
#line 221
7
"asn1p_y.y"
#line 221
9
"asn1p_y.y"
{
(
yyval
.
a_marker
).
flags
=
EM_OPTIONAL
|
EM_INDIRECT
;
(
yyval
.
a_marker
).
default_value
=
0
;
...
...
@@ -4606,7 +4606,7 @@ yyreduce:
break
;
case
302
:
#line 222
1
"asn1p_y.y"
#line 222
3
"asn1p_y.y"
{
(
yyval
.
a_marker
).
flags
=
EM_DEFAULT
;
(
yyval
.
a_marker
).
default_value
=
(
yyvsp
[(
2
)
-
(
2
)].
a_value
);
...
...
@@ -4614,7 +4614,7 @@ yyreduce:
break
;
case
303
:
#line 22
28
"asn1p_y.y"
#line 22
30
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4623,7 +4623,7 @@ yyreduce:
break
;
case
304
:
#line 223
3
"asn1p_y.y"
#line 223
5
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
...
@@ -4631,7 +4631,7 @@ yyreduce:
break
;
case
305
:
#line 22
39
"asn1p_y.y"
#line 22
41
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4642,7 +4642,7 @@ yyreduce:
break
;
case
306
:
#line 22
48
"asn1p_y.y"
#line 22
50
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4651,7 +4651,7 @@ yyreduce:
break
;
case
307
:
#line 225
3
"asn1p_y.y"
#line 225
5
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
...
@@ -4659,7 +4659,7 @@ yyreduce:
break
;
case
308
:
#line 226
0
"asn1p_y.y"
#line 226
2
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4671,7 +4671,7 @@ yyreduce:
break
;
case
309
:
#line 22
68
"asn1p_y.y"
#line 22
70
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4683,7 +4683,7 @@ yyreduce:
break
;
case
310
:
#line 22
78
"asn1p_y.y"
#line 22
80
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4692,7 +4692,7 @@ yyreduce:
break
;
case
311
:
#line 228
3
"asn1p_y.y"
#line 228
5
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
...
@@ -4700,7 +4700,7 @@ yyreduce:
break
;
case
312
:
#line 229
0
"asn1p_y.y"
#line 229
2
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4712,7 +4712,7 @@ yyreduce:
break
;
case
313
:
#line 2
298
"asn1p_y.y"
#line 2
300
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4724,7 +4724,7 @@ yyreduce:
break
;
case
314
:
#line 23
08
"asn1p_y.y"
#line 23
10
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_expr
);
asn1p_expr_t
*
first_memb
=
TQ_FIRST
(
&
((
yyval
.
a_expr
)
->
members
));
...
...
@@ -4741,7 +4741,7 @@ yyreduce:
break
;
case
315
:
#line 232
3
"asn1p_y.y"
#line 232
5
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4750,7 +4750,7 @@ yyreduce:
break
;
case
316
:
#line 23
28
"asn1p_y.y"
#line 23
30
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
(
yyvsp
[(
1
)
-
(
3
)].
a_expr
);
asn1p_expr_add
((
yyval
.
a_expr
),
(
yyvsp
[(
3
)
-
(
3
)].
a_expr
));
...
...
@@ -4758,7 +4758,7 @@ yyreduce:
break
;
case
317
:
#line 233
5
"asn1p_y.y"
#line 233
7
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4769,7 +4769,7 @@ yyreduce:
break
;
case
318
:
#line 234
2
"asn1p_y.y"
#line 234
4
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4781,7 +4781,7 @@ yyreduce:
break
;
case
319
:
#line 235
0
"asn1p_y.y"
#line 235
2
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4793,7 +4793,7 @@ yyreduce:
break
;
case
320
:
#line 23
58
"asn1p_y.y"
#line 23
60
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4804,7 +4804,7 @@ yyreduce:
break
;
case
321
:
#line 236
5
"asn1p_y.y"
#line 236
7
"asn1p_y.y"
{
(
yyval
.
a_expr
)
=
NEW_EXPR
();
checkmem
((
yyval
.
a_expr
));
...
...
@@ -4816,7 +4816,7 @@ yyreduce:
break
;
case
322
:
#line 237
6
"asn1p_y.y"
#line 237
8
"asn1p_y.y"
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
...
...
@@ -4824,7 +4824,7 @@ yyreduce:
break
;
case
323
:
#line 238
0
"asn1p_y.y"
#line 238
2
"asn1p_y.y"
{
(
yyval
.
a_value
)
=
asn1p_value_fromint
((
yyvsp
[(
1
)
-
(
1
)].
a_int
));
checkmem
((
yyval
.
a_value
));
...
...
@@ -4832,7 +4832,7 @@ yyreduce:
break
;
case
324
:
#line 238
7
"asn1p_y.y"
#line 238
9
"asn1p_y.y"
{
(
yyval
.
a_value
)
=
asn1p_value_fromdouble
((
yyvsp
[(
1
)
-
(
1
)].
a_dbl
));
checkmem
((
yyval
.
a_value
));
...
...
@@ -4840,17 +4840,17 @@ yyreduce:
break
;
case
325
:
#line 24
18
"asn1p_y.y"
#line 24
20
"asn1p_y.y"
{
memset
(
&
(
yyval
.
a_tag
),
0
,
sizeof
((
yyval
.
a_tag
)));
}
break
;
case
326
:
#line 24
19
"asn1p_y.y"
#line 24
21
"asn1p_y.y"
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
1
)].
a_tag
);
}
break
;
case
327
:
#line 242
3
"asn1p_y.y"
#line 242
5
"asn1p_y.y"
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
1
)
-
(
2
)].
a_tag
);
(
yyval
.
a_tag
).
tag_mode
=
(
yyvsp
[(
2
)
-
(
2
)].
a_tag
).
tag_mode
;
...
...
@@ -4858,7 +4858,7 @@ yyreduce:
break
;
case
328
:
#line 243
0
"asn1p_y.y"
#line 243
2
"asn1p_y.y"
{
(
yyval
.
a_tag
)
=
(
yyvsp
[(
2
)
-
(
4
)].
a_tag
);
(
yyval
.
a_tag
).
tag_value
=
(
yyvsp
[(
3
)
-
(
4
)].
a_int
);
...
...
@@ -4866,42 +4866,42 @@ yyreduce:
break
;
case
329
:
#line 243
6
"asn1p_y.y"
#line 243
8
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_CONTEXT_SPECIFIC
;
}
break
;
case
330
:
#line 243
7
"asn1p_y.y"
#line 243
9
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_UNIVERSAL
;
}
break
;
case
331
:
#line 24
38
"asn1p_y.y"
#line 24
40
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_APPLICATION
;
}
break
;
case
332
:
#line 24
39
"asn1p_y.y"
#line 24
41
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_class
=
TC_PRIVATE
;
}
break
;
case
333
:
#line 244
3
"asn1p_y.y"
#line 244
5
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_DEFAULT
;
}
break
;
case
334
:
#line 244
4
"asn1p_y.y"
#line 244
6
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_IMPLICIT
;
}
break
;
case
335
:
#line 244
5
"asn1p_y.y"
#line 244
7
"asn1p_y.y"
{
(
yyval
.
a_tag
).
tag_mode
=
TM_EXPLICIT
;
}
break
;
case
336
:
#line 24
49
"asn1p_y.y"
#line 24
51
"asn1p_y.y"
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
...
@@ -4909,7 +4909,7 @@ yyreduce:
break
;
case
337
:
#line 245
3
"asn1p_y.y"
#line 245
5
"asn1p_y.y"
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
...
@@ -4917,19 +4917,19 @@ yyreduce:
break
;
case
338
:
#line 246
1
"asn1p_y.y"
#line 246
3
"asn1p_y.y"
{
(
yyval
.
tv_str
)
=
0
;
}
break
;
case
339
:
#line 246
2
"asn1p_y.y"
#line 246
4
"asn1p_y.y"
{
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
}
break
;
case
340
:
#line 24
68
"asn1p_y.y"
#line 24
70
"asn1p_y.y"
{
checkmem
((
yyvsp
[(
1
)
-
(
1
)].
tv_str
));
(
yyval
.
tv_str
)
=
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
);
...
...
@@ -4937,7 +4937,7 @@ yyreduce:
break
;
case
341
:
#line 247
5
"asn1p_y.y"
#line 247
7
"asn1p_y.y"
{
(
yyval
.
a_ref
)
=
asn1p_ref_new
(
yylineno
,
currentModule
);
asn1p_ref_add_component
((
yyval
.
a_ref
),
(
yyvsp
[(
1
)
-
(
1
)].
tv_str
),
RLT_lowercase
);
...
...
@@ -4946,7 +4946,7 @@ yyreduce:
break
;
case
342
:
#line 248
1
"asn1p_y.y"
#line 248
4
"asn1p_y.y"
{
(
yyval
.
a_value
)
=
asn1p_value_fromref
((
yyvsp
[(
1
)
-
(
1
)].
a_ref
),
0
);
}
...
...
@@ -4954,7 +4954,7 @@ yyreduce:
/* Line 1267 of yacc.c. */
#line 495
5
"asn1p_y.c"
#line 495
8
"asn1p_y.c"
default:
break
;
}
YY_SYMBOL_PRINT
(
"-> $$ ="
,
yyr1
[
yyn
],
&
yyval
,
&
yyloc
);
...
...
@@ -5168,7 +5168,7 @@ yyreturn:
}
#line 248
5
"asn1p_y.y"
#line 248
8
"asn1p_y.y"
...
...
libasn1parser/asn1p_y.y
View file @
a25584ba
...
...
@@ -1719,7 +1719,7 @@ BasicTypeId:
*/
BasicTypeId_UniverationCompatible:
TOK_INTEGER { $$ = ASN_BASIC_INTEGER; }
| TOK_ENUMERATED { $$ = ASN_BASIC_
INTEGER
; }
| TOK_ENUMERATED { $$ = ASN_BASIC_
ENUMERATED
; }
| TOK_BIT TOK_STRING { $$ = ASN_BASIC_BIT_STRING; }
;
...
...
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