~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/TConstrChoice.asn1

  • Committer: Elliot Murphy
  • Date: 2010-06-08 03:55:44 UTC
  • mfrom: (3.5.6 squeeze)
  • Revision ID: elliot@elliotmurphy.com-20100608035544-dd8zh2swk7jr5rz2
* Merge with Debian unstable; remaining Ubuntu changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to. (LP #438365)
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
* Added missing symlinks to /usr/include for a few new header files.
* Fixed generation of ${erlang-base:Depends} and ${erlang-x11:Depends}
  substitution variables.
* Added a fix for a re:compile/2 crash on a long regular expression.
* Changed urgency to medium as the change fixes a security bug.
* Manpages in section 1 are needed even if only arch-dependent packages are
  built. So, re-enabled them.
* Fixed HiPE architecture recognition for powerpc Debian architecture.
* Moved xsltproc and fop to build-depends-indep and do not build
  documentation if only architecture-specific packages are built.
* Refreshed all patches.
* Made Emacs look in man5 and man7 for Erlang manpages and added code
  skeleton files to erlang-mode package.
* New upstream release.
* Moved manpages from incorrect sections 4 and 6 to correct 5 and 7
  (closes: #498492).
* Made manpages regexp in Emacs mode match only 3erl pages in section 3.
* Removed docb_gen script which is no longer needed to build manpages.
* Added erlang-doc package which contains documentation in HTML and PDF
  formats. This package replaces erlang-doc-html package and it's easier
  to synchronize it with the main Erlang packages as it's built from
  a single source package (closes: #558451).
* Removed RPATH from ssl and crypto application binaries as required by
  Debian policy.
* Added libwxgtk2.4-dev and libwxgtk2.6-dev to build conflicts.
* Added a few dpendencies for erlang-dialyzer, erlang-et, erlang-observer
  and erlang-examples packages which now call functions from more modules
  than in 1:13.b.3.
* Added a workaround which disables vfork() for hppa architecture
  (closes: #562218).
* Strictened check for JDK 1.5 adding a call to String(int[], int, int)
  because GCJ 4.4 doesn't implement it and OpenJDK isn't available for all
  architectures.
* Fixed erlang-manpages package section.
* Made erlang-depends add only substvars which are requested in
  debian/control file. This minimizes number of warnings from dh_gencontrol.
  Also, improved descriptions of the functions in erlang-depends escript.
* Added erlang-erl-docgen package to erlang-nox dependencies.
* Made dummy packages erlang-nox and erlang-x11 architecture all.
* Cleaned up working with custom substitution variables in debian/rules.
* Reorganized debian/rules to ensure that manpages arent built twice, and
  aren't built at all if only architecture-dependent packages are requested.
* Fixed project links in README.Debian.
* Added a new package erlang-jinterface which provides tools for
  communication of Java programs with Erlang processes. This adds build
  depandency on default-jdk and as a result enables Java module for IDL
  compiler.
* Bumped standards version to 3.8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TConstrChoice DEFINITIONS ::=
 
2
BEGIN
 
3
 
 
4
 
 
5
FilterItem ::= CHOICE {
 
6
    equality [0] AttributeValueAssertion,
 
7
    substrings [1] SEQUENCE {
 
8
        type ATTRIBUTE.&id({SupportedAttributes}),
 
9
        strings SEQUENCE OF CHOICE {
 
10
            initial [0] ATTRIBUTE.&Type
 
11
            ({SupportedAttributes}{@substrings.type}),
 
12
            any [1] ATTRIBUTE.&Type
 
13
            ({SupportedAttributes}{@substrings.type}),
 
14
            final [2] ATTRIBUTE.&Type
 
15
            ({SupportedAttributes}{@substrings.type}) }},
 
16
    greaterOrEqual [2] AttributeValueAssertion,
 
17
    lessOrEqual [3] AttributeValueAssertion,
 
18
    present [4] AttributeType,
 
19
    approximateMatch [5] AttributeValueAssertion,
 
20
    extensibleMatch [6] MatchingRuleAssertion }
 
21
 
 
22
AttributeValueAssertion ::= SEQUENCE {
 
23
    type ATTRIBUTE.&id({SupportedAttributes}),
 
24
    assertion ATTRIBUTE.&equality-match.&AssertionType
 
25
    ({SupportedAttributes}{@type}) }
 
26
 
 
27
MatchingRuleAssertion ::= SEQUENCE {
 
28
    type MATCHING-RULE.&id({MatchingRules}),
 
29
    assertion MATCHING-RULE.&AssertionType ({MatchingRules}{@type})
 
30
    }
 
31
 
 
32
AttributeType ::= INTEGER(0..127)
 
33
 
 
34
ATTRIBUTE ::= CLASS {
 
35
    &derivation ATTRIBUTE OPTIONAL,
 
36
    &Type OPTIONAL,
 
37
    &equality-match MATCHING-RULE OPTIONAL,
 
38
    &ordering-match MATCHING-RULE OPTIONAL,
 
39
    &substrings-match MATCHING-RULE OPTIONAL,
 
40
    &single-valued BOOLEAN DEFAULT FALSE,
 
41
    &collective BOOLEAN DEFAULT FALSE,
 
42
    &no-user-modification BOOLEAN DEFAULT FALSE,
 
43
    &usage Attribute-Usage DEFAULT userApplications,
 
44
    &id OBJECT IDENTIFIER UNIQUE }
 
45
WITH SYNTAX {
 
46
    [SUBTYPE OF &derivation]
 
47
    [WITH SYNTAX &Type]
 
48
    [EQUALITY MATCHING RULE &equality-match]
 
49
    [ORDERING MATCHING RULE &ordering-match]
 
50
    [SUBSTRINGS MATCHING RULE &substrings-match]
 
51
    [SINGLE VALUE &single-valued]
 
52
    [COLLECTIVE &collective]
 
53
    [NO USER MODIFICATION &no-user-modification]
 
54
    [USAGE &usage]
 
55
    ID &id }
 
56
 
 
57
Attribute-Usage ::= ENUMERATED { userApplications(0),
 
58
    directoryOperation(1), distributedOperation(2),
 
59
    dSAOperation(3) }
 
60
 
 
61
 
 
62
surname ATTRIBUTE ::= { -- family name
 
63
    SUBTYPE OF name
 
64
    WITH SYNTAX DirectoryString
 
65
    ID id-at-surname }
 
66
 
 
67
givenName ATTRIBUTE ::= { -- first name
 
68
    SUBTYPE OF name
 
69
    WITH SYNTAX DirectoryString
 
70
    ID id-at-givenName }
 
71
 
 
72
countryName ATTRIBUTE ::= { -- country
 
73
    SUBTYPE OF name
 
74
    WITH SYNTAX PrintableString (SIZE (2)) -- [ISO3166] codes
 
75
    SINGLE VALUE TRUE
 
76
    ID id-at-countryName}
 
77
 
 
78
SupportedAttributes ATTRIBUTE ::=
 
79
{surname | givenName | countryName}
 
80
 
 
81
-- id-at-surname DirectoryString ::= universalString:"SureName"
 
82
 
 
83
id-at-surname OBJECT IDENTIFIER ::= {2 4}
 
84
 
 
85
-- id-at-givenName DirectoryString ::= printableString:"GivenName"
 
86
 
 
87
id-at-givenName OBJECT IDENTIFIER ::= {2 5}
 
88
 
 
89
-- id-at-countryName  PrintableString (SIZE (2)) ::= "CN" 
 
90
 
 
91
id-at-countryName OBJECT IDENTIFIER ::= {2 6}
 
92
 
 
93
MATCHING-RULE ::= CLASS {
 
94
    &AssertionType OPTIONAL,
 
95
    &id OBJECT IDENTIFIER UNIQUE }
 
96
WITH SYNTAX {
 
97
    [SYNTAX &AssertionType]
 
98
    ID &id }
 
99
 
 
100
MatchingRules MATCHING-RULE ::= {
 
101
    caseIgnoreMatch | booleanMatch | integerMatch }
 
102
 
 
103
LessMatchingRules MATCHING-RULE ::= {
 
104
    MatchingRules EXCEPT caseIgnoreMatch }
 
105
 
 
106
ExtensibleMatchingRules MATCHING-RULE ::= {
 
107
    caseIgnoreMatch | booleanMatch | integerMatch, ... }
 
108
 
 
109
name ATTRIBUTE ::= {
 
110
    WITH SYNTAX DirectoryString
 
111
    EQUALITY MATCHING RULE caseIgnoreMatch
 
112
    ID id-name }
 
113
 
 
114
 
 
115
DirectoryString ::= CHOICE {
 
116
    teletexString TeletexString (SIZE (1..maxSize)),
 
117
    printableString PrintableString (SIZE (1..maxSize)),
 
118
    universalString UniversalString (SIZE (1..maxSize)),
 
119
    bmpString BMPString (SIZE (1..maxSize))
 
120
--    utf8String UTF8String (SIZE (1..maxSize))
 
121
    }
 
122
 
 
123
maxSize INTEGER ::= 25
 
124
 
 
125
caseIgnoreMatch MATCHING-RULE ::= {
 
126
    SYNTAX DirectoryString
 
127
    ID id-caseIgnoreMatch
 
128
    }
 
129
 
 
130
booleanMatch MATCHING-RULE ::= {
 
131
    SYNTAX  BOOLEAN
 
132
    ID id-booleanMatch
 
133
    }
 
134
 
 
135
integerMatch MATCHING-RULE ::= {
 
136
    SYNTAX INTEGER
 
137
    ID  id-integerMatch
 
138
    }
 
139
 
 
140
id-mr OBJECT IDENTIFIER ::=
 
141
{2 5 11}
 
142
 
 
143
id-name OBJECT IDENTIFIER ::= {2 5 11 5}
 
144
 
 
145
id-caseIgnoreMatch OBJECT IDENTIFIER ::= {2 5 11 2}
 
146
 
 
147
id-booleanMatch OBJECT IDENTIFIER ::= {2 5 11 13}
 
148
 
 
149
id-integerMatch OBJECT IDENTIFIER ::= {2 5 11 14}
 
150
 
 
151
--{joint-iso-itu-t ds(5) matchingRule(13)}
 
152
 
 
153
-- test code for OTP-4248
 
154
 
 
155
NOTUNIQUE ::= CLASS {
 
156
  &value  INTEGER,
 
157
  &Type
 
158
}
 
159
WITH SYNTAX {
 
160
  VALUE &value
 
161
  TYPE &Type
 
162
}
 
163
 
 
164
 
 
165
nuObject NOTUNIQUE ::= {VALUE 3 TYPE FilterItem}
 
166
 
 
167
NuObjectSet NOTUNIQUE ::= {nuObject}
 
168
 
 
169
Seq ::= SEQUENCE {
 
170
  a  NOTUNIQUE.&value ({NuObjectSet}),
 
171
  b  NOTUNIQUE.&Type ({NuObjectSet}{@a})
 
172
}
 
173
 
 
174
 
 
175
END