diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2006-03-05 11:28:13 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2006-03-05 11:28:13 +0000 |
commit | 77cf86d3d6b23b084666376aaa3d19a30fb42f8c (patch) | |
tree | 13f4e048c325a545eb8a27056dbcc0d0d312918f /asn1/acp133 | |
parent | 8ed89ff326350c6a41eb8598bb145226818308c6 (diff) |
ACP133 attribute syntaxes and attribute definitions used by the DAP, DSP and DISP dissectors. Also includes X.402 definitions and OID registrations for object classes.
svn path=/trunk/; revision=17471
Diffstat (limited to 'asn1/acp133')
-rw-r--r-- | asn1/acp133/Makefile | 17 | ||||
-rw-r--r-- | asn1/acp133/acp133.asn | 185 | ||||
-rw-r--r-- | asn1/acp133/acp133.cnf | 164 | ||||
-rw-r--r-- | asn1/acp133/packet-acp133-template.c | 146 | ||||
-rw-r--r-- | asn1/acp133/packet-acp133-template.h | 31 |
5 files changed, 543 insertions, 0 deletions
diff --git a/asn1/acp133/Makefile b/asn1/acp133/Makefile new file mode 100644 index 0000000000..944ad2e5c1 --- /dev/null +++ b/asn1/acp133/Makefile @@ -0,0 +1,17 @@ +# $Id: Makefile 15679 2005-09-04 16:22:12Z etxrab $ + +DISSECTOR_FILES=packet-acp133.c packet-acp133.h + +all: generate_dissector + +generate_dissector: $(DISSECTOR_FILES) + +$(DISSECTOR_FILES): ../../tools/asn2eth.py acp133.asn packet-acp133-template.c packet-acp133-template.h acp133.cnf + python ../../tools/asn2eth.py -X -b -e -p acp133 -c acp133.cnf -s packet-acp133-template acp133.asn + +clean: + rm -f parsetab.py $(DISSECTOR_FILES) + +copy_files: generate_dissector + cp $(DISSECTOR_FILES) ../../epan/dissectors + diff --git a/asn1/acp133/acp133.asn b/asn1/acp133/acp133.asn new file mode 100644 index 0000000000..565e21ea49 --- /dev/null +++ b/asn1/acp133/acp133.asn @@ -0,0 +1,185 @@ +ACP133CommonContent { joint-iso-ccitt(2) country(16) us(840) organization(1) gov(101) dod(2) ds(2) module(0) commonContent(2) editionB (3) } +DEFINITIONS ::= +BEGIN +IMPORTS + GeneralNames, CertificateAssertion + FROM CertificateExtensions {joint-iso-ccitt ds(5) + module(1) certificateExtensions(26) 0} + AlgorithmIdentifier + --== + FROM AuthenticationFramework {joint-iso-itu-t ds(5) module(1) + authenticationFramework(7) 3} + ContentLength, EncodedInformationTypesConstraints, ExtendedContentType, + ORAddress, ORName, RequestedDeliveryMethod, SecurityContext + --== + FROM MTSAbstractService {joint-iso-itu-t mhs(6) mts(3) modules(0) + mts-abstract-service(1) version-1999(1)} + Name + --== + FROM InformationFramework {joint-iso-itu-t ds(5) module(1) + informationFramework(1) 3}; + + + +ACPPreferredDelivery ::= ENUMERATED { smtp(0), acp127(1), mhs(2) } + +ALType ::= INTEGER { aig(0), type(1), cad(2), taskforce(3), dag(4) } + +Community ::= ENUMERATED { genser(0), si(1), both(2) } + +OnSupported ::= BIT STRING { acp127-nn(0), acp127-pn(1), acp127-tn(2) } + +ACPLegacyFormat ::= INTEGER { + janap128(0), + acp126(1), + doi103(2), + doi103-special(3), + acp127(4), + acp127-converted(5), + reserved-1(6), -- hold for ACP127Standard if needed + acp127-state(7), + acp127-modified(8), + socomm-special(9), + socomm-narrative(10), + reserved-2(11), -- hold for SOCOMMNarrativeTTY if needed + socomm-narrative-special(12), + socomm-data(13), + socomm-internal(14), + socomm-external(15) } + -- Note: Values 32 through 48 are not defined + -- by this ACP and may be used nationally or + -- bilaterally. + + +Addressees ::= SEQUENCE OF PrintableString (SIZE (1..55)) + +Classification ::= ENUMERATED { unmarked(0), unclassified(1), restricted(2), +confidential(3), secret(4), top-secret(5) } + +DistributionCode ::= PrintableString + +JPEG ::= OCTET STRING -- a JPEG image + +MonthlyUKMs ::= --SIGNED { SEQUENCE OF UKMEntry }-- SEQUENCE { + ukm-entries SEQUENCE OF UKMEntry, + algorithm-identifier AlgorithmIdentifier, + encrypted BIT STRING +} + +Remarks ::= SEQUENCE OF PrintableString + +RIParameters ::= SET { + rI [0] PrintableString, + rIType [1] ENUMERATED + { normal(0), off-line(1), partTimeTerminal(2) }, + minimize [2] BOOLEAN, -- not used any more -- + sHD [3] PrintableString, + classification [4] Classification +} + +UKMEntry ::= SEQUENCE { + tag PairwiseTag, + ukm OCTET STRING +} + +-- these are imported directly from SDN.701 + +PairwiseTag ::= SEQUENCE { + kmid Kmid, + edition INTEGER --(1..ub-edition-size)--, + date UTCTime OPTIONAL } + +Kmid ::= OCTET STRING + +MLReceiptPolicy ::= CHOICE { + none [0] NULL, + insteadOf [1] SEQUENCE -- (SIZE (1..ub-insteadOf)) + OF GeneralNames, + inAdditionTo [2] SEQUENCE --(SIZE (1..ub-inAdditionTo)) + OF GeneralNames } + +-- X.402 syntaxes imported here to save a separate dissector + +-- DL Submit Permission +DLSubmitPermission ::= CHOICE { + individual [0] ORName, + member-of-dl [1] ORName, + pattern-match [2] ORNamePattern, + member-of-group [3] Name +} + +ORNamePattern ::= ORName + +--any-user-may-submit DLSubmitPermission ::= +-- pattern-match:{built-in-standard-attributes {}} + +-- DL Policy +DLPolicy ::= SET { + report-propagation + [0] INTEGER {previous-dl-or-originator(0), dl-owner(1), + both-previous-and-owner(2)} DEFAULT previous-dl-or-originator, + report-from-dl + [1] INTEGER {whenever-requested(0), when-no-propagation(1)} + DEFAULT whenever-requested, + originating-MTA-report + [2] INTEGER {unchanged(0), report(2), non-delivery-report(3), + audited-report(4)} DEFAULT unchanged, + originator-report + [3] INTEGER {unchanged(0), no-report(1), report(2), non-delivery-report(3)} + DEFAULT unchanged, + return-of-content + [4] ENUMERATED {unchanged(0), content-return-not-requested(1), + content-return-requested(2)} DEFAULT unchanged, + priority + [5] INTEGER {unchanged(0), normal(1), non-urgent(2), urgent(3)} + DEFAULT unchanged, + disclosure-of-other-recipients + [6] ENUMERATED {unchanged(0), + disclosure-of-other-recipients-prohibited(1), + disclosure-of-other-recipients-allowed(2)} + DEFAULT unchanged, + implicit-conversion-prohibited + [7] ENUMERATED {unchanged(0), implicit-conversion-allowed(1), + implicit-conversion-prohibited(2)} DEFAULT unchanged, + conversion-with-loss-prohibited + [8] ENUMERATED {unchanged(0), conversion-with-loss-allowed(1), + conversion-with-loss-prohibited(2)} DEFAULT unchanged, + further-dl-expansion-allowed [9] BOOLEAN DEFAULT TRUE, + originator-requested-alternate-recipient-removed [10] BOOLEAN DEFAULT TRUE, + proof-of-delivery + [11] INTEGER {dl-expansion-point(0), dl-members(1), both(2), neither(3)} + DEFAULT dl-members, + requested-delivery-method + [12] CHOICE {unchanged [0] NULL, + removed [1] NULL, + replaced RequestedDeliveryMethod} OPTIONAL -- DEFAULT unchanged:NULL --, + token-encryption-algorithm-preference + [13] SEQUENCE OF AlgorithmInformation OPTIONAL, + token-signature-algorithm-preference + [14] SEQUENCE OF AlgorithmInformation OPTIONAL, + ... +} + +AlgorithmInformation ::= SEQUENCE { + algorithm-identifier [0] AlgorithmIdentifier, + originator-certificate-selector [1] CertificateAssertion OPTIONAL, + recipient-certificate-selector [2] CertificateAssertion OPTIONAL +} + +-- OR-Address with Capabilities +AddressCapabilities ::= SEQUENCE { + description GeneralString OPTIONAL, + address ORAddress, + capabilities SET OF Capability +} + +Capability ::= SET { + content-types + [0] SET OF ExtendedContentType OPTIONAL, + maximum-content-length [1] ContentLength OPTIONAL, + encoded-information-types-constraints + [2] EncodedInformationTypesConstraints OPTIONAL, + security-labels [3] SecurityContext OPTIONAL +} + +END diff --git a/asn1/acp133/acp133.cnf b/asn1/acp133/acp133.cnf new file mode 100644 index 0000000000..a2c7998f66 --- /dev/null +++ b/asn1/acp133/acp133.cnf @@ -0,0 +1,164 @@ +# acp133.cnf +# ACP133 conformation file + +#.MODULE_IMPORT +CertificateExtensions x509ce +AuthenticationFramework x509af +InformationFramework x509if +MTSAbstractService x411 + +#.INCLUDE ../x509ce/x509ce-exp.cnf +#.INCLUDE ../x509if/x509if-exp.cnf +#.INCLUDE ../x509af/x509af-exp.cnf +#.INCLUDE ../x411/x411-exp.cnf + +#.PDU +ACPPreferredDelivery +ALType +Community +OnSupported +ACPLegacyFormat +Addressees +DistributionCode +JPEG +MonthlyUKMs +RIParameters +Kmid + +#.REGISTER + +# X.402 + +# ContentLength B "2.6.5.2.0" "id-at-mhs-maximum-content-length" - see x411.cnf +# ExtendedContentType B "2.6.5.2.1" "id-at-mhs-deliverable-content-types" - see x411.cnf +# ExtendedEncodedInformationType B "2.6.5.2.2" "id-at-mhs-exclusively-acceptable-eits" - see x411.cnf +# ORName B "2.6.5.2.3" "id-at-mhs-dl-members" - see x411.cnf +DLSubmitPermission B "2.6.5.2.4" "id-at-mhs-dl-submit-permissions" +# DistinguishedName B "2.6.5.2.5" "id-at-mhs-message-store-dn" - see x509if.cnf +# ORAddress B "2.6.5.2.6" "id-at-mhs-or-addresses" - see x411.cnf +# ObjectIdentifier B "2.6.5.2.8" "id-at-mhs-supported-automatic-actions" - see x509sat.cnf +# ExtendedContentType B "2.6.5.2.9" "id-at-mhs-supported-content-types" - see x411.cnf +# ObjectIdentifier B "2.6.5.2.10" "id-at-mhs-supported-attributes" - see x509sat.cnf +# ObjectIdentifier B "2.6.5.2.11" "id-at-mhs-supported-matching-rules" - see x509sat.cnf +# ORName B "2.6.5.2.12" "id-at-mhs-dl-archive-service" - see x411.cnf +DLPolicy B "2.6.5.2.13" "id-at-mhs-dl-policy" +# DistinguishedName B "2.6.5.2.14" "id-at-mhs-dl-related-lists" - see x509if.cnf +# ORName B "2.6.5.2.15" "id-at-mhs-dl-subscription-service" - see x411.cnf +AddressCapabilities B "2.6.5.2.16" "id-at-mhs-or-addresses-with-capabilities" +# ExtendedEncodedInformationType B "2.6.5.2.17" "id-at-mhs-acceptable-eits" see x411.cnf +# ExtendedEncodedInformationType B "2.6.5.2.18" "id-at-mhs-unacceptable-eits" - see x411.cnf +Capability B "2.6.5.2.19" "id-at-mhs-deliverable-classes" + + +# SDN.701 +Kmid B "2.16.840.1.101.2.1.5.14" "id-at-alid" +MonthlyUKMs B "2.16.840.1.101.2.1.5.20" "id-at-janUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.21" "id-at-febUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.22" "id-at-marUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.23" "id-at-aprUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.24" "id-at-mayUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.25" "id-at-junUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.26" "id-at-julUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.27" "id-at-augUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.28" "id-at-sepUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.29" "id-at-octUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.30" "id-at-novUKMs" +MonthlyUKMs B "2.16.840.1.101.2.1.5.31" "id-at-decUKMs" +# ORName B "2.16.840.1.101.2.1.5.47" "id-at-aLExemptedAddressProcessor - see x411.cnf + +# ACP133 +# DistinguishedName B "2.16.840.1.101.2.2.1.3" "id-at-alternateRecipient" - see x509if.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.4" "id-at-associatedOrganization" - see x509if.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.6" "id-at-associatedPLA" - see x509if.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.45" "id-at-releaseAuthorityName" - see x509sat.cnf +Addressees B "2.16.840.1.101.2.2.1.46" "id-at-actionAddressees" +Addressees B "2.16.840.1.101.2.2.1.47" "id-at-additionalAddressees" +Addressees B "2.16.840.1.101.2.2.1.48" "id-at-additionalSecondPartyAddressees" +# DistinguishedName B "2.16.840.1.101.2.2.1.49" "id-at-aliasPointer" - see x509if.cnf +Addressees B "2.16.840.1.101.2.2.1.50" "id-at-allowableOriginators" +#PrintableString B "2.16.840.1.101.2.2.1.51" "id-at-cognizantAuthority" - see x509sat.cnf +Community B "2.16.840.1.101.2.2.1.52" "id-at-community" +# PrintableString B "2.16.840.1.101.2.2.1.53" "id-at-accountingCode" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.54" "id-at-dualRoute" - see x509sat.cnf +# GeneralizedTime B "2.16.840.1.101.2.2.1.55" "id-at-effectiveDate" - see x509sat.cnf +Classification B "2.16.840.1.101.2.2.1.56" "id-at-entryClassification" +# GeneralizedTime B "2.16.840.1.101.2.2.1.57" "id-at-expirationDate" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.58" "id-at-hostOrgACP127" - see x509sat.cnf +Addressees B "2.16.840.1.101.2.2.1.59" "id-at-infoAddressees" +# GeneralizedTime B "2.16.840.1.101.2.2.1.60" "id-at-lastRecapDate" - see x509sat.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.61" "id-at-listPointer" - see x509if.cnf +# PrintableString B "2.16.840.1.101.2.2.1.62" "id-at-lmf" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.63" "id-at-longTitle" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.64" "id-at-minimize" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.65" "id-at-minimizeOverride" - see x509sat.cnf +Classification B "2.16.840.1.101.2.2.1.67" "id-at-nameClassification" +# PrintableString B "2.16.840.1.101.2.2.1.68" "id-at-nationality" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.68.1" "id-at-collectiveNationality" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.69" "id-at-transferStation" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.70" "id-at-plaNameACP127" - see x509sat.cnf +Addressees B "2.16.840.1.101.2.2.1.71" "id-at-plaAddressees" +# Boolean B "2.16.840.1.101.2.2.1.72" "id-at-plaReplace" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.73" "id-at-primarySpellingACP127" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.74" "id-at-publish" - see x509sat.cnf +# GeneralizedTime B "2.16.840.1.101.2.2.1.75" "id-at-recapDueDate" - see x509sat.cnf +Remarks B "2.16.840.1.101.2.2.1.76" "id-at-remarks" +# PrintableString B "2.16.840.1.101.2.2.1.77" "id-at-rI" - see x509sat.cnf +Classification B "2.16.840.1.101.2.2.1.78" "id-at-rIClassification" +RIParameters B "2.16.840.1.101.2.2.1.79" "id-at-rIInfo" +Addressees B "2.16.840.1.101.2.2.1.80" "id-at-secondPartyAddressees" +# Boolean B "2.16.840.1.101.2.2.1.81" "id-at-section" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.82" "id-at-serviceOrAgency" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.83" "id-at-sHD" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.84" "id-at-shortTitle" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.85" "id-at-sigad" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.86" "id-at-spot" - see x509sat.cnf +# Boolean B "2.16.840.1.101.2.2.1.87" "id-at-tARE" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.94" "id-at-aCPMobileTelephoneNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.95" "id-at-aCPPagerTelephoneNumber" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.96" "id-at-tCC" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.97" "id-at-tRC" - see x509sat.cnf +DistributionCode B "2.16.840.1.101.2.2.1.104" "id-at-distributionCodeAction" +DistributionCode B "2.16.840.1.101.2.2.1.105" "id-at-distributionCodeInfo" +# PrintableString B "2.16.840.1.101.2.2.1.106" "id-at-accessCodes" - see x509sat.cnf +# GraphicString B "2.16.840.1.101.2.2.1.107" "id-at-accessSchema" - see x509sat.cnf +ACPPreferredDelivery B "2.16.840.1.101.2.2.1.108" "id-at-aCPPreferredDelivery" +# TelephoneNumber B "2.16.840.1.101.2.2.1.109" "id-at-aCPTelephoneFaxNumber" - see x509sat.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.110" "id-at-administrator" - see x509if.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.111" "id-at-aigsExpanded" - see x509if.cnf +ALType B "2.16.840.1.101.2.2.1.112" "id-at-aLType" +# DistinguishedName B "2.16.840.1.101.2.2.1.113" "id-at-associatedAL" - see x509if.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.114" "id-at-copyMember" - see x509if.cnf +# ObjectIdentifier B "2.16.840.1.101.2.2.1.115" "id-at-gatewayType" - see x509sat.cnf +# ObjectIdentifier B "2.16.840.1.101.2.2.1.116" "id-at-ghpType" - see x509sat.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.117" "id-at-guard" - see x509if.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.118" "id-at-mailDomains" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.119" "id-at-militaryFacsimileNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.119.1" "id-at-collectiveMilitaryFacsimileNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.120" "id-at-militaryTelephoneNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.120.1" "id-at-collectiveMilitaryTelephoneNumber" - see x509sat.cnf +# DistingishedName B "2.16.840.1.101.2.2.1.121" "id-at-networkDN" - see x509if.cnf +# GraphicString B "2.16.840.1.101.2.2.1.122" "id-at-networkSchema" - see x509sat.cnf +OnSupported B "2.16.840.1.101.2.2.1.123" "id-at-onSupported" +# DirectoryString B "2.16.840.1.101.2.2.1.124" "id-at-operationName" - see x509sat.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.125" "id-at-positionNumber" - see x509sat.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.126" "id-at-proprietaryMailboxes" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.127" "id-at-secureFacsimileNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.127.1" "id-at-collectiveSecureFacsimileNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.128" "id-at-secureTelephoneNumber" - see x509sat.cnf +# TelephoneNumber B "2.16.840.1.101.2.2.1.128.1" "id-at-collectiveSecureTelephoneNumber" - see x509sat.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.129" "id-at-serviceNumber" - see x509sat.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.133" "id-at-rank" - see x509sat.cnf +# B "2.16.840.1.101.2.2.1.134" "id-at-misc-collectives" +# ORAddress B "2.16.840.1.101.2.2.1.134.1" "id-at-collective-mhs-or-addresses" - see x411.cnf +MLReceiptPolicy B "2.16.840.1.101.2.2.1.135" "id-at-aLReceiptPolicy" +# DistinguishedName B "2.16.840.1.101.2.2.1.138" "id-at-plasServed" - see x509if.cnf +#DistinguishedName B "2.16.840.1.101.2.2.1.139" "id-at-deployed" - see x509if.cnf +# DistinguishedName B "2.16.840.1.101.2.2.1.140" "id-at-garrison" - see x509if.cnf +ACPLegacyFormat B "2.16.840.1.101.2.2.1.142" "id-at-aCPLegacyFormat" +# DirectoryString B "2.16.840.1.101.2.2.1.143" "id-at-adminConversion" - see x509sat.cnf +# PrintableString B "2.16.840.1.101.2.2.1.144" "id-at-tCCG" - see x509sat.cnf +# DirectoryString B "2.16.840.1.101.2.2.1.145" "id-at-usdConversion" - see x509sat.cnf +JPEG B "2.16.840.1.101.2.2.1.146" "id-at-aCPNetwAccessSchemaEdB" +JPEG B "2.16.840.1.101.2.2.1.147" "id-at-aCPNetworkSchemaEdB" + + diff --git a/asn1/acp133/packet-acp133-template.c b/asn1/acp133/packet-acp133-template.c new file mode 100644 index 0000000000..b5d4ec69e2 --- /dev/null +++ b/asn1/acp133/packet-acp133-template.c @@ -0,0 +1,146 @@ +/* packet-acp133.c + * Routines for ACP133 specific syntaxes in X.500 packet dissection + * Graeme Lunt 2005 + * + * $Id: packet-acp133-template.c 16689 2005-12-05 23:00:03Z etxrab $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@ethereal.com> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <glib.h> +#include <epan/packet.h> +#include <epan/conversation.h> + +#include <stdio.h> +#include <string.h> + +#include "packet-ber.h" + +#include "packet-x509af.h" +#include "packet-x509if.h" +#include "packet-x509ce.h" +#include "packet-x411.h" + +#include "packet-acp133.h" + +#define PNAME "ACP133 Attribute Syntaxes" +#define PSNAME "ACP133" +#define PFNAME "acp133" + +/* Initialize the protocol and registered fields */ +int proto_acp133 = -1; + + +#include "packet-acp133-hf.c" + +/* Initialize the subtree pointers */ +static gint ett_acp133 = -1; +#include "packet-acp133-ett.c" + +#include "packet-acp133-fn.c" + + +/*--- proto_register_acp133 -------------------------------------------*/ +void proto_register_acp133(void) { + + /* List of fields */ + static hf_register_info hf[] = + { +#include "packet-acp133-hfarr.c" + }; + + /* List of subtrees */ + static gint *ett[] = { + &ett_acp133, +#include "packet-acp133-ettarr.c" + }; + + /* Register protocol */ + proto_acp133 = proto_register_protocol(PNAME, PSNAME, PFNAME); + + /* Register fields and subtrees */ + proto_register_field_array(proto_acp133, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); + +} + + +/*--- proto_reg_handoff_acp133 --- */ +void proto_reg_handoff_acp133(void) { + +#include "packet-acp133-dis-tab.c" + + /* X.402 Object Classes */ + register_ber_oid_name("2.6.5.1.0","id-oc-mhs-distribution-list"); + register_ber_oid_name("2.6.5.1.1","id-oc-mhs-message-store"); + register_ber_oid_name("2.6.5.1.2","id-oc-mhs-message-transfer-agent"); + register_ber_oid_name("2.6.5.1.3","id-oc-mhs-user"); + + /* SDN.701 Object Classes */ + register_ber_oid_name("2.16.840.1.101.2.1.4.13", "id-oc-secure-user"); + register_ber_oid_name("2.16.840.1.101.2.1.4.16", "id-oc-ukms"); + + /* ACP133 Object Classes */ + register_ber_oid_name("2.16.840.1.101.2.2.3.26", "id-oc-plaData"); + register_ber_oid_name("2.16.840.1.101.2.2.3.28", "id-oc-cadACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.31", "id-oc-mLA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.34", "id-oc-orgACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.35", "id-oc-plaCollectiveACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.37", "id-oc-routingIndicator"); + register_ber_oid_name("2.16.840.1.101.2.2.3.38", "id-oc-sigintPLA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.39", "id-oc-sIPLA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.40", "id-oc-spotPLA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.41", "id-oc-taskForceACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.42", "id-oc-tenantACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.47", "id-oc-plaACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.52", "id-oc-aliasCommonName"); + register_ber_oid_name("2.16.840.1.101.2.2.3.53", "id-oc-aliasOrganizationalUnit"); + register_ber_oid_name("2.16.840.1.101.2.2.3.54", "id-oc-distributionCodesHandled"); + register_ber_oid_name("2.16.840.1.101.2.2.3.55", "id-oc-distributionCodeDescription"); + register_ber_oid_name("2.16.840.1.101.2.2.3.56", "id-oc-plaUser"); + register_ber_oid_name("2.16.840.1.101.2.2.3.57", "id-oc-addressList"); + register_ber_oid_name("2.16.840.1.101.2.2.3.58", "id-oc-altSpellingACP127"); + register_ber_oid_name("2.16.840.1.101.2.2.3.59", "id-oc-messagingGateway"); + register_ber_oid_name("2.16.840.1.101.2.2.3.60", "id-oc-network"); + register_ber_oid_name("2.16.840.1.101.2.2.3.61", "id-oc-networkInstructions"); + register_ber_oid_name("2.16.840.1.101.2.2.3.62", "id-oc-otherContactInformation"); + register_ber_oid_name("2.16.840.1.101.2.2.3.63", "id-oc-releaseAuthorityPerson"); + register_ber_oid_name("2.16.840.1.101.2.2.3.64", "id-oc-mLAgent"); + register_ber_oid_name("2.16.840.1.101.2.2.3.65", "id-oc-releaseAuthorityPersonA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.66", "id-oc-securePkiUser"); + register_ber_oid_name("2.16.840.1.101.2.2.3.67", "id-oc-dSSCSPLA"); + register_ber_oid_name("2.16.840.1.101.2.2.3.68", "id-oc-aCPNetworkEdB"); + register_ber_oid_name("2.16.840.1.101.2.2.3.69", "id-oc-aCPNetworkInstructionsEdB"); + + /* gateway types */ + register_ber_oid_name("2.16.840.1.101.2.2.5.0", "acp120-acp127"); + register_ber_oid_name("2.16.840.1.101.2.2.5.1", "acp120-janap128"); + register_ber_oid_name("2.16.840.1.101.2.2.5.2", "acp120-mhs"); + register_ber_oid_name("2.16.840.1.101.2.2.5.3", "acp120-mmhs"); + register_ber_oid_name("2.16.840.1.101.2.2.5.4", "acp120-rfc822"); + register_ber_oid_name("2.16.840.1.101.2.2.5.5", "boundaryMTA"); + register_ber_oid_name("2.16.840.1.101.2.2.5.6", "mmhs-mhs"); + register_ber_oid_name("2.16.840.1.101.2.2.5.7", "mmhs-rfc822"); + register_ber_oid_name("2.16.840.1.101.2.2.5.8", "mta-acp127"); + +} diff --git a/asn1/acp133/packet-acp133-template.h b/asn1/acp133/packet-acp133-template.h new file mode 100644 index 0000000000..7c681bc7fd --- /dev/null +++ b/asn1/acp133/packet-acp133-template.h @@ -0,0 +1,31 @@ +/* packet-acp133.h + * Routines for ACP133 specific syntaxes in X.500 packet dissection + * Graeme Lunt 2005 + * + * $Id: packet-acp133-template.h 15680 2005-09-04 20:30:31Z etxrab $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@ethereal.com> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef PACKET_ACP133_H +#define PACKET_ACP133_H + +/* #include "packet-acp133-exp.h" */ + +#endif /* PACKET_ACP133_H */ |