~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- Module SeseAPDUs (X.832:04/1995)
 
2
 
 
3
SeseAPDUs {joint-iso-itu-t genericULS(20) modules(1) seseAPDUs(6)} DEFINITIONS
 
4
AUTOMATIC TAGS ::=
 
5
BEGIN
 
6
 
 
7
-- EXPORTS ALL 
 
8
IMPORTS
 
9
  notation
 
10
    FROM ObjectIdentifiers {joint-iso-itu-t genericULS(20) modules(1)
 
11
      objectIdentifiers(0)}
 
12
  dirAuthenticationTwoWay
 
13
    FROM GulsSecurityExchanges {joint-iso-itu-t genericULS(20) modules(1)
 
14
      gulsSecurityExchanges(2)}
 
15
  SECURITY-EXCHANGE, SE-ERROR
 
16
    FROM Notation notation;
 
17
 
 
18
SESEapdus{SECURITY-EXCHANGE:ValidSEs, InvocationId:InvocationIdSet} ::=
 
19
  CHOICE {
 
20
  se-transfer  SETransfer{{ValidSEs}, {InvocationIdSet}},
 
21
  se-u-abort   SEUAbort{{ValidSEs}, {InvocationIdSet}},
 
22
  se-p-abort   SEPAbort{{ValidSEs}, {InvocationIdSet}}
 
23
}
 
24
 
 
25
SETransfer{SECURITY-EXCHANGE:ValidSEs, InvocationId:InvocationIdSet} ::=
 
26
  SEQUENCE {
 
27
  seIdentifier    SECURITY-EXCHANGE.&sE-Identifier({ValidSEs}),
 
28
  -- This identifies one of the security- 
 
29
  -- exchanges supported by the particular SESE 
 
30
  -- abstract syntax
 
31
  itemIdentifier
 
32
    SECURITY-EXCHANGE.&SE-Items.&itemId({ValidSEs}{@seIdentifier}),
 
33
  -- This identifies one of the security-
 
34
  -- exchange-items of the security exchange 
 
35
  -- indicated by "seIdentifier" 
 
36
  seItem
 
37
    SECURITY-EXCHANGE.&SE-Items.&ItemType
 
38
      ({ValidSEs}{@seIdentifier, @itemIdentifier}),
 
39
  invocationId
 
40
    InvocationId(InvocationIdSet)
 
41
      (CONSTRAINED BY {-- Must be the same as the---- invocationId on an active security exchange--
 
42
         
 
43
         -- if start flag is not true -- }) DEFAULT noInvocationId,
 
44
  startFlag       BOOLEAN DEFAULT FALSE,
 
45
  -- This field is set only as the first security-
 
46
  -- exchange-item of a security-exchange is 
 
47
  -- transferred. 
 
48
  endFlag         BOOLEAN DEFAULT FALSE-- This field is set as the last security-exchange- 
 
49
-- item of a security-exchange is transferred. It is 
 
50
-- needed to accommodate those mechanisms requiring 
 
51
-- n exchanges, where n is not known a priori 
 
52
}
 
53
 
 
54
SEUAbort{SECURITY-EXCHANGE:ValidSEs, InvocationId:InvocationIdSet} ::=
 
55
  SEQUENCE {
 
56
  invocationId
 
57
    InvocationId(InvocationIdSet)
 
58
      (CONSTRAINED BY {-- Must be the same as the----  invocationId on an active or just-completed--
 
59
         
 
60
         --  security exchange -- }) DEFAULT noInvocationId,
 
61
  itemIdentifier
 
62
    SECURITY-EXCHANGE.&SE-Items.&itemId({ValidSEs.&SE-Items}) OPTIONAL,
 
63
  --  This component will only be present
 
64
  --  when the Abort is generated subsequent
 
65
  --  to receipt of a SETransfer APDU.
 
66
  errors          SEQUENCE OF SEerror{{ValidSEs}} OPTIONAL
 
67
  --  needed to handle multiple error codes 
 
68
}
 
69
 
 
70
SEPAbort{SECURITY-EXCHANGE:ValidSEs, InvocationId:InvocationIdSet} ::=
 
71
  SEQUENCE {
 
72
  invocationId    InvocationId(InvocationIdSet) OPTIONAL,
 
73
  itemIdentifier
 
74
    SECURITY-EXCHANGE.&SE-Items.&itemId({ValidSEs.&SE-Items}) OPTIONAL,
 
75
  --  This component will only be present
 
76
  --  when the Abort is generated subsequent
 
77
  --  to receipt of a SETransfer APDU.
 
78
  problemCode     ProblemCode
 
79
}
 
80
 
 
81
InvocationId ::= CHOICE {present  INTEGER,
 
82
                         absent   NULL
 
83
}
 
84
 
 
85
noInvocationId InvocationId ::= absent:NULL
 
86
 
 
87
NoInvocationId InvocationId ::= {noInvocationId}
 
88
 
 
89
SEerror{SECURITY-EXCHANGE:ValidSEs} ::= SEQUENCE {
 
90
  errorCode       SE-ERROR.&errorCode({Errors{{ValidSEs}}}) OPTIONAL,
 
91
  errorParameter
 
92
    SE-ERROR.&ParameterType({Errors{{ValidSEs}}}) OPTIONAL
 
93
}
 
94
 
 
95
Errors{SECURITY-EXCHANGE:ValidSEs} SE-ERROR ::= {ValidSEs.&SE-Items.&Errors}
 
96
 
 
97
ProblemCode ::= CHOICE {
 
98
  general   GeneralProblem,
 
99
  transfer  TransferProblem,
 
100
  abort     AbortProblem
 
101
}
 
102
 
 
103
GeneralProblem ::= ENUMERATED {invalidAPDU(0)}
 
104
 
 
105
TransferProblem ::= ENUMERATED {
 
106
  duplicateInvocationId(0), unrecognizedSecurityExchange(1), mistypedItem(2),
 
107
  inappropriateInvocationId(3), alternatingSequenceError(4)}
 
108
 
 
109
AbortProblem ::= ENUMERATED {
 
110
  unrecognizedInvocationId(0), abortUnexpected(1), unrecognizedError(2),
 
111
  unexpectedError(3), mistypedErrorParameter(4)}
 
112
 
 
113
END
 
114
 
 
115
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D
 
116