Wireshark-commits: [Wireshark-commits] rev 33300: /trunk/epan/dissectors/ /trunk/epan/dissectors/:
Date: Wed, 23 Jun 2010 11:29:02 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=33300

User: gal
Date: 2010/06/23 04:29 AM

Log:
 Configuration to allow the definition of an OID name and associated syntax.
 
 It allows the user to:
 * Add names and/or syntaxes for OIDs that Wireshark doesn't natively understand
 * Override the built-in OID names (e.g. change 'id-at-organization' to 'o')
 * Use a special syntax, "ASN.1", that allows a value associated with an OID 
   to be dissected as "unknown ber". (This is a effectively a selective 
   version of the "Decode unexpected tags as BER encoded data" BER option.)
 
 The configuration file is a glib key-value file, with the dotted OID used as
 the group, and two keys defined, "name" and "syntax".
 
 A configuration option is added to the BER preferences page. A single 
 configuration file may be specified, or a directory may be specified. If a 
 directory is specified, then the files with a ".oid" extension will be loaded.
 
 An example configuration file:
 
 [2.5.21.5]
 name=attributeTypes
 syntax=ASN.1
 [2.5.21.6]
 name=objectClasses
 [2.5.21.7]
 name=nameForms
 [1.2.840.10040.4.3]
 name=id-dsa-with-sha1
 [2.5.4.6]
 name=c
 [2.5.4.10]
 name=o
 [2.5.4.11]
 name=ou
 [2.5.4.3]
 name=cn
 [1.3.32.0.2.0.4.66]
 name=Unknown OID
 syntax=PrintableString
 [0.9.2342.19200300.100.1.10]
 name=unknown dn
 syntax=DistinguishedName
 
 ----
 
 The list of known syntaxes is shown in the "Decode As ..." dialog when 
 examining a BER file.

Directory: /trunk/epan/dissectors/
  Changes    Path            Action
  +131 -7    packet-ber.c    Modified