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
Hide 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
...
...
@@ -386,31 +386,31 @@ static const short yyrline[] = { 0,
320
,
326
,
332
,
348
,
373
,
375
,
378
,
382
,
387
,
394
,
402
,
407
,
411
,
420
,
422
,
430
,
434
,
442
,
446
,
449
,
452
,
456
,
476
,
478
,
486
,
490
,
522
,
526
,
535
,
542
,
555
,
562
,
564
,
576
,
58
9
,
600
,
605
,
611
,
617
,
619
,
62
2
,
633
,
639
,
645
,
652
,
658
,
666
,
670
,
673
,
680
,
68
6
,
692
,
699
,
705
,
714
,
716
,
725
,
733
,
747
,
759
,
76
5
,
781
,
790
,
800
,
810
,
815
,
822
,
829
,
839
,
845
,
85
1
,
855
,
878
,
880
,
882
,
888
,
894
,
902
,
908
,
915
,
9
20
,
926
,
932
,
938
,
941
,
947
,
957
,
959
,
962
,
970
,
97
6
,
985
,
991
,
1008
,
1010
,
1015
,
1019
,
1024
,
1029
,
1035
,
103
9
,
1050
,
1059
,
1068
,
1079
,
1101
,
1108
,
1127
,
1131
,
1137
,
114
3
,
1149
,
1159
,
1169
,
1175
,
1189
,
1213
,
1220
,
1234
,
1243
,
125
3
,
1263
,
1273
,
1281
,
1302
,
1311
,
1320
,
1321
,
1323
,
1330
,
134
2
,
1352
,
1360
,
1360
,
1365
,
1370
,
1375
,
1380
,
1384
,
1388
,
139
1
,
1394
,
1399
,
1411
,
1428
,
1433
,
1438
,
1471
,
1481
,
1495
,
149
7
,
1498
,
1499
,
1500
,
1501
,
1502
,
1503
,
1504
,
1505
,
1506
,
150
7
,
1508
,
1514
,
1516
,
1517
,
1520
,
1527
,
1539
,
1541
,
1545
,
154
9
,
1550
,
1551
,
1552
,
1553
,
1557
,
1558
,
1559
,
1560
,
1564
,
156
5
,
1572
,
1572
,
1573
,
1573
,
1574
,
1576
,
1578
,
1583
,
1587
,
159
6
,
1600
,
1605
,
1609
,
1615
,
1625
,
1629
,
1632
,
1635
,
1638
,
164
3
,
1652
,
1660
,
1666
,
1672
,
1679
,
1687
,
1695
,
1704
,
1707
,
17
10
,
1711
,
1721
,
1723
,
1724
,
1725
,
1728
,
1732
,
1737
,
1743
,
174
8
,
1751
,
1754
,
1767
,
1781
,
1785
,
1790
,
1794
,
1799
,
1806
,
181
9
,
1821
,
1824
,
1828
,
1831
,
1836
,
1840
,
1848
,
1863
,
1869
,
187
6
,
1889
,
1901
,
1916
,
1920
,
1937
,
1942
,
1945
,
1950
,
1972
,
197
7
,
1982
,
1988
,
1994
,
2002
,
2010
,
2018
,
2025
,
2035
,
2040
,
20
70
,
2072
,
2075
,
2082
,
2088
,
2090
,
2091
,
2092
,
2095
,
2097
,
209
8
,
2101
,
2106
,
2113
,
2120
,
2122
,
2127
555
,
562
,
564
,
576
,
58
8
,
599
,
604
,
610
,
616
,
618
,
62
1
,
632
,
638
,
644
,
651
,
657
,
665
,
669
,
672
,
679
,
68
5
,
691
,
698
,
704
,
713
,
715
,
724
,
732
,
746
,
758
,
76
4
,
780
,
789
,
799
,
809
,
814
,
821
,
828
,
838
,
844
,
85
0
,
854
,
877
,
879
,
881
,
887
,
893
,
901
,
907
,
914
,
9
19
,
925
,
931
,
937
,
940
,
946
,
956
,
958
,
961
,
969
,
97
5
,
984
,
990
,
1007
,
1009
,
1014
,
1018
,
1023
,
1028
,
1034
,
103
8
,
1049
,
1058
,
1067
,
1078
,
1100
,
1107
,
1126
,
1130
,
1136
,
114
2
,
1148
,
1158
,
1168
,
1174
,
1188
,
1212
,
1219
,
1233
,
1242
,
125
2
,
1262
,
1272
,
1280
,
1301
,
1310
,
1319
,
1320
,
1322
,
1329
,
134
1
,
1351
,
1359
,
1359
,
1364
,
1369
,
1374
,
1379
,
1383
,
1387
,
139
0
,
1393
,
1398
,
1410
,
1427
,
1432
,
1437
,
1470
,
1480
,
1494
,
149
6
,
1497
,
1498
,
1499
,
1500
,
1501
,
1502
,
1503
,
1504
,
1505
,
150
6
,
1507
,
1513
,
1515
,
1516
,
1519
,
1526
,
1538
,
1540
,
1544
,
154
8
,
1549
,
1550
,
1551
,
1552
,
1556
,
1557
,
1558
,
1559
,
1563
,
156
4
,
1571
,
1571
,
1572
,
1572
,
1573
,
1575
,
1577
,
1582
,
1586
,
159
5
,
1599
,
1604
,
1608
,
1614
,
1624
,
1628
,
1631
,
1634
,
1637
,
164
2
,
1651
,
1659
,
1665
,
1671
,
1678
,
1686
,
1694
,
1703
,
1706
,
17
09
,
1710
,
1720
,
1722
,
1723
,
1724
,
1727
,
1731
,
1736
,
1742
,
174
7
,
1750
,
1753
,
1766
,
1780
,
1784
,
1789
,
1793
,
1798
,
1805
,
181
8
,
1820
,
1823
,
1827
,
1830
,
1835
,
1839
,
1847
,
1862
,
1868
,
187
5
,
1888
,
1900
,
1915
,
1919
,
1936
,
1941
,
1944
,
1949
,
1971
,
197
6
,
1981
,
1987
,
1993
,
2001
,
2009
,
2017
,
2024
,
2034
,
2039
,
20
69
,
2071
,
2074
,
2081
,
2087
,
2089
,
2090
,
2091
,
2094
,
2096
,
209
7
,
2100
,
2105
,
2112
,
2119
,
2121
,
2126
};
#endif
...
...
@@ -1624,13 +1624,12 @@ case 34:
#line 576 "asn1p_y.y"
{
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."
);
;
break
;}
case
35
:
#line 5
90
"asn1p_y.y"
#line 5
89
"asn1p_y.y"
{
if
(
!
saved_aid
&&
0
)
return
yyerror
(
"Unterminated IMPORTS FROM, "
...
...
@@ -1640,13 +1639,13 @@ case 35:
;
break
;}
case
36
:
#line
600
"asn1p_y.y"
#line
599
"asn1p_y.y"
{
return
yyerror
(
"Empty IMPORTS list"
);
;
break
;}
case
37
:
#line 60
6
"asn1p_y.y"
#line 60
5
"asn1p_y.y"
{
yyval
.
a_module
=
asn1p_module_new
();
checkmem
(
yyval
.
a_module
);
...
...
@@ -1654,22 +1653,22 @@ case 37:
;
break
;}
case
38
:
#line 61
1
"asn1p_y.y"
#line 61
0
"asn1p_y.y"
{
yyval
.
a_module
=
yyvsp
[
-
1
].
a_module
;
TQ_ADD
(
&
(
yyval
.
a_module
->
imports
),
yyvsp
[
0
].
a_xports
,
xp_next
);
;
break
;}
case
39
:
#line 61
8
"asn1p_y.y"
#line 61
7
"asn1p_y.y"
{
memset
(
&
yyval
.
a_aid
,
0
,
sizeof
(
yyval
.
a_aid
));
;
break
;}
case
40
:
#line 61
9
"asn1p_y.y"
#line 61
8
"asn1p_y.y"
{
yyval
.
a_aid
.
oid
=
yyvsp
[
0
].
a_oid
;
;
break
;}
case
41
:
#line 62
3
"asn1p_y.y"
#line 62
2
"asn1p_y.y"
{
yyval
.
a_xports
=
yyvsp
[
-
3
].
a_xports
;
yyval
.
a_xports
->
fromModuleName
=
yyvsp
[
-
1
].
tv_str
;
...
...
@@ -1680,7 +1679,7 @@ case 41:
;
break
;}
case
42
:
#line 63
4
"asn1p_y.y"
#line 63
3
"asn1p_y.y"
{
yyval
.
a_xports
=
asn1p_xports_new
();
checkmem
(
yyval
.
a_xports
);
...
...
@@ -1688,14 +1687,14 @@ case 42:
;
break
;}
case
43
:
#line 63
9
"asn1p_y.y"
#line 63
8
"asn1p_y.y"
{
yyval
.
a_xports
=
yyvsp
[
-
2
].
a_xports
;
TQ_ADD
(
&
(
yyval
.
a_xports
->
members
),
yyvsp
[
0
].
a_expr
,
next
);
;
break
;}
case
44
:
#line 64
6
"asn1p_y.y"
#line 64
5
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1704,7 +1703,7 @@ case 44:
;
break
;}
case
45
:
#line 65
2
"asn1p_y.y"
#line 65
1
"asn1p_y.y"
{
/* Completely equivalent to above */
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1713,7 +1712,7 @@ case 45:
;
break
;}
case
46
:
#line 65
8
"asn1p_y.y"
#line 65
7
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1722,19 +1721,19 @@ case 46:
;
break
;}
case
47
:
#line 66
7
"asn1p_y.y"
#line 66
6
"asn1p_y.y"
{
yyval
.
a_xports
=
yyvsp
[
-
1
].
a_xports
;
;
break
;}
case
48
:
#line 6
70
"asn1p_y.y"
#line 6
69
"asn1p_y.y"
{
yyval
.
a_xports
=
0
;
;
break
;}
case
49
:
#line 67
3
"asn1p_y.y"
#line 67
2
"asn1p_y.y"
{
/* Empty EXPORTS clause effectively prohibits export. */
yyval
.
a_xports
=
asn1p_xports_new
();
...
...
@@ -1742,7 +1741,7 @@ case 49:
;
break
;}
case
50
:
#line 68
1
"asn1p_y.y"
#line 68
0
"asn1p_y.y"
{
yyval
.
a_xports
=
asn1p_xports_new
();
assert
(
yyval
.
a_xports
);
...
...
@@ -1750,14 +1749,14 @@ case 50:
;
break
;}
case
51
:
#line 68
6
"asn1p_y.y"
#line 68
5
"asn1p_y.y"
{
yyval
.
a_xports
=
yyvsp
[
-
2
].
a_xports
;
TQ_ADD
(
&
(
yyval
.
a_xports
->
members
),
yyvsp
[
0
].
a_expr
,
next
);
;
break
;}
case
52
:
#line 69
3
"asn1p_y.y"
#line 69
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1766,7 +1765,7 @@ case 52:
;
break
;}
case
53
:
#line 69
9
"asn1p_y.y"
#line 69
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1775,7 +1774,7 @@ case 53:
;
break
;}
case
54
:
#line 70
5
"asn1p_y.y"
#line 70
4
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1784,11 +1783,11 @@ case 54:
;
break
;}
case
55
:
#line 71
6
"asn1p_y.y"
#line 71
5
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
;
break
;}
case
56
:
#line 71
6
"asn1p_y.y"
#line 71
5
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
4
].
a_expr
;
assert
(
yyval
.
a_expr
->
Identifier
==
0
);
...
...
@@ -1798,7 +1797,7 @@ case 56:
;
break
;}
case
57
:
#line 72
6
"asn1p_y.y"
#line 72
5
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1808,7 +1807,7 @@ case 57:
;
break
;}
case
58
:
#line 73
3
"asn1p_y.y"
#line 73
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1817,7 +1816,7 @@ case 58:
;
break
;}
case
59
:
#line 75
1
"asn1p_y.y"
#line 75
0
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1828,7 +1827,7 @@ case 59:
;
break
;}
case
60
:
#line 75
9
"asn1p_y.y"
#line 75
8
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
yyval
.
a_expr
->
Identifier
=
yyvsp
[
-
2
].
tv_str
;
...
...
@@ -1837,7 +1836,7 @@ case 60:
;
break
;}
case
61
:
#line 76
5
"asn1p_y.y"
#line 76
4
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
yyval
.
a_expr
->
Identifier
=
yyvsp
[
-
2
].
tv_str
;
...
...
@@ -1846,7 +1845,7 @@ case 61:
;
break
;}
case
62
:
#line 78
1
"asn1p_y.y"
#line 78
0
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
assert
(
yyval
.
a_expr
->
Identifier
==
0
);
...
...
@@ -1856,7 +1855,7 @@ case 62:
;
break
;}
case
63
:
#line 79
1
"asn1p_y.y"
#line 79
0
"asn1p_y.y"
{
int
ret
;
yyval
.
a_plist
=
asn1p_paramlist_new
(
yylineno
);
...
...
@@ -1868,7 +1867,7 @@ case 63:
;
break
;}
case
64
:
#line
800
"asn1p_y.y"
#line
799
"asn1p_y.y"
{
int
ret
;
yyval
.
a_plist
=
yyvsp
[
-
2
].
a_plist
;
...
...
@@ -1879,14 +1878,14 @@ case 64:
;
break
;}
case
65
:
#line 81
1
"asn1p_y.y"
#line 81
0
"asn1p_y.y"
{
yyval
.
a_parg
.
governor
=
NULL
;
yyval
.
a_parg
.
argument
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
66
:
#line 81
5
"asn1p_y.y"
#line 81
4
"asn1p_y.y"
{
int
ret
;
yyval
.
a_parg
.
governor
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -1896,7 +1895,7 @@ case 66:
;
break
;}
case
67
:
#line 82
2
"asn1p_y.y"
#line 82
1
"asn1p_y.y"
{
int
ret
;
yyval
.
a_parg
.
governor
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -1906,7 +1905,7 @@ case 67:
;
break
;}
case
68
:
#line 82
9
"asn1p_y.y"
#line 82
8
"asn1p_y.y"
{
int
ret
;
yyval
.
a_parg
.
governor
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -1917,7 +1916,7 @@ case 68:
;
break
;}
case
69
:
#line 8
40
"asn1p_y.y"
#line 8
39
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1925,20 +1924,20 @@ case 69:
;
break
;}
case
70
:
#line 84
5
"asn1p_y.y"
#line 84
4
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
asn1p_expr_add
(
yyval
.
a_expr
,
yyvsp
[
0
].
a_expr
);
;
break
;}
case
71
:
#line 85
2
"asn1p_y.y"
#line 85
1
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
;
break
;}
case
72
:
#line 85
5
"asn1p_y.y"
#line 85
4
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1948,15 +1947,15 @@ case 72:
;
break
;}
case
73
:
#line 87
9
"asn1p_y.y"
#line 87
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
;
break
;}
case
74
:
#line 8
80
"asn1p_y.y"
#line 8
79
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
;
break
;}
case
75
:
#line 88
3
"asn1p_y.y"
#line 88
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -1964,14 +1963,14 @@ case 75:
;
break
;}
case
76
:
#line 88
8
"asn1p_y.y"
#line 88
7
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
asn1p_expr_add
(
yyval
.
a_expr
,
yyvsp
[
0
].
a_expr
);
;
break
;}
case
77
:
#line 89
5
"asn1p_y.y"
#line 89
4
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
assert
(
yyval
.
a_expr
->
Identifier
==
0
);
...
...
@@ -1981,7 +1980,7 @@ case 77:
;
break
;}
case
78
:
#line 90
2
"asn1p_y.y"
#line 90
1
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
yyvsp
[
0
].
a_marker
.
flags
|=
yyval
.
a_expr
->
marker
.
flags
;
...
...
@@ -1990,7 +1989,7 @@ case 78:
;
break
;}
case
79
:
#line 90
8
"asn1p_y.y"
#line 90
7
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2000,13 +1999,13 @@ case 79:
;
break
;}
case
80
:
#line 91
5
"asn1p_y.y"
#line 91
4
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
;
break
;}
case
81
:
#line 92
1
"asn1p_y.y"
#line 92
0
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2014,14 +2013,14 @@ case 81:
;
break
;}
case
82
:
#line 92
6
"asn1p_y.y"
#line 92
5
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
asn1p_expr_add
(
yyval
.
a_expr
,
yyvsp
[
0
].
a_expr
);
;
break
;}
case
83
:
#line 93
3
"asn1p_y.y"
#line 93
2
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
assert
(
yyval
.
a_expr
->
Identifier
==
0
);
...
...
@@ -2029,20 +2028,20 @@ case 83:
;
break
;}
case
84
:
#line 93
8
"asn1p_y.y"
#line 93
7
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
;
break
;}
case
85
:
#line 94
1
"asn1p_y.y"
#line 94
0
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
_fixup_anonymous_identifier
(
yyval
.
a_expr
);
;
break
;}
case
86
:
#line 94
8
"asn1p_y.y"
#line 94
7
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2052,15 +2051,15 @@ case 86:
;
break
;}
case
87
:
#line 95
8
"asn1p_y.y"
#line 95
7
"asn1p_y.y"
{
yyval
.
a_int
=
0
;
;
break
;}
case
88
:
#line 95
9
"asn1p_y.y"
#line 95
8
"asn1p_y.y"
{
yyval
.
a_int
=
1
;
;
break
;}
case
89
:
#line 96
3
"asn1p_y.y"
#line 96
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2070,14 +2069,14 @@ case 89:
;
break
;}
case
90
:
#line 9
70
"asn1p_y.y"
#line 9
69
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
asn1p_expr_add
(
yyval
.
a_expr
,
yyvsp
[
0
].
a_expr
);
;
break
;}
case
91
:
#line 97
7
"asn1p_y.y"
#line 97
6
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2088,7 +2087,7 @@ case 91:
;
break
;}
case
92
:
#line 98
5
"asn1p_y.y"
#line 98
4
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
yyval
.
a_expr
->
Identifier
=
yyvsp
[
-
3
].
a_refcomp
.
name
;
...
...
@@ -2097,7 +2096,7 @@ case 92:
;
break
;}
case
93
:
#line 99
1
"asn1p_y.y"
#line 99
0
"asn1p_y.y"
{
int
ret
;
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
...
...
@@ -2115,47 +2114,47 @@ case 93:
;
break
;}
case
94
:
#line 100
9
"asn1p_y.y"
#line 100
8
"asn1p_y.y"
{
yyval
.
a_wsynt
=
0
;
;
break
;}
case
95
:
#line 10
10
"asn1p_y.y"
#line 10
09
"asn1p_y.y"
{
yyval
.
a_wsynt
=
yyvsp
[
0
].
a_wsynt
;
;
break
;}
case
96
:
#line 101
7
"asn1p_y.y"
#line 101
6
"asn1p_y.y"
{
asn1p_lexer_hack_enable_with_syntax
();
;
break
;}
case
97
:
#line 101
9
"asn1p_y.y"
#line 101
8
"asn1p_y.y"
{
yyval
.
a_wsynt
=
yyvsp
[
-
1
].
a_wsynt
;
;
break
;}
case
98
:
#line 102
5
"asn1p_y.y"
#line 102
4
"asn1p_y.y"
{
yyval
.
a_wsynt
=
asn1p_wsyntx_new
();
TQ_ADD
(
&
(
yyval
.
a_wsynt
->
chunks
),
yyvsp
[
0
].
a_wchunk
,
next
);
;
break
;}
case
99
:
#line 102
9
"asn1p_y.y"
#line 102
8
"asn1p_y.y"
{
yyval
.
a_wsynt
=
yyvsp
[
-
1
].
a_wsynt
;
TQ_ADD
(
&
(
yyval
.
a_wsynt
->
chunks
),
yyvsp
[
0
].
a_wchunk
,
next
);
;
break
;}
case
100
:
#line 103
6
"asn1p_y.y"
#line 103
5
"asn1p_y.y"
{
yyval
.
a_wchunk
=
asn1p_wsyntx_chunk_frombuf
(
yyvsp
[
0
].
tv_opaque
.
buf
,
yyvsp
[
0
].
tv_opaque
.
len
,
0
);
;
break
;}
case
101
:
#line 103
9
"asn1p_y.y"
#line 103
8
"asn1p_y.y"
{
asn1p_ref_t
*
ref
;
int
ret
;
...
...
@@ -2167,7 +2166,7 @@ case 101:
;
break
;}
case
102
:
#line 105
1
"asn1p_y.y"
#line 105
0
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2178,7 +2177,7 @@ case 102:
;
break
;}
case
103
:
#line 105
9
"asn1p_y.y"
#line 105
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2190,7 +2189,7 @@ case 103:
;
break
;}
case
104
:
#line 106
8
"asn1p_y.y"
#line 106
7
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2202,7 +2201,7 @@ case 104:
;
break
;}
case
105
:
#line 10
80
"asn1p_y.y"
#line 10
79
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
yyval
.
a_expr
->
tag
=
yyvsp
[
-
2
].
a_tag
;
...
...
@@ -2224,14 +2223,14 @@ case 105:
;
break
;}
case
106
:
#line 110
2
"asn1p_y.y"
#line 110
1
"asn1p_y.y"
{
yyval
.
a_int
=
asn1p_as_pointer
?
EM_INDIRECT
:
0
;
asn1p_as_pointer
=
0
;
;
break
;}
case
107
:
#line 110
9
"asn1p_y.y"
#line 110
8
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
yyval
.
a_expr
->
marker
.
flags
|=
yyvsp
[
-
1
].
a_int
;
...
...
@@ -2250,13 +2249,13 @@ case 107:
;
break
;}
case
108
:
#line 112
8
"asn1p_y.y"
#line 112
7
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
;
break
;}
case
109
:
#line 113
1
"asn1p_y.y"
#line 113
0
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
assert
(
yyval
.
a_expr
->
expr_type
==
A1TC_INVALID
);
...
...
@@ -2265,7 +2264,7 @@ case 109:
;
break
;}
case
110
:
#line 113
7
"asn1p_y.y"
#line 113
6
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
assert
(
yyval
.
a_expr
->
expr_type
==
A1TC_INVALID
);
...
...
@@ -2274,7 +2273,7 @@ case 110:
;
break
;}
case
111
:
#line 114
3
"asn1p_y.y"
#line 114
2
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
assert
(
yyval
.
a_expr
->
expr_type
==
A1TC_INVALID
);
...
...
@@ -2283,7 +2282,7 @@ case 111:
;
break
;}
case
112
:
#line 114
9
"asn1p_y.y"
#line 114
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2296,7 +2295,7 @@ case 112:
;
break
;}
case
113
:
#line 115
9
"asn1p_y.y"
#line 115
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2309,7 +2308,7 @@ case 113:
;
break
;}
case
114
:
#line 116
9
"asn1p_y.y"
#line 116
8
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2318,7 +2317,7 @@ case 114:
;
break
;}
case
115
:
#line 117
5
"asn1p_y.y"
#line 117
4
"asn1p_y.y"
{
int
ret
;
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
...
...
@@ -2332,7 +2331,7 @@ case 115:
;
break
;}
case
116
:
#line 118
9
"asn1p_y.y"
#line 118
8
"asn1p_y.y"
{
int
ret
;
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
...
...
@@ -2349,7 +2348,7 @@ case 116:
;
break
;}
case
117
:
#line 121
3
"asn1p_y.y"
#line 121
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2359,7 +2358,7 @@ case 117:
;
break
;}
case
118
:
#line 12
20
"asn1p_y.y"
#line 12
19
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2369,7 +2368,7 @@ case 118:
;
break
;}
case
119
:
#line 123
5
"asn1p_y.y"
#line 123
4
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2380,7 +2379,7 @@ case 119:
;
break
;}
case
120
:
#line 124
3
"asn1p_y.y"
#line 124
2
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2393,7 +2392,7 @@ case 120:
;
break
;}
case
121
:
#line 125
3
"asn1p_y.y"
#line 125
2
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2406,7 +2405,7 @@ case 121:
;
break
;}
case
122
:
#line 126
3
"asn1p_y.y"
#line 126
2
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2419,7 +2418,7 @@ case 122:
;
break
;}
case
123
:
#line 127
3
"asn1p_y.y"
#line 127
2
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2430,7 +2429,7 @@ case 123:
;
break
;}
case
124
:
#line 128
1
"asn1p_y.y"
#line 128
0
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
yyvsp
[
0
].
a_ref
;
...
...
@@ -2452,7 +2451,7 @@ case 124:
;
break
;}
case
125
:
#line 130
3
"asn1p_y.y"
#line 130
2
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
asn1p_ref_new
(
yylineno
);
...
...
@@ -2463,7 +2462,7 @@ case 125:
;
break
;}
case
126
:
#line 131
1
"asn1p_y.y"
#line 131
0
"asn1p_y.y"
{
int
ret
;
yyval
.
a_ref
=
yyvsp
[
-
2
].
a_ref
;
...
...
@@ -2473,21 +2472,21 @@ case 126:
;
break
;}
case
129
:
#line 132
5
"asn1p_y.y"
#line 132
4
"asn1p_y.y"
{
yyval
.
a_refcomp
.
lex_type
=
RLT_AmpUppercase
;
yyval
.
a_refcomp
.
name
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
130
:
#line 13
30
"asn1p_y.y"
#line 13
29
"asn1p_y.y"
{
yyval
.
a_refcomp
.
lex_type
=
RLT_Amplowercase
;
yyval
.
a_refcomp
.
name
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
131
:
#line 134
3
"asn1p_y.y"
#line 134
2
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
assert
(
yyval
.
a_expr
->
Identifier
==
NULL
);
...
...
@@ -2497,7 +2496,7 @@ case 131:
;
break
;}
case
132
:
#line 135
3
"asn1p_y.y"
#line 135
2
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2507,11 +2506,11 @@ case 132:
;
break
;}
case
133
:
#line 13
60
"asn1p_y.y"
#line 13
59
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
;
break
;}
case
134
:
#line 13
60
"asn1p_y.y"
#line 13
59
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_frombuf
(
yyvsp
[
0
].
tv_opaque
.
buf
,
yyvsp
[
0
].
tv_opaque
.
len
,
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2519,7 +2518,7 @@ case 134:
;
break
;}
case
135
:
#line 136
5
"asn1p_y.y"
#line 136
4
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2527,7 +2526,7 @@ case 135:
;
break
;}
case
136
:
#line 13
70
"asn1p_y.y"
#line 13
69
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2535,7 +2534,7 @@ case 136:
;
break
;}
case
137
:
#line 137
5
"asn1p_y.y"
#line 137
4
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2543,39 +2542,39 @@ case 137:
;
break
;}
case
138
:
#line 13
80
"asn1p_y.y"
#line 13
79
"asn1p_y.y"
{
yyval
.
a_value
=
_convert_bitstring2binary
(
yyvsp
[
0
].
tv_str
,
'B'
);
checkmem
(
yyval
.
a_value
);
;
break
;}
case
139
:
#line 138
4
"asn1p_y.y"
#line 138
3
"asn1p_y.y"
{
yyval
.
a_value
=
_convert_bitstring2binary
(
yyvsp
[
0
].
tv_str
,
'H'
);
checkmem
(
yyval
.
a_value
);
;
break
;}
case
140
:
#line 138
8
"asn1p_y.y"
#line 138
7
"asn1p_y.y"
{
yyval
.
a_value
=
yyval
.
a_value
;
;
break
;}
case
141
:
#line 139
1
"asn1p_y.y"
#line 139
0
"asn1p_y.y"
{
yyval
.
a_value
=
yyvsp
[
0
].
a_value
;
;
break
;}
case
142
:
#line 139
4
"asn1p_y.y"
#line 139
3
"asn1p_y.y"
{
yyval
.
a_value
=
yyvsp
[
0
].
a_value
;
;
break
;}
case
143
:
#line 1
400
"asn1p_y.y"
#line 1
399
"asn1p_y.y"
{
asn1p_ref_t
*
ref
;
int
ret
;
...
...
@@ -2589,7 +2588,7 @@ case 143:
;
break
;}
case
144
:
#line 141
1
"asn1p_y.y"
#line 141
0
"asn1p_y.y"
{
asn1p_ref_t
*
ref
;
int
ret
;
...
...
@@ -2606,14 +2605,14 @@ case 144:
;
break
;}
case
145
:
#line 142
9
"asn1p_y.y"
#line 142
8
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_frombuf
(
yyvsp
[
0
].
tv_opaque
.
buf
,
yyvsp
[
0
].
tv_opaque
.
len
,
0
);
checkmem
(
yyval
.
a_value
);
;
break
;}
case
146
:
#line 143
3
"asn1p_y.y"
#line 143
2
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
yyvsp
[
0
].
a_int
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2621,7 +2620,7 @@ case 146:
;
break
;}
case
147
:
#line 143
8
"asn1p_y.y"
#line 143
7
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
yyvsp
[
0
].
a_int
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -2629,7 +2628,7 @@ case 147:
;
break
;}
case
148
:
#line 147
2
"asn1p_y.y"
#line 147
1
"asn1p_y.y"
{
yyval
.
tv_opaque
.
len
=
yyvsp
[
0
].
tv_opaque
.
len
+
1
;
yyval
.
tv_opaque
.
buf
=
malloc
(
yyval
.
tv_opaque
.
len
+
1
);
...
...
@@ -2641,7 +2640,7 @@ case 148:
;
break
;}
case
149
:
#line 148
1
"asn1p_y.y"
#line 148
0
"asn1p_y.y"
{
int
newsize
=
yyvsp
[
-
1
].
tv_opaque
.
len
+
yyvsp
[
0
].
tv_opaque
.
len
;
char
*
p
=
malloc
(
newsize
+
1
);
...
...
@@ -2656,71 +2655,71 @@ case 149:
;
break
;}
case
150
:
#line 149
6
"asn1p_y.y"
#line 149
5
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_BOOLEAN
;
;
break
;}
case
151
:
#line 149
7
"asn1p_y.y"
#line 149
6
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_NULL
;
;
break
;}
case
152
:
#line 149
8
"asn1p_y.y"
#line 149
7
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_REAL
;
;
break
;}
case
153
:
#line 149
9
"asn1p_y.y"
#line 149
8
"asn1p_y.y"
{
yyval
.
a_type
=
yyvsp
[
0
].
a_type
;
;
break
;}
case
154
:
#line 1
500
"asn1p_y.y"
#line 1
499
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_OCTET_STRING
;
;
break
;}
case
155
:
#line 150
1
"asn1p_y.y"
#line 150
0
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_OBJECT_IDENTIFIER
;
;
break
;}
case
156
:
#line 150
2
"asn1p_y.y"
#line 150
1
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_RELATIVE_OID
;
;
break
;}
case
157
:
#line 150
3
"asn1p_y.y"
#line 150
2
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_EXTERNAL
;
;
break
;}
case
158
:
#line 150
4
"asn1p_y.y"
#line 150
3
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_EMBEDDED_PDV
;
;
break
;}
case
159
:
#line 150
5
"asn1p_y.y"
#line 150
4
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_CHARACTER_STRING
;
;
break
;}
case
160
:
#line 150
6
"asn1p_y.y"
#line 150
5
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_UTCTime
;
;
break
;}
case
161
:
#line 150
7
"asn1p_y.y"
#line 150
6
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_GeneralizedTime
;
;
break
;}
case
162
:
#line 150
8
"asn1p_y.y"
#line 150
7
"asn1p_y.y"
{
yyval
.
a_type
=
yyvsp
[
0
].
a_type
;
;
break
;}
case
163
:
#line 151
5
"asn1p_y.y"
#line 151
4
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_INTEGER
;
;
break
;}
case
164
:
#line 151
6
"asn1p_y.y"
#line 151
5
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_ENUMERATED
;
;
break
;}
case
165
:
#line 151
7
"asn1p_y.y"
#line 151
6
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_BASIC_BIT_STRING
;
;
break
;}
case
166
:
#line 152
1
"asn1p_y.y"
#line 152
0
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -2729,7 +2728,7 @@ case 166:
;
break
;}
case
167
:
#line 152
7
"asn1p_y.y"
#line 152
6
"asn1p_y.y"
{
if
(
yyvsp
[
0
].
a_expr
)
{
yyval
.
a_expr
=
yyvsp
[
0
].
a_expr
;
...
...
@@ -2742,91 +2741,91 @@ case 167:
;
break
;}
case
168
:
#line 15
40
"asn1p_y.y"
#line 15
39
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_BMPString
;
;
break
;}
case
169
:
#line 154
1
"asn1p_y.y"
#line 154
0
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_GeneralString
;
fprintf
(
stderr
,
"WARNING: GeneralString is not fully supported
\n
"
);
;
break
;}
case
170
:
#line 154
5
"asn1p_y.y"
#line 154
4
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_GraphicString
;
fprintf
(
stderr
,
"WARNING: GraphicString is not fully supported
\n
"
);
;
break
;}
case
171
:
#line 154
9
"asn1p_y.y"
#line 154
8
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_IA5String
;
;
break
;}
case
172
:
#line 15
50
"asn1p_y.y"
#line 15
49
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_ISO646String
;
;
break
;}
case
173
:
#line 155
1
"asn1p_y.y"
#line 155
0
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_NumericString
;
;
break
;}
case
174
:
#line 155
2
"asn1p_y.y"
#line 155
1
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_PrintableString
;
;
break
;}
case
175
:
#line 155
3
"asn1p_y.y"
#line 155
2
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_T61String
;
fprintf
(
stderr
,
"WARNING: T61String is not fully supported
\n
"
);
;
break
;}
case
176
:
#line 155
7
"asn1p_y.y"
#line 155
6
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_TeletexString
;
;
break
;}
case
177
:
#line 155
8
"asn1p_y.y"
#line 155
7
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_UniversalString
;
;
break
;}
case
178
:
#line 155
9
"asn1p_y.y"
#line 155
8
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_UTF8String
;
;
break
;}
case
179
:
#line 15
60
"asn1p_y.y"
#line 15
59
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_VideotexString
;
fprintf
(
stderr
,
"WARNING: VideotexString is not fully supported
\n
"
);
;
break
;}
case
180
:
#line 156
4
"asn1p_y.y"
#line 156
3
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_VisibleString
;
;
break
;}
case
181
:
#line 156
5
"asn1p_y.y"
#line 156
4
"asn1p_y.y"
{
yyval
.
a_type
=
ASN_STRING_ObjectDescriptor
;
;
break
;}
case
187
:
#line 157
7
"asn1p_y.y"
#line 157
6
"asn1p_y.y"
{
yyval
.
a_constr
=
0
;
;
break
;}
case
188
:
#line 157
8
"asn1p_y.y"
#line 157
7
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
189
:
#line 158
4
"asn1p_y.y"
#line 158
3
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_SET
,
yyvsp
[
0
].
a_constr
,
0
);
;
break
;}
case
190
:
#line 158
7
"asn1p_y.y"
#line 158
6
"asn1p_y.y"
{
/*
* This is a special case, for compatibility purposes.
...
...
@@ -2836,25 +2835,25 @@ case 190:
;
break
;}
case
191
:
#line 159
7
"asn1p_y.y"
#line 159
6
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
-
1
].
a_constr
;
;
break
;}
case
192
:
#line 1
600
"asn1p_y.y"
#line 1
599
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_SET
,
yyvsp
[
-
3
].
a_constr
,
yyvsp
[
-
1
].
a_constr
);
;
break
;}
case
193
:
#line 160
6
"asn1p_y.y"
#line 160
5
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
194
:
#line 160
9
"asn1p_y.y"
#line 160
8
"asn1p_y.y"
{
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
);
...
...
@@ -2863,7 +2862,7 @@ case 194:
;
break
;}
case
195
:
#line 161
5
"asn1p_y.y"
#line 161
4
"asn1p_y.y"
{
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
);
...
...
@@ -2874,37 +2873,37 @@ case 195:
;
break
;}
case
196
:
#line 162
6
"asn1p_y.y"
#line 162
5
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
197
:
#line 162
9
"asn1p_y.y"
#line 162
8
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_AEX
,
yyvsp
[
0
].
a_constr
,
0
);
;
break
;}
case
198
:
#line 163
2
"asn1p_y.y"
#line 163
1
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_UNI
,
yyvsp
[
-
2
].
a_constr
,
yyvsp
[
0
].
a_constr
);
;
break
;}
case
199
:
#line 163
5
"asn1p_y.y"
#line 163
4
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_INT
,
yyvsp
[
-
2
].
a_constr
,
yyvsp
[
0
].
a_constr
);
;
break
;}
case
200
:
#line 163
8
"asn1p_y.y"
#line 163
7
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_EXC
,
yyvsp
[
-
2
].
a_constr
,
yyvsp
[
0
].
a_constr
);
;
break
;}
case
201
:
#line 164
4
"asn1p_y.y"
#line 164
3
"asn1p_y.y"
{
int
ret
;
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
...
...
@@ -2915,7 +2914,7 @@ case 201:
;
break
;}
case
202
:
#line 165
2
"asn1p_y.y"
#line 165
1
"asn1p_y.y"
{
int
ret
;
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
...
...
@@ -2926,7 +2925,7 @@ case 202:
;
break
;}
case
203
:
#line 16
60
"asn1p_y.y"
#line 16
59
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2935,7 +2934,7 @@ case 203:
;
break
;}
case
204
:
#line 166
6
"asn1p_y.y"
#line 166
5
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2944,7 +2943,7 @@ case 204:
;
break
;}
case
205
:
#line 167
2
"asn1p_y.y"
#line 167
1
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2954,7 +2953,7 @@ case 205:
;
break
;}
case
206
:
#line 167
9
"asn1p_y.y"
#line 167
8
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2965,7 +2964,7 @@ case 206:
;
break
;}
case
207
:
#line 168
7
"asn1p_y.y"
#line 168
6
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2976,7 +2975,7 @@ case 207:
;
break
;}
case
208
:
#line 169
5
"asn1p_y.y"
#line 169
4
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -2988,23 +2987,23 @@ case 208:
;
break
;}
case
209
:
#line 170
4
"asn1p_y.y"
#line 170
3
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
210
:
#line 170
7
"asn1p_y.y"
#line 170
6
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
211
:
#line 171
1
"asn1p_y.y"
#line 171
0
"asn1p_y.y"
{
asn1p_lexer_hack_push_opaque_state
();
;
break
;}
case
212
:
#line 171
1
"asn1p_y.y"
#line 171
0
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -3015,35 +3014,35 @@ case 212:
;
break
;}
case
213
:
#line 172
2
"asn1p_y.y"
#line 172
1
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_EL_RANGE
;
;
break
;}
case
214
:
#line 172
3
"asn1p_y.y"
#line 172
2
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_EL_RLRANGE
;
;
break
;}
case
215
:
#line 172
4
"asn1p_y.y"
#line 172
3
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_EL_LLRANGE
;
;
break
;}
case
216
:
#line 172
5
"asn1p_y.y"
#line 172
4
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_EL_ULRANGE
;
;
break
;}
case
217
:
#line 172
9
"asn1p_y.y"
#line 172
8
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_CT_SIZE
;
;
break
;}
case
218
:
#line 173
2
"asn1p_y.y"
#line 173
1
"asn1p_y.y"
{
yyval
.
a_ctype
=
ACT_CT_FROM
;
;
break
;}
case
219
:
#line 173
8
"asn1p_y.y"
#line 173
7
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
0
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -3051,7 +3050,7 @@ case 219:
;
break
;}
case
220
:
#line 174
3
"asn1p_y.y"
#line 174
2
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
1
);
checkmem
(
yyval
.
a_value
);
...
...
@@ -3059,19 +3058,19 @@ case 220:
;
break
;}
case
221
:
#line 174
8
"asn1p_y.y"
#line 174
7
"asn1p_y.y"
{
yyval
.
a_value
=
yyvsp
[
0
].
a_value
;
;
break
;}
case
222
:
#line 175
1
"asn1p_y.y"
#line 175
0
"asn1p_y.y"
{
yyval
.
a_value
=
yyvsp
[
0
].
a_value
;
;
break
;}
case
223
:
#line 175
4
"asn1p_y.y"
#line 175
3
"asn1p_y.y"
{
asn1p_ref_t
*
ref
;
int
ret
;
...
...
@@ -3085,7 +3084,7 @@ case 223:
;
break
;}
case
224
:
#line 176
8
"asn1p_y.y"
#line 176
7
"asn1p_y.y"
{
asn1p_ref_t
*
ref
;
int
ret
;
...
...
@@ -3099,31 +3098,31 @@ case 224:
;
break
;}
case
225
:
#line 178
2
"asn1p_y.y"
#line 178
1
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CT_WCOMP
,
yyvsp
[
0
].
a_constr
,
0
);
;
break
;}
case
226
:
#line 178
5
"asn1p_y.y"
#line 178
4
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CT_WCOMPS
,
yyvsp
[
-
1
].
a_constr
,
0
);
;
break
;}
case
227
:
#line 179
1
"asn1p_y.y"
#line 179
0
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
228
:
#line 179
4
"asn1p_y.y"
#line 179
3
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CT_WCOMPS
,
yyvsp
[
-
2
].
a_constr
,
yyvsp
[
0
].
a_constr
);
;
break
;}
case
229
:
#line 1
800
"asn1p_y.y"
#line 1
799
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -3132,7 +3131,7 @@ case 229:
;
break
;}
case
230
:
#line 180
6
"asn1p_y.y"
#line 180
5
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -3143,45 +3142,45 @@ case 230:
;
break
;}
case
231
:
#line 18
20
"asn1p_y.y"
#line 18
19
"asn1p_y.y"
{
yyval
.
a_pres
=
ACPRES_DEFAULT
;
;
break
;}
case
232
:
#line 182
1
"asn1p_y.y"
#line 182
0
"asn1p_y.y"
{
yyval
.
a_pres
=
yyvsp
[
0
].
a_pres
;
;
break
;}
case
233
:
#line 182
5
"asn1p_y.y"
#line 182
4
"asn1p_y.y"
{
yyval
.
a_pres
=
ACPRES_PRESENT
;
;
break
;}
case
234
:
#line 182
8
"asn1p_y.y"
#line 182
7
"asn1p_y.y"
{
yyval
.
a_pres
=
ACPRES_ABSENT
;
;
break
;}
case
235
:
#line 183
1
"asn1p_y.y"
#line 183
0
"asn1p_y.y"
{
yyval
.
a_pres
=
ACPRES_OPTIONAL
;
;
break
;}
case
236
:
#line 183
7
"asn1p_y.y"
#line 183
6
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
237
:
#line 18
40
"asn1p_y.y"
#line 18
39
"asn1p_y.y"
{
yyval
.
a_constr
=
yyvsp
[
0
].
a_constr
;
;
break
;}
case
238
:
#line 184
9
"asn1p_y.y"
#line 184
8
"asn1p_y.y"
{
asn1p_ref_t
*
ref
=
asn1p_ref_new
(
yylineno
);
asn1p_constraint_t
*
ct
;
...
...
@@ -3196,13 +3195,13 @@ case 238:
;
break
;}
case
239
:
#line 186
4
"asn1p_y.y"
#line 186
3
"asn1p_y.y"
{
CONSTRAINT_INSERT
(
yyval
.
a_constr
,
ACT_CA_CRC
,
yyvsp
[
-
3
].
a_constr
,
yyvsp
[
-
1
].
a_constr
);
;
break
;}
case
240
:
#line 18
70
"asn1p_y.y"
#line 18
69
"asn1p_y.y"
{
yyval
.
a_constr
=
asn1p_constraint_new
(
yylineno
);
checkmem
(
yyval
.
a_constr
);
...
...
@@ -3211,7 +3210,7 @@ case 240:
;
break
;}
case
241
:
#line 187
6
"asn1p_y.y"
#line 187
5
"asn1p_y.y"
{
asn1p_constraint_t
*
ct
;
ct
=
asn1p_constraint_new
(
yylineno
);
...
...
@@ -3222,7 +3221,7 @@ case 241:
;
break
;}
case
242
:
#line 18
90
"asn1p_y.y"
#line 18
89
"asn1p_y.y"
{
char
*
p
=
malloc
(
strlen
(
yyvsp
[
0
].
tv_str
)
+
2
);
int
ret
;
...
...
@@ -3236,7 +3235,7 @@ case 242:
;
break
;}
case
243
:
#line 190
1
"asn1p_y.y"
#line 190
0
"asn1p_y.y"
{
char
*
p
=
malloc
(
strlen
(
yyvsp
[
0
].
tv_str
)
+
3
);
int
ret
;
...
...
@@ -3251,13 +3250,13 @@ case 243:
;
break
;}
case
244
:
#line 191
7
"asn1p_y.y"
#line 191
6
"asn1p_y.y"
{
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
245
:
#line 19
20
"asn1p_y.y"
#line 19
19
"asn1p_y.y"
{
int
l1
=
strlen
(
yyvsp
[
-
2
].
tv_str
);
int
l3
=
strlen
(
yyvsp
[
0
].
tv_str
);
...
...
@@ -3269,45 +3268,45 @@ case 245:
;
break
;}
case
246
:
#line 193
8
"asn1p_y.y"
#line 193
7
"asn1p_y.y"
{
yyval
.
a_marker
.
flags
=
EM_NOMARK
;
yyval
.
a_marker
.
default_value
=
0
;
;
break
;}
case
247
:
#line 194
2
"asn1p_y.y"
#line 194
1
"asn1p_y.y"
{
yyval
.
a_marker
=
yyvsp
[
0
].
a_marker
;
;
break
;}
case
248
:
#line 194
6
"asn1p_y.y"
#line 194
5
"asn1p_y.y"
{
yyval
.
a_marker
.
flags
=
EM_OPTIONAL
;
yyval
.
a_marker
.
flags
=
EM_OPTIONAL
|
EM_INDIRECT
;
yyval
.
a_marker
.
default_value
=
0
;
;
break
;}
case
249
:
#line 19
50
"asn1p_y.y"
#line 19
49
"asn1p_y.y"
{
yyval
.
a_marker
.
flags
=
EM_DEFAULT
;
yyval
.
a_marker
.
default_value
=
yyvsp
[
0
].
a_value
;
;
break
;}
case
250
:
#line 197
3
"asn1p_y.y"
#line 197
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
;
break
;}
case
251
:
#line 197
7
"asn1p_y.y"
#line 197
6
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
1
].
a_expr
;
;
break
;}
case
252
:
#line 198
3
"asn1p_y.y"
#line 198
2
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3315,14 +3314,14 @@ case 252:
;
break
;}
case
253
:
#line 198
8
"asn1p_y.y"
#line 198
7
"asn1p_y.y"
{
yyval
.
a_expr
=
yyvsp
[
-
2
].
a_expr
;
asn1p_expr_add
(
yyval
.
a_expr
,
yyvsp
[
0
].
a_expr
);
;
break
;}
case
254
:
#line 199
5
"asn1p_y.y"
#line 199
4
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3332,7 +3331,7 @@ case 254:
;
break
;}
case
255
:
#line 200
2
"asn1p_y.y"
#line 200
1
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3343,7 +3342,7 @@ case 255:
;
break
;}
case
256
:
#line 20
10
"asn1p_y.y"
#line 20
09
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3354,7 +3353,7 @@ case 256:
;
break
;}
case
257
:
#line 201
8
"asn1p_y.y"
#line 201
7
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3364,7 +3363,7 @@ case 257:
;
break
;}
case
258
:
#line 202
5
"asn1p_y.y"
#line 202
4
"asn1p_y.y"
{
yyval
.
a_expr
=
asn1p_expr_new
(
yylineno
);
checkmem
(
yyval
.
a_expr
);
...
...
@@ -3375,102 +3374,102 @@ case 258:
;
break
;}
case
259
:
#line 203
6
"asn1p_y.y"
#line 203
5
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
yyvsp
[
0
].
a_int
);
checkmem
(
yyval
.
a_value
);
;
break
;}
case
260
:
#line 20
40
"asn1p_y.y"
#line 20
39
"asn1p_y.y"
{
yyval
.
a_value
=
asn1p_value_fromint
(
yyvsp
[
0
].
a_int
);
checkmem
(
yyval
.
a_value
);
;
break
;}
case
261
:
#line 207
1
"asn1p_y.y"
#line 207
0
"asn1p_y.y"
{
memset
(
&
yyval
.
a_tag
,
0
,
sizeof
(
yyval
.
a_tag
));
;
break
;}
case
262
:
#line 207
2
"asn1p_y.y"
#line 207
1
"asn1p_y.y"
{
yyval
.
a_tag
=
yyvsp
[
0
].
a_tag
;
;
break
;}
case
263
:
#line 207
6
"asn1p_y.y"
#line 207
5
"asn1p_y.y"
{
yyval
.
a_tag
=
yyvsp
[
-
1
].
a_tag
;
yyval
.
a_tag
.
tag_mode
=
yyvsp
[
0
].
a_tag
.
tag_mode
;
;
break
;}
case
264
:
#line 208
3
"asn1p_y.y"
#line 208
2
"asn1p_y.y"
{
yyval
.
a_tag
=
yyvsp
[
-
2
].
a_tag
;
yyval
.
a_tag
.
tag_value
=
yyvsp
[
-
1
].
a_int
;
;
break
;}
case
265
:
#line 208
9
"asn1p_y.y"
#line 208
8
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_class
=
TC_CONTEXT_SPECIFIC
;
;
break
;}
case
266
:
#line 20
90
"asn1p_y.y"
#line 20
89
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_class
=
TC_UNIVERSAL
;
;
break
;}
case
267
:
#line 209
1
"asn1p_y.y"
#line 209
0
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_class
=
TC_APPLICATION
;
;
break
;}
case
268
:
#line 209
2
"asn1p_y.y"
#line 209
1
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_class
=
TC_PRIVATE
;
;
break
;}
case
269
:
#line 209
6
"asn1p_y.y"
#line 209
5
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_mode
=
TM_DEFAULT
;
;
break
;}
case
270
:
#line 209
7
"asn1p_y.y"
#line 209
6
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_mode
=
TM_IMPLICIT
;
;
break
;}
case
271
:
#line 209
8
"asn1p_y.y"
#line 209
7
"asn1p_y.y"
{
yyval
.
a_tag
.
tag_mode
=
TM_EXPLICIT
;
;
break
;}
case
272
:
#line 210
2
"asn1p_y.y"
#line 210
1
"asn1p_y.y"
{
checkmem
(
yyvsp
[
0
].
tv_str
);
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
273
:
#line 210
6
"asn1p_y.y"
#line 210
5
"asn1p_y.y"
{
checkmem
(
yyvsp
[
0
].
tv_str
);
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
274
:
#line 211
4
"asn1p_y.y"
#line 211
3
"asn1p_y.y"
{
checkmem
(
yyvsp
[
0
].
tv_str
);
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
275
:
#line 212
1
"asn1p_y.y"
#line 212
0
"asn1p_y.y"
{
yyval
.
tv_str
=
0
;
;
break
;}
case
276
:
#line 212
2
"asn1p_y.y"
#line 212
1
"asn1p_y.y"
{
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
;
break
;}
case
277
:
#line 212
8
"asn1p_y.y"
#line 212
7
"asn1p_y.y"
{
checkmem
(
yyvsp
[
0
].
tv_str
);
yyval
.
tv_str
=
yyvsp
[
0
].
tv_str
;
...
...
@@ -3698,7 +3697,7 @@ yyerrhandle:
}
return
1
;
}
#line 213
4
"asn1p_y.y"
#line 213
3
"asn1p_y.y"
...
...
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