diff options
author | Dan Gudmundsson <[email protected]> | 2014-10-17 10:26:02 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-01-12 11:40:27 +0100 |
commit | 8a39672af4d9becac56ca069ecc107d68b202dcb (patch) | |
tree | f5c7b3fc50a8355fea1b0844247ba3031710857e /lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1 | |
parent | 7339da14195d1eeac133be8b9b7287ac8b577114 (diff) | |
download | otp-8a39672af4d9becac56ca069ecc107d68b202dcb.tar.gz otp-8a39672af4d9becac56ca069ecc107d68b202dcb.tar.bz2 otp-8a39672af4d9becac56ca069ecc107d68b202dcb.zip |
Add the other PKCS files to the rfcs test case
Changed the following from the original copies:
PKCS-5 (renamed from PKCS-v21)
PKCS-9 Import from CryptographicMessageSyntax-2009 instead
of CryptographicMessageSyntax
Since most of the files from the x420 directory are needed,
copy all of them into the rfcs directory and remove the
x420 directory and test case. Copy the test of OTP-7759 to
the testRfcs test case.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1 | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1 b/lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1 new file mode 100644 index 0000000000..9633995e3b --- /dev/null +++ b/lib/asn1/test/asn1_SUITE_data/rfcs/Temporal-Relationships.asn1 @@ -0,0 +1,92 @@ +-- Module Temporal-Relationships (T.424:07/1996) + +Temporal-Relationships {2 8 1 14 0} DEFINITIONS ::= +BEGIN + +EXPORTS + Temporal-Relations, Presentation-Time, Document-Presentation-Time, + Time-Scaling; + +IMPORTS + Date-and-Time + FROM Document-Profile-Descriptor {2 8 1 5 6} + -- see ITU-T Rec. T.415 | ISO/IEC 8613-5 and C.4 + Object-or-Class-Identifier + FROM Identifiers-and-Expressions {2 8 1 5 7}; + +-- see ITU-T Rec. T.415 | ISO/IEC 8613-5 +Temporal-Relations ::= SET { + synchronization-type [0] IMPLICIT Synchronization-Type, + subordinate-nodes + [1] SEQUENCE OF + SET {node-identifier [0] IMPLICIT Node-Identifier, + start-time [1] IMPLICIT Time-Delay OPTIONAL, + duration [2] Indefinite-or-Time-Delay OPTIONAL, + cyclic [3] IMPLICIT Cyclic OPTIONAL, + end-time [4] IMPLICIT Time-Delay OPTIONAL, + application-comments [5] IMPLICIT OCTET STRING OPTIONAL + } +} + +-- The value 'null' is represented by an empty set +Synchronization-Type ::= INTEGER { + parallel-last(0), parallel-first(1), parallel-selective(2), sequential(3) +} + +Node-Identifier ::= PrintableString + +-- only digits and spaces are used +-- the first digit is either 2 for a logical object class or 3 for a logical object +Cyclic ::= SET { + number-of-cycles [0] CHOICE {indefinite Indefinite, + a INTEGER}, + cycle-start-time [1] IMPLICIT Time-Delay OPTIONAL, + cycle-duration [2] Indefinite-or-Time-Delay OPTIONAL +} + +Indefinite ::= NULL + +Time-Delay ::= INTEGER {indefinite(-1)} + +Presentation-Time ::= SET { + timing + CHOICE {fixed-timing [0] IMPLICIT INTEGER, + variable-timing [1] IMPLICIT Time-Spec} OPTIONAL, + duration + CHOICE {fixed-duration + [2] CHOICE {indefinite-or-time-delay Indefinite-or-Time-Delay, + object-or-class-identifier + Object-or-Class-Identifier}, + rule-A [3] IMPLICIT Rule-Spec, + rule-B [4] IMPLICIT Rule-Spec} OPTIONAL, + cyclic [5] Cyclic OPTIONAL +} + +-- The value 'null' is represented by an empty set +Time-Spec ::= SET { + start-offset [0] IMPLICIT INTEGER OPTIONAL, + end-offset [1] IMPLICIT INTEGER OPTIONAL, + start-separation [2] IMPLICIT INTEGER OPTIONAL, + end-separation [3] IMPLICIT INTEGER OPTIONAL +} + +Rule-Spec ::= SET { + minimum-duration [0] IMPLICIT INTEGER OPTIONAL, + maximum-duration [1] IMPLICIT INTEGER OPTIONAL +} + +Indefinite-or-Time-Delay ::= CHOICE { + indefinite [0] IMPLICIT NULL, + fixed [1] Time-Delay +} + +Document-Presentation-Time ::= Date-and-Time + +Time-Scaling ::= [0] IMPLICIT SEQUENCE {a INTEGER, + b INTEGER +} + +END + +-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D + |