diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-11-17 18:08:01 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2007-11-17 18:08:01 +0000 |
commit | 0c571bb23573801aca727dd2d49e53ccee640d0d (patch) | |
tree | 45639fcf905e52a13b80070a0a6e5bf275e05efb /asn1/x411 | |
parent | d2545978d853f8c23ab4ca7daf10dfa0495e0f1a (diff) |
Basic P7 (X.400 Message Store Access Protocol) dissection after request from the list:
http://www.wireshark.org/lists/wireshark-dev/200711/msg00228.html
Only a single (private) capture file is currently available which contains only a few of the P7 operations, so testing has been minimal.
General attribute types, containing information from the X.400 envelope, are also included.
svn path=/trunk/; revision=23479
Diffstat (limited to 'asn1/x411')
-rw-r--r-- | asn1/x411/packet-x411-template.c | 7 | ||||
-rw-r--r-- | asn1/x411/packet-x411-template.h | 3 | ||||
-rw-r--r-- | asn1/x411/x411.cnf | 69 |
3 files changed, 73 insertions, 6 deletions
diff --git a/asn1/x411/packet-x411-template.c b/asn1/x411/packet-x411-template.c index f339ea0fea..eee6406c16 100644 --- a/asn1/x411/packet-x411-template.c +++ b/asn1/x411/packet-x411-template.c @@ -96,6 +96,7 @@ static dissector_table_t x411_tokendata_dissector_table; #include "packet-x411-fn.c" +char* x411_get_last_oraddress() { return oraddress; } /* * Dissect X411 MTS APDU @@ -136,7 +137,7 @@ dissect_x411(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) proto_tree *tree=NULL; int (*x411_dissector)(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_) = NULL; char *x411_op_name; - int hf_x411_index; + int hf_x411_index = -1; asn1_ctx_t asn1_ctx; asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); @@ -240,11 +241,7 @@ void proto_register_x411(void) { /* Register our configuration options for X411, particularly our port */ -#ifdef PREFERENCE_GROUPING x411_module = prefs_register_protocol_subtree("OSI/X.400", proto_x411, prefs_register_x411); -#else - x411_module = prefs_register_protocol(proto_x411, prefs_register_x411); -#endif prefs_register_uint_preference(x411_module, "tcp.port", "X.411 TCP Port", "Set the port for P1 operations (if other" diff --git a/asn1/x411/packet-x411-template.h b/asn1/x411/packet-x411-template.h index 16e244e41d..4523aa2b72 100644 --- a/asn1/x411/packet-x411-template.h +++ b/asn1/x411/packet-x411-template.h @@ -1,5 +1,5 @@ /* packet-x411.h - * Routines for X.411 (X.400 Message Transfer) packet dissection + * Routines forX.411 (X.400 Message Transfer) packet dissection * Graeme Lunt 2005 * * $Id$ @@ -26,6 +26,7 @@ #ifndef PACKET_X411_H #define PACKET_X411_H +char* x411_get_last_oraddress(void); void dissect_x411_mts_apdu (tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree); #include "packet-x411-exp.h" diff --git a/asn1/x411/x411.cnf b/asn1/x411/x411.cnf index 25e4ce68ca..b46b356993 100644 --- a/asn1/x411/x411.cnf +++ b/asn1/x411/x411.cnf @@ -8,24 +8,39 @@ Time TYPE = FT_STRING DISPLAY = BASE_NONE STRING = NULL BITMASK = 0 #.IMPORT ../x509af/x509af-exp.cnf #.EXPORTS +Content +ContentIdentifier ContentLength +Credentials EncodedInformationTypes EncodedInformationTypesConstraints ExtendedCertificates ExtendedContentType +ExtensionField G3FacsimileNonBasicParameters +ImproperlySpecifiedRecipients +InitiatorCredentials MessageDeliveryIdentifier MessageDeliveryTime MessageSecurityLabel MessageSubmissionEnvelope +MessageSubmissionIdentifier +MessageSubmissionTime +MessageToken ORAddress +ORAddressAndOrDirectoryName ORName OriginatingMTACertificate OtherMessageDeliveryFields +ProbeSubmissionEnvelope +ProbeSubmissionIdentifier +ProbeSubmissionTime ProofOfSubmission RequestedDeliveryMethod +ResponderCredentials SecurityContext SecurityLabel +SecurityProblem SupplementaryInformation TeletexNonBasicParameters UniversalOrBMPString @@ -231,6 +246,60 @@ ExtendedEncodedInformationType B "2.6.5.2.18" "id-at-mhs-unacceptable-eits" ORName B "2.16.840.1.101.2.1.5.47" "id-at-aLExemptedAddressProcessor" ORAddress B "2.16.840.1.101.2.2.1.134.1" "id-at-collective-mhs-or-addresses" +# MSGeneralAttributeTypes - see master list in p7.cnf +CertificateSelectors B "2.6.4.3.80" "id-att-certificate-selectors" +Content B "2.6.4.3.1" "id-att-content" +ContentCorrelator B "2.6.4.3.3" "id-att-content-correlator" +ContentIdentifier B "2.6.4.3.4" "id-att-content-identifier" +ContentIntegrityCheck B "2.6.4.3.5" "id-att-content-inetgrity-check" +ContentLength B "2.6.4.3.6" "id-att-content-length" +ConversionWithLossProhibited B "2.6.4.3.9" "id-att-conversion-with-loss-prohibited" +DeferredDeliveryTime B "2.6.4.3.51" "id-att-deferred-delivery-time" +DeliveryFlags B "2.6.4.3.13" "id-att-delivery-flags" +ORName B "2.6.4.3.78" "id-att-dl-exempted-recipients" +DLExpansion B "2.6.4.3.14" "id-att-dl-expansion-history" +DLExpansionProhibited B "2.6.4.3.53" "id-att-dl-expansion-prohibited" +InternalTraceInformationElement B "2.6.4.3.54" "id-att-internal-trace-information" +LatestDeliveryTime B "2.6.4.3.55" "id-att-latest-delivery-time" +MessageDeliveryEnvelope B "2.6.4.3.18" "id-att-message-delivery-envelope" +MessageDeliveryTime B "2.6.4.3.20" "id-att-message-delivery-time" +MTSIdentifier B "2.6.4.3.19" "id-att-message-identifier" +MessageOriginAuthenticationCheck B "2.6.4.3.21" "id-at-message-orgin-authentication-check" +MessageSecurityLabel B "2.6.4.3.22" "id-att-message-security-label" +MessageSubmissionEnvelope B "2.6.4.3.59" "id-att-message-submission-envelope" +MessageSubmissionTime B "2.6.4.3.23" "id-att-message-submission-time" +MessageToken B "2.6.4.3.24" "id-att-message-token" +ExtendedCertificates B "2.6.4.3.81" "id-att-multiple-originator-certificates" +ORName B "2.6.4.3.17" "id-att-originally-intended-recipient-name" +OriginatingMTACertificate B "2.6.4.3.62" "id-att-originating-MTA-certificate" +OriginatorCertificate B "2.6.4.3.26" "id-att-originator-certificate" +ORName B "2.6.4.3.27" "id-att-originator-name" +OriginatorReportRequest B "2.6.4.3.63" "id-att-originator-report-request" +OriginatorReturnAddress B "2.6.4.3.64" "id-att-originator-return-address" +ORName B "2.6.4.3.28" "id-att-other-recipient-names" +PerMessageIndicators B "2.6.4.3.65" "id-att-per-message-indicators" +PerRecipientMessageSubmissionFields B "2.6.4.3.66" "id-att-per-recipient-message-submission-fields" +PerRecipientProbeSubmissionFields B "2.6.4.3.67" "id-att-per-recipient-probe-submission-fields" +PerRecipientReportDeliveryFields B "2.6.4.3.30" "id-att-per-recipient-report-delivery-fields" +Priority B "2.6.4.3.31" "id-att-priority" +ProbeOriginAuthenticationCheck B "2.6.4.3.68" "id-att-probe-origin-authentication-check" +ProbeSubmissionEnvelope B "2.6.4.3.69" "id-att-probe-submission-envelope" +ProofOfDeliveryRequest B "2.6.4.3.32" "id-att-proof-of-delivery-request" +ProofOfSubmission B "2.6.4.3.70" "id-att-proof-of-submission" +ExtendedCertificates B "2.6.4.3.82" "id-att-recipient-certificate" +ORName B "2.6.4.3.71" "id-att-recipient-names" +RecipientReassignmentProhibited B "2.6.4.3.72" "id-att-recipient-reassignment-prohibited" +Redirection B "2.6.4.3.33" "id-at-redirection-history" +ReportDeliveryEnvelope B "2.6.4.3.34" "id-att-report-delivery-envelope" +ReportingDLName B "2.6.4.3.35" "id-att-reporting-DL-name" +ReportingMTACertificate B "2.6.4.3.36" "id-att-reporting-MTA-certificate" +ReportOriginAuthenticationCheck B "2.6.4.3.37" "id-att-report-origin-authentication-check" +SecurityClassification B "2.6.4.3.38" "id-att-security-classification" +SubjectSubmissionIdentifier B "2.6.4.3.40" "id-att-subject-submission-identifier" +ORName B "2.6.4.3.41" "id-att-this-recipient-name" +TraceInformationElement B "2.6.4.3.75" "id-att-trace-information" + + #.FN_BODY AdditionalInformation proto_item *item = NULL; int loffset = 0; |