~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/asn1/test/asn1_SUITE_data/x420/Notation.asn

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - 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.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- Module Notation (X.830:04/1995)
 
2
 
 
3
Notation {joint-iso-itu-t genericULS(20) modules(1) notation(1)} DEFINITIONS
 
4
AUTOMATIC TAGS ::=
 
5
BEGIN
 
6
 
 
7
-- EXPORTS All 
 
8
IMPORTS
 
9
  -- From Directory Standards: 
 
10
  informationFramework, selectedAttributeTypes, authenticationFramework
 
11
    FROM UsefulDefinitions {joint-iso-itu-t ds(5) module(1)
 
12
      usefulDefinitions(0) 3}
 
13
  Name
 
14
    FROM InformationFramework informationFramework
 
15
  UniqueIdentifier
 
16
    FROM SelectedAttributeTypes selectedAttributeTypes
 
17
  AlgorithmIdentifier
 
18
    FROM AuthenticationFramework authenticationFramework
 
19
  -- From Other GULS Modules: 
 
20
  genericProtectingTransferSyntax
 
21
    FROM ObjectIdentifiers {joint-iso-itu-t genericULS(20) modules(1)
 
22
      objectIdentifiers(0)}
 
23
  SyntaxStructure{}
 
24
    FROM GenericProtectingTransferSyntax genericProtectingTransferSyntax;
 
25
 
 
26
-- ************************************************* 
 
27
-- Notation for security identity and SA-identifiers 
 
28
-- ************************************************* 
 
29
-- Values of the SecurityIdentity type are used to identify entities
 
30
-- which assign externally-established security association identifiers,
 
31
-- and for other security-related purposes requiring globally-unique
 
32
-- identifiers.
 
33
SecurityIdentity ::= CHOICE {
 
34
  directoryName     Name,
 
35
  objectIdentifier  OBJECT IDENTIFIER
 
36
}
 
37
 
 
38
ExternalSAID ::= SEQUENCE {
 
39
  localSAID         INTEGER,
 
40
  assignerIdentity  SecurityIdentity OPTIONAL
 
41
  -- Identity of the system which assigned the integer value
 
42
}
 
43
 
 
44
-- ****************************************** 
 
45
-- Notation for specifying security exchanges 
 
46
-- ****************************************** 
 
47
SECURITY-EXCHANGE ::=
 
48
  CLASS
 
49
   -- This information object class definition is for use when
 
50
  -- specifying a particular instance of a security exchange.
 
51
  {
 
52
  &SE-Items       SEC-EXCHG-ITEM,
 
53
  -- This is an ASN.1 information object set, comprising a set
 
54
  -- of security exchange items
 
55
  &sE-Identifier  Identifier UNIQUE
 
56
  -- A local or global identifier for the particular security
 
57
  -- exchange
 
58
}
 
59
WITH SYNTAX
 
60
 -- The following syntax is used to specify a particular security
 
61
-- exchange.
 
62
{SE-ITEMS &SE-Items
 
63
 IDENTIFIER &sE-Identifier
 
64
}
 
65
 
 
66
Identifier ::= CHOICE {local   INTEGER,
 
67
                       global  OBJECT IDENTIFIER
 
68
}
 
69
 
 
70
SEC-EXCHG-ITEM ::= CLASS {
 
71
  &ItemType  ,
 
72
  --  ASN.1 type for this exchange item
 
73
  &itemId    INTEGER,
 
74
  --  Identifier for this item, e.g. 1, 2, 3, ..
 
75
  &Errors    SE-ERROR OPTIONAL
 
76
  --  Optional list of errors which may result from
 
77
  --  transfer of this item
 
78
}WITH SYNTAX {ITEM-TYPE &ItemType
 
79
              ITEM-ID &itemId
 
80
              [ERRORS &Errors]
 
81
}
 
