aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/x509sat/SelectedAttributeTypes.asn
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-12-14 21:02:56 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-12-14 21:02:56 +0000
commit404b556084233771a3425f4347d9b2f4a2d0c943 (patch)
tree3a79d142c2fd214b996049fafc290d6534470787 /asn1/x509sat/SelectedAttributeTypes.asn
parent7980c9295e9cfe5f7c2dbdd3913c8c5a83dcc56b (diff)
From Grame Lunt:
Attached is a patch that updates - * DOP - This has now been successfully tested and so is now enabled by default and workaround code removed. Also now uses the correct EXPORTs from the other modules/dissectors. * X509SAT - Most of the selected attributes are now supported in addition to the DirectoryString syntax attributes. This includes restoring the correct DirectoryString syntax and also providing the basic syntaxes (e.g. OBJECT IDENTIFIER, PrintableString). The latter requires a sed line in the Makefile which I assume should be OK? Not all the SAT can be defined in x509sat - so some have been included in x509if and x509af - though x509sat.cnf contains the master list and references the other dissectors where appropriate. (I still prefer a syntax registration approach but I don't think that is going to be agreed in the short term.) * X509IF - a mechanism to register some formating, based upon the hf_index, that is used in the cnf file. * A couple of fixes identified by Stig. Note the patc for dop did not apply don't regenerate dissectors yet. svn path=/trunk/; revision=16799
Diffstat (limited to 'asn1/x509sat/SelectedAttributeTypes.asn')
-rw-r--r--asn1/x509sat/SelectedAttributeTypes.asn48
1 files changed, 40 insertions, 8 deletions
diff --git a/asn1/x509sat/SelectedAttributeTypes.asn b/asn1/x509sat/SelectedAttributeTypes.asn
index e4f3fc6474..31f8eedc0e 100644
--- a/asn1/x509sat/SelectedAttributeTypes.asn
+++ b/asn1/x509sat/SelectedAttributeTypes.asn
@@ -39,14 +39,15 @@ IMPORTS
-- Directory string type
--This one is much better declared as this, it is prettier at least
--the octet string dissector can handle all of them
-DirectoryString ::= PrintableString
---DirectoryString ::= CHOICE {
--- teletexString TeletexString,
--- printableString PrintableString,
--- universalString UniversalString,
--- bmpString BMPString,
--- uTF8String UTF8String
---}
+--DirectoryString ::= PrintableString
+
+DirectoryString ::= CHOICE {
+ teletexString TeletexString,
+ printableString PrintableString,
+ universalString UniversalString,
+ bmpString BMPString,
+ uTF8String UTF8String
+}
-- Attribute types
@@ -1451,6 +1452,37 @@ id-at-pseudonym OBJECT IDENTIFIER ::= {id-at 65}
--
-- id-cat-selectedContexts OBJECT IDENTIFIER ::= {id-cat 4}
+--
+-- We add these in to give the low-level ASN.1 syntaxes
+-- PrintableString and ObjectIdentifier are the most useful
+-- Note the "Syntax" will be removed during the "make" - it is
+-- present to stop asn2eth complaining about reserved words
+--
+
+ObjectIdentifier ::= OBJECT IDENTIFIER
+OctetString ::= OCTET STRING
+BitString ::= BIT STRING
+Integer ::= INTEGER
+Boolean ::= BOOLEAN
+
+-- these are reserved words, so we need to prefix them
+SyntaxGeneralizedTime ::= GeneralizedTime
+SyntaxUTCTime ::= UTCTime
+SyntaxNumericString ::= NumericString
+SyntaxPrintableString ::= PrintableString
+SyntaxIA5String ::= IA5String
+SyntaxBMPString ::= BMPString
+SyntaxUniversalString ::= UniversalString
+SyntaxUTF8String ::= UTF8String
+SyntaxTeletexString ::= TeletexString
+SyntaxT61String ::= T61String
+SyntaxVideotexString ::= VideotexString
+SyntaxGraphicString ::= GraphicString
+SyntaxISO646String ::= ISO646String
+SyntaxVisibleString ::= VisibleString
+SyntaxGeneralString ::= GeneralString
+
+
END -- SelectedAttributeTypes
-- Generated by Asnp, the ASN.1 pretty-printer of France Telecom R&D