summaryrefslogtreecommitdiff
path: root/asn1
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-10-29 11:39:58 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-10-29 11:39:58 +0000
commit076d4710ecb611008ca83c42b422e8ed1745726c (patch)
treebb04d1c9fc62fe2ce3d63d17a4d2ad08c8db371b /asn1
parentdeae7590206bfa952383c03b6c3c5192592f6d81 (diff)
downloadwireshark-076d4710ecb611008ca83c42b422e8ed1745726c.tar.gz
more updates of x509if
svn path=/trunk/; revision=12433
Diffstat (limited to 'asn1')
-rw-r--r--asn1/x509if/InformationFramework.asn35
-rw-r--r--asn1/x509if/packet-x509if-template.c18
-rw-r--r--asn1/x509if/packet-x509if-template.h2
-rw-r--r--asn1/x509if/x509if.cnf7
4 files changed, 22 insertions, 40 deletions
diff --git a/asn1/x509if/InformationFramework.asn b/asn1/x509if/InformationFramework.asn
index 9224a4e52e..b26b5bd4d6 100644
--- a/asn1/x509if/InformationFramework.asn
+++ b/asn1/x509if/InformationFramework.asn
@@ -27,26 +27,26 @@ IMPORTS
AttributeId ::= OBJECT IDENTIFIER
+--AttributeValue ::= Any
+--
-- attribute data types
--- XXX This function is implemented by hand inside the template
--- Attribute ::= SEQUENCE {
--- type AttributeId,
--- values
--- SET SIZE (0..MAX) OF ATTRIBUTE.&Type({SupportedAttributes}{@type}),
+Attribute ::= SEQUENCE {
+ type AttributeId
+-- value
+-- SET SIZE (0..MAX) OF AttributeValue
-- valuesWithContext
-- SET SIZE (1..MAX) OF
--- SEQUENCE {value ATTRIBUTE.&Type({SupportedAttributes}{@type}),
+-- SEQUENCE {value Any,
-- contextList SET SIZE (1..MAX) OF Context} OPTIONAL
--- }
+}
AttributeType ::= AttributeId
--- AttributeValue ::= ATTRIBUTE.&Type
--
-- Context ::= SEQUENCE {
--- contextType CONTEXT.&id({SupportedContexts}),
+-- contextType AttributeId,
-- contextValues
--- SET SIZE (1..MAX) OF CONTEXT.&Type({SupportedContexts}{@contextType}),
+-- SET SIZE (1..MAX) OF Any,
-- fallback BOOLEAN DEFAULT FALSE
-- }
--
@@ -98,13 +98,12 @@ RelativeDistinguishedName ::=
AttributeTypeAndDistinguishedValue ::= SEQUENCE {
type AttributeId,
--- value ATTRIBUTE.&Type({SupportedAttributes}{@type}),
value Any,
primaryDistinguished BOOLEAN OPTIONAL
-- valuesWithContext
-- SET SIZE (1..MAX) OF
-- SEQUENCE {distingAttrValue
--- [0] ATTRIBUTE.&Type({SupportedAttributes}{@type}) OPTIONAL,
+-- [0] Any OPTIONAL,
-- contextList SET SIZE (1..MAX) OF Context} OPTIONAL
}
@@ -595,13 +594,13 @@ ImposedSubset ::= ENUMERATED {baseObject(0), oneLevel(1), wholeSubtree(2)}
-- includeSubtypes [0] BOOLEAN DEFAULT FALSE,
-- selectedValues
-- [1] SEQUENCE SIZE (0..MAX) OF
--- ATTRIBUTE.&Type({SupportedAttributes}{@attributeType}) OPTIONAL,
+-- Any OPTIONAL,
-- defaultValues
-- [2] SEQUENCE SIZE (0..MAX) OF
-- SEQUENCE {entryType OBJECT-CLASS.&id OPTIONAL,
-- values
-- SEQUENCE OF
--- ATTRIBUTE.&Type({SupportedAttributes}{@attributeType})
+-- Any
-- } OPTIONAL,
-- contexts [3] SEQUENCE SIZE (0..MAX) OF ContextProfile OPTIONAL,
-- contextCombination [4] ContextCombination DEFAULT and:{},
@@ -647,14 +646,14 @@ ImposedSubset ::= ENUMERATED {baseObject(0), oneLevel(1), wholeSubtree(2)}
-- outputValues
-- CHOICE {selectedValues
-- SEQUENCE SIZE (1..MAX) OF
--- ATTRIBUTE.&Type({SupportedAttributes}{@attributeType}),
+-- Any,
-- matchedValuesOnly NULL} OPTIONAL,
-- contexts [0] SEQUENCE SIZE (1..MAX) OF ContextProfile OPTIONAL
-- }
--
-- OutputValues ::= CHOICE {
-- selectedValues
--- SEQUENCE SIZE (1..MAX) OF ATTRIBUTE.&Type({SupportedAttributes}),
+-- SEQUENCE SIZE (1..MAX) OF Any,
-- matchedValuesOnly NULL
-- }
--
@@ -738,9 +737,9 @@ ImposedSubset ::= ENUMERATED {baseObject(0), oneLevel(1), wholeSubtree(2)}
--
-- REQUEST-ATTRIBUTE ::= CLASS {
-- &attributeType AttributeId,
--- &SelectedValues ATTRIBUTE.&Type OPTIONAL,
+-- &SelectedValues Any OPTIONAL,
-- &DefaultValues SEQUENCE {entryType OBJECT-CLASS.&id OPTIONAL,
--- values SEQUENCE OF ATTRIBUTE.&Type
+-- values SEQUENCE OF Any
-- } OPTIONAL,
-- &contexts SEQUENCE OF ContextProfile OPTIONAL,
-- &contextCombination ContextCombination OPTIONAL,
diff --git a/asn1/x509if/packet-x509if-template.c b/asn1/x509if/packet-x509if-template.c
index 5c304b052d..306d671319 100644
--- a/asn1/x509if/packet-x509if-template.c
+++ b/asn1/x509if/packet-x509if-template.c
@@ -46,27 +46,10 @@ int hf_x509if_object_identifier_id = -1;
#include "packet-x509if-hf.c"
/* Initialize the subtree pointers */
-static gint ett_x509if_Attribute = -1;
#include "packet-x509if-ett.c"
static char object_identifier_id[64]; /*64 chars should be long enough? */
-
-static const ber_sequence Attribute_sequence[] = {
- /* { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_hf_x509if_type },*/
- /*XXX missing stuff here */
- { 0, 0, 0, NULL }
-};
-
-int
-dissect_x509if_Attribute(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
- offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,
- Attribute_sequence, hf_index, ett_x509if_Attribute);
-
- return offset;
-}
-
-
#include "packet-x509if-fn.c"
@@ -84,7 +67,6 @@ void proto_register_x509if(void) {
/* List of subtrees */
static gint *ett[] = {
- &ett_x509if_Attribute,
#include "packet-x509if-ettarr.c"
};
diff --git a/asn1/x509if/packet-x509if-template.h b/asn1/x509if/packet-x509if-template.h
index a26f815ce8..70f826af9e 100644
--- a/asn1/x509if/packet-x509if-template.h
+++ b/asn1/x509if/packet-x509if-template.h
@@ -27,7 +27,5 @@
#include "packet-x509if-exp.h"
-int dissect_x509if_Attribute(gboolean implicit_tag, tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hf_index);
-
#endif /* PACKET_X509IF_H */
diff --git a/asn1/x509if/x509if.cnf b/asn1/x509if/x509if.cnf
index 86d6fd8f5e..68d8a15f42 100644
--- a/asn1/x509if/x509if.cnf
+++ b/asn1/x509if/x509if.cnf
@@ -8,7 +8,7 @@
#.INCLUDE ./x509if_dummy.cnf
#.EXPORTS
-
+Attribute
AttributeType
Name
RelativeDistinguishedName
@@ -19,10 +19,13 @@ RelativeDistinguishedName
#.FIELD_RENAME
-#.FN_BODY AttributeTypeAndDistinguishedValue/type
+#.FN_BODY AttributeId
offset = dissect_ber_object_identifier(FALSE, pinfo, tree, tvb, offset,
hf_x509if_object_identifier_id, object_identifier_id);
+#.FN_BODY AttributeValue
+ offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);
+
#.FN_BODY AttributeTypeAndDistinguishedValue/value
offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, tree);