82
 
 
83
SE-ERROR ::= CLASS {
 
84
  &ParameterType  OPTIONAL,
 
85
  -- ASN.1 type of a parameter to accompany the signalling
 
86
  -- of the error condition back to the sender of the SEI
 
87
  &errorCode      Identifier UNIQUE
 
88
  -- An identifier used in signalling the error condition
 
89
  -- back to the sender of the SEI
 
90
}WITH SYNTAX {[PARAMETER &ParameterType]
 
91
              ERROR-CODE &errorCode
 
92
}
 
93
 
 
94
-- ************************************************ 
 
95
-- Notation for specifying security transformations 
 
96
-- ************************************************ 
 
97
SECURITY-TRANSFORMATION ::=
 
98
  CLASS
 
99
   -- This information object class definition is for use when
 
100
  -- specifying a particular instance of a security transformation.
 
101
  {
 
102
  &sT-Identifier           OBJECT IDENTIFIER UNIQUE,
 
103
  -- Identifier to be used in signalling the application
 
104
  -- of the particular security transformation
 
105
  &initialEncodingRules    OBJECT IDENTIFIER DEFAULT {joint-iso-ccitt 
 
106
                                                      asn1(1) ber-derived(2)
 
107
                                                      canonical-encoding(0)},
 
108
  -- Default initial encoding rules to generate a bit
 
109
  -- string prior to applying the encoding process of a
 
110
  -- security transformation.
 
111
  &StaticUnprotectedParm   OPTIONAL,
 
112
  -- ASN.1 type for conveying static unprotected parameters
 
113
  &DynamicUnprotectedParm  OPTIONAL,
 
114
  -- ASN.1 type for conveying dynamic unprotected parameters
 
115
  &XformedDataType         ,
 
116
  -- ASN.1 type of the ASN.1 value produced by the security
 
117
  -- transformations encoding process
 
118
  &QualifierType           OPTIONAL
 
119
  -- &QualifierType specifies the ASN.1 type of the qualifier
 
120
  -- parameter used with the PROTECTED-Q notation.
 
121
}
 
122
WITH SYNTAX
 
123
 -- The following syntax is used to specify a particular security
 
124
-- transformation.
 
125
{
 
126
  IDENTIFIER &sT-Identifier
 
127
  [INITIAL-ENCODING-RULES &initialEncodingRules]
 
128
  [STATIC-UNPROT-PARM &StaticUnprotectedParm]
 
129
  [DYNAMIC-UNPROT-PARM &DynamicUnprotectedParm]
 
130
  XFORMED-DATA-TYPE &XformedDataType
 
131
  [QUALIFIER-TYPE &QualifierType]
 
132
}
 
133
 
 
134
-- ************************************************** 
 
135
-- Notation for specifying selective field protection 
 
136
-- ************************************************** 
 
