Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / asn1 / logotypecertextn / LogotypeCertExtn.asn
blobbabaaa20f8e97a19f6153461211caca66fab9166
1 -- This ASN.1 module was taken from RFC3709.
2 -- 
3 -- The copyright statement of the RFC as follows :
4 -- 
5 -- Full Copyright Statement
6 -- 
7 --    Copyright (C) The Internet Society (2004).  This document is subject
8 --    to the rights, licenses and restrictions contained in BCP 78 and
9 --    except as set forth therein, the authors retain all their rights.
10 -- 
11 --    This document and the information contained herein are provided on an
12 --    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE
13 --    REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE
14 --    INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR
15 --    IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
16 --    THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
17 --    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
19 LogotypeCertExtn
20   { iso(1) identified-organization(3) dod(6) internet(1)
21     security(5) mechanisms(5) pkix(7) id-mod(0)
22     id-mod-logotype(22) }
24 DEFINITIONS IMPLICIT TAGS ::=
25 BEGIN
27 IMPORTS
28    AlgorithmIdentifier FROM AuthenticationFramework -- RFC 3280
29      { iso(1) identified-organization(3) dod(6) internet(1)
30        security(5) mechanisms(5) pkix(7) id-mod(0)
31        id-pkix1-explicit(18) };
34 -- Logotype Extension OID
36 id-pe-logotype  OBJECT IDENTIFIER  ::=
37    { iso(1) identified-organization(3) dod(6) internet(1)
38      security(5) mechanisms(5) pkix(7) id-pe(1) 12 }
41 -- Logotype Extension Syntax
43 LogotypeExtn ::= SEQUENCE {
44    communityLogos  [0] EXPLICIT SEQUENCE OF LogotypeInfo OPTIONAL,
45    issuerLogo      [1] EXPLICIT LogotypeInfo OPTIONAL,
46    subjectLogo     [2] EXPLICIT LogotypeInfo OPTIONAL,
47    otherLogos      [3] EXPLICIT SEQUENCE OF OtherLogotypeInfo OPTIONAL }
49 LogotypeInfo ::= CHOICE {
50    direct          [0] LogotypeData,
51    indirect        [1] LogotypeReference }
53 LogotypeData ::= SEQUENCE {
54    image           SEQUENCE OF LogotypeImage OPTIONAL,
55    audio           [1] SEQUENCE OF LogotypeAudio OPTIONAL }
57 LogotypeImage ::= SEQUENCE {
58    imageDetails    LogotypeDetails,
59    imageInfo       LogotypeImageInfo OPTIONAL }
61 LogotypeAudio ::= SEQUENCE {
62    audioDetails    LogotypeDetails,
63    audioInfo       LogotypeAudioInfo OPTIONAL }
65 LogotypeDetails ::= SEQUENCE {
66    mediaType       IA5String, -- MIME media type name and optional
67                               -- parameters
68    logotypeHash    SEQUENCE SIZE (1..MAX) OF HashAlgAndValue,
69    logotypeURI     SEQUENCE SIZE (1..MAX) OF IA5String }
71 LogotypeImageInfo ::= SEQUENCE {
72    type            [0] LogotypeImageType DEFAULT color,
73    fileSize        INTEGER,  -- In octets
74    xSize           INTEGER,  -- Horizontal size in pixels
75    ySize           INTEGER,  -- Vertical size in pixels
76    resolution      LogotypeImageResolution OPTIONAL,
77    language        [4] IA5String OPTIONAL }  -- RFC 3066 Language Tag
79 LogotypeImageType ::= INTEGER { grayScale(0), color(1) }
81 LogotypeImageResolution ::= CHOICE {
82    numBits         [1] INTEGER,   -- Resolution in bits
83    tableSize       [2] INTEGER }  -- Number of colors or grey tones
85 LogotypeAudioInfo ::= SEQUENCE {
86    fileSize        INTEGER,  -- In octets
87    playTime        INTEGER,  -- In milliseconds
88    channels        INTEGER,  -- 1=mono, 2=stereo, 4=quad
89    sampleRate      [3] INTEGER OPTIONAL,  -- Samples per second
90    language        [4] IA5String OPTIONAL }  -- RFC 3066 Language Tag
92 OtherLogotypeInfo ::= SEQUENCE {
93    logotypeType    OBJECT IDENTIFIER,
94    info            LogotypeInfo }
96 LogotypeReference ::= SEQUENCE {
97    refStructHash   SEQUENCE SIZE (1..MAX) OF HashAlgAndValue,
98    refStructURI    SEQUENCE SIZE (1..MAX) OF IA5String }
99                       -- Places to get the same "LTD" file
101 -- Note: The content of referenced "LTD" files is defined by the
102 --       LogotypeData type
104 HashAlgAndValue ::= SEQUENCE {
105    hashAlg         AlgorithmIdentifier,
106    hashValue       OCTET STRING }
108 -- Other logotype type OIDs
110 id-logo OBJECT IDENTIFIER ::= { iso(1) identified-organization(3)
111    dod(6) internet(1) security(5) mechanisms(5) pkix(7) 20 }
114 id-logo-loyalty    OBJECT IDENTIFIER ::= { id-logo 1 }
116 id-logo-background OBJECT IDENTIFIER ::= { id-logo 2 }