137
PROTECTED{BaseType, PROTECTION-MAPPING:protectionReqd} ::= CHOICE {
 
138
  dirEncrypt
 
139
    BIT STRING
 
140
      (CONSTRAINED BY {
 
141
         BaseType-- dirEncrypt is for use only with the
 
142
         -- dirEncryptedTransformation,
 
143
         -- and generates the same encoding as the
 
144
         -- X.509/9594-8 ENCRYPTED type-- }),
 
145
  dirSign
 
146
    SEQUENCE {baseType        BaseType OPTIONAL,
 
147
              -- must be present for dirSignedTransformation
 
148
              -- and must be omitted for
 
149
              -- dirSignatureTransformation
 
150
              algorithmId     AlgorithmIdentifier,
 
151
              encipheredHash
 
152
                BIT STRING
 
153
                  (CONSTRAINED BY {
 
154
                     BaseType-- contains enciphered hash--
 
155
                     -- of a value of BaseType -- })}-- dirSign is for use only with the
 
156
  -- dirSignedTransformation or
 
157
  -- dirSignatureTransformation, and generates
 
158
  -- the same encoding as the corresponding
 
159
  -- X.509/9594-8 SIGNED or SIGNATURE type--,
 
160
  noTransform  [0]  BaseType,
 
161
  -- noTransform invokes no security transformation.
 
162
  -- Subject to security policy, noTransform may be used
 
163
  -- if adequate protection is provided by lower layers
 
164
  -- and any application relays through which the data
 
165
  -- may pass are trusted to maintain the required
 
166
  -- protection. This alternative may only be used
 
167
  -- if protectionReqd.&bypassPermitted is TRUE,
 
168
  direct       [1]  SyntaxStructure{{protectionReqd.&SecurityTransformation}},
 
169
  -- direct generates a protecting transfer syntax
 
170
  -- value, which is encoded using the same encoding
 
171
  -- rules as the surrounding ASN.1  (The type
 
172
  -- SyntaxStructure is imported from Rec. X.833 |
 
173
  -- ISO/IEC 11586-3)
 
174
  embedded
 
175
    [2]  EMBEDDED PDV
 
176
           (WITH COMPONENTS {
 
177
              identification  (WITH COMPONENTS {
 
178
                                 presentation-context-id  ,
 
179
                                 context-negotiation      (WITH COMPONENTS {
 
180
                                                             transfer-syntax  (CONSTRAINED BY {
 
181
                                                                    OBJECT
 
182
                                                                    IDENTIFIER:
 
183
                                                                    protectionReqd.
 
184
                                                                    &protTransferSyntax})
 
185
                                                           }),
 
186
                                 transfer-syntax          (CONSTRAINED BY {
 
187
                                                             OBJECT IDENTIFIER:
 
188
                                                             protectionReqd.
 
189
                                                               &protTransferSyntax})
 
190
                               }),
 
191
              data-value (CONTAINING BaseType )      
 
192
            
 
193
            -- The data value encoded is a value of type BaseType
 
194
            })
 
195
}
 
196
 
 
197
PROTECTED-Q{BaseType, PROTECTION-MAPPING:protectionReqd,
 
198
            PROTECTION-MAPPING.&SecurityTransformation.&QualifierType:qualifier}
 
199
  ::=
 
200
  PROTECTED{BaseType, protectionReqd}
 
201
    (CONSTRAINED BY {
 
202
       protectionReqd.&SecurityTransformation.&QualifierType:qualifier
 
203
       -- The value of qualifier must be made available to
 
204
       -- the security transformation used
 
205
       })
 
206
 
 
207
-- BaseType is the type to be protected, and protectionReqd is an
 
208
-- object of class PROTECTION-MAPPING. The use of PROTECTED requires
 
209
-- the importation into the user's module of the PROTECTED parameterized
 
210
-- type, together with the necessary PROTECTION-MAPPING object
 
211
-- definition.
 
212
-- ******************************************* 
 
213
-- Notation for specifying protection mappings 
 
214
-- ******************************************* 
 
215
PROTECTION-MAPPING ::= CLASS {
 
216
  &SecurityTransformation  SECURITY-TRANSFORMATION,
 
217
  -- &SecurityTransformation specifies an ASN.1 object set of the
 
218
  -- SECURITY-TRANSFORMATION class. Use of the particular
 
219
  -- protection mapping implies use of one of the specified
 
220
  -- transformations, with the choice being left to the
 
221
  -- encoding system. Rules for selecting between these security
 
222
  -- transformations may be specified in comments.
 
223
  &protTransferSyntax      OBJECT IDENTIFIER DEFAULT {joint-iso-itu-t
 
224
                                                      genericULS(20)
 
225
                                                      generalTransferSyntax(2)},
 
226
  -- Identifies the particular protecting transfer syntax to
 
227
  -- be used in an EMDEDDED PDV encoding for the embedded
 
228
  -- option.
 
229
  &bypassPermitted         BOOLEAN DEFAULT FALSE
 
230
  -- Indicates if bypassing of protection is permitted
 
231
}
 
232
WITH SYNTAX {
 
233
  SECURITY-TRANSFORMATION &SecurityTransformation
 
234
  [PROTECTING-TRANSFER-SYNTAX &protTransferSyntax]
 
235
  [BYPASS-PERMITTED &bypassPermitted]
 
236
}
 
237
 
 
238
END
 
239
 
 
240
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
 
241
 
 
242
 
 
243
-- content of stack:
 
244
--