Get rid of some unused code warnings and fix an Id marking and some indentation changes.
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Jul 2008 12:45:24 +0000 (12:45 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Jul 2008 12:45:24 +0000 (12:45 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25803 f5534014-38df-0310-8fa8-9805f1628bb7

asn1/ldap/ldap.cnf
asn1/pkcs12/pkcs12.asn
asn1/pkix1implicit/pkix1implicit.cnf
asn1/pkixtsp/packet-pkixtsp-template.c
asn1/pkixtsp/pkixtsp.cnf
epan/dissectors/packet-pkix1implicit.c
epan/dissectors/packet-pkixtsp.c

index 801fd579514df4881a5234749fa4946eedd18c1a..8c095aa49f6e54f10ad546ecffab1d1291029b61 100644 (file)
@@ -31,8 +31,8 @@ AssertionValue TYPE = FT_STRING  DISPLAY = BASE_NONE  STRINGS = NULL
 
 #.REGISTER
 SearchControlValue             B "1.2.840.113556.1.4.319" "pagedResultsControl"
-SortKeyList                    B "1.2.840.113556.1.4.473" "sortKeyList"
-SortResult                     B "1.2.840.113556.1.4.474" "sortResult"
+SortKeyList                            B "1.2.840.113556.1.4.473" "sortKeyList"
+SortResult                             B "1.2.840.113556.1.4.474" "sortResult"
 ReplControlValue               B "1.2.840.113556.1.4.841" "replControlValue"
 #RFC 3062
 PasswdModifyRequestValue       B "1.3.6.1.4.1.4203.1.11.1" "passwdModifyOID"
index 0cde4938a99fb2c540736cbea794211d017daad1..e66ddbf4dd5172b71a84a9d88d2895a4ec1b8022 100644 (file)
@@ -1,7 +1,7 @@
 PKCS-12 {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
                  pkcs-12(12) modules(0)  pkcs-12(1)}
 
--- $Revision$
+-- $Id$
 
 DEFINITIONS IMPLICIT TAGS ::=
 
index 86146edbbfad8ca3e43ccddde1ae74c38dc4a72c..b7055a14233b3639adb862aa4141079d8fe3fa2a 100644 (file)
@@ -9,6 +9,10 @@ PKIX1Explicit93 pkix1explicit
 #.INCLUDE ../pkix1explicit/pkix1explicit_exp.cnf
 #.IMPORT ../x509ce/x509ce-exp.cnf
 
+#.OMIT_ASSIGNMENT
+EDIPartyName
+#.END
+
 #.EXPORTS
 
 AuthorityInfoAccessSyntax
index 970488a6c9099b4c9386d755fb6f719b630a7c30..1f3c32b71a9dd98a3ebf7b5cecd05d0af7bcbc04 100644 (file)
@@ -144,6 +144,6 @@ void proto_reg_handoff_pkixtsp(void) {
        timestamp_query_handle = new_create_dissector_handle(dissect_timestamp_query, proto_pkixtsp);
        dissector_add_string("media_type", "application/timestamp-query", timestamp_query_handle);
 
-/*#include "packet-pkixtsp-dis-tab.c"*/
+#include "packet-pkixtsp-dis-tab.c"
 }
 
index 3e055e63f4e4178484f5d9e598fe899e10db43c8..ec7499ef19783e8c11876bd2b02c15cd42e852ed 100644 (file)
@@ -26,5 +26,8 @@ TSTInfo/version Tst_version
 PKIStatusInfo/status   pki_status
 TSTInfo/version tst_version
 
+#.REGISTER
+TSTInfo                        B "1.2.840.113549.1.9.16.1.4" "id-ct-TSTInfo"
+
 #.END
 
index 002b8f98e881c2e794e312185319f53fc066d0bd..85b40b7657810a943882103414d979d8efe47b26 100644 (file)
@@ -58,8 +58,6 @@ static int proto_pkix1implicit = -1;
 #line 1 "packet-pkix1implicit-hf.c"
 static int hf_pkix1implicit_Dummy_PDU = -1;       /* Dummy */
 static int hf_pkix1implicit_AuthorityInfoAccessSyntax_PDU = -1;  /* AuthorityInfoAccessSyntax */
-static int hf_pkix1implicit_nameAssigner = -1;    /* DirectoryString */
-static int hf_pkix1implicit_partyName = -1;       /* DirectoryString */
 static int hf_pkix1implicit_AuthorityInfoAccessSyntax_item = -1;  /* AccessDescription */
 static int hf_pkix1implicit_accessMethod = -1;    /* OBJECT_IDENTIFIER */
 static int hf_pkix1implicit_accessLocation = -1;  /* GeneralName */
@@ -79,7 +77,6 @@ static int hf_pkix1implicit_utf8String = -1;      /* UTF8String */
 
 /*--- Included file: packet-pkix1implicit-ett.c ---*/
 #line 1 "packet-pkix1implicit-ett.c"
-static gint ett_pkix1implicit_EDIPartyName = -1;
 static gint ett_pkix1implicit_AuthorityInfoAccessSyntax = -1;
 static gint ett_pkix1implicit_AccessDescription = -1;
 static gint ett_pkix1implicit_UserNotice = -1;
@@ -127,21 +124,6 @@ dissect_pkix1implicit_Dummy(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
 }
 
 
-static const ber_sequence_t EDIPartyName_sequence[] = {
-  { &hf_pkix1implicit_nameAssigner, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_pkix1explicit_DirectoryString },
-  { &hf_pkix1implicit_partyName, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_pkix1explicit_DirectoryString },
-  { NULL, 0, 0, 0, NULL }
-};
-
-static int
-dissect_pkix1implicit_EDIPartyName(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-  offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
-                                   EDIPartyName_sequence, hf_index, ett_pkix1implicit_EDIPartyName);
-
-  return offset;
-}
-
-
 
 static int
 dissect_pkix1implicit_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
@@ -240,7 +222,7 @@ dissect_pkix1implicit_DisplayText(gboolean implicit_tag _U_, tvbuff_t *tvb _U_,
 static int
 dissect_pkix1implicit_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -322,14 +304,6 @@ void proto_register_pkix1implicit(void) {
       { "AuthorityInfoAccessSyntax", "pkix1implicit.AuthorityInfoAccessSyntax",
         FT_UINT32, BASE_DEC, NULL, 0,
         "pkix1implicit.AuthorityInfoAccessSyntax", HFILL }},
-    { &hf_pkix1implicit_nameAssigner,
-      { "nameAssigner", "pkix1implicit.nameAssigner",
-        FT_STRING, BASE_NONE, NULL, 0,
-        "pkix1explicit.DirectoryString", HFILL }},
-    { &hf_pkix1implicit_partyName,
-      { "partyName", "pkix1implicit.partyName",
-        FT_STRING, BASE_NONE, NULL, 0,
-        "pkix1explicit.DirectoryString", HFILL }},
     { &hf_pkix1implicit_AuthorityInfoAccessSyntax_item,
       { "Item", "pkix1implicit.AuthorityInfoAccessSyntax_item",
         FT_NONE, BASE_NONE, NULL, 0,
@@ -384,7 +358,6 @@ void proto_register_pkix1implicit(void) {
 
 /*--- Included file: packet-pkix1implicit-ettarr.c ---*/
 #line 1 "packet-pkix1implicit-ettarr.c"
-    &ett_pkix1implicit_EDIPartyName,
     &ett_pkix1implicit_AuthorityInfoAccessSyntax,
     &ett_pkix1implicit_AccessDescription,
     &ett_pkix1implicit_UserNotice,
index 87865fea859f263a66086ec37c5039e4548bf1ed..b87bfc1b677ed94461f19fd6541a9bdbcd4798df 100644 (file)
@@ -57,6 +57,7 @@ static int proto_pkixtsp = -1;
 
 /*--- Included file: packet-pkixtsp-hf.c ---*/
 #line 1 "packet-pkixtsp-hf.c"
+static int hf_pkixtsp_TSTInfo_PDU = -1;           /* TSTInfo */
 static int hf_pkixtsp_version = -1;               /* T_version */
 static int hf_pkixtsp_messageImprint = -1;        /* MessageImprint */
 static int hf_pkixtsp_reqPolicy = -1;             /* TSAPolicyId */
@@ -122,7 +123,7 @@ static const value_string pkixtsp_T_version_vals[] = {
 static int
 dissect_pkixtsp_T_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -166,7 +167,7 @@ dissect_pkixtsp_TSAPolicyId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
 static int
 dissect_pkixtsp_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -214,7 +215,7 @@ static const value_string pkixtsp_PKIStatus_vals[] = {
 static int
 dissect_pkixtsp_PKIStatus(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -290,7 +291,7 @@ static const value_string pkixtsp_Tst_version_vals[] = {
 static int
 dissect_pkixtsp_Tst_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -309,7 +310,7 @@ dissect_pkixtsp_GeneralizedTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, in
 static int
 dissect_pkixtsp_INTEGER_1_999(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
   offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
-                                  NULL);
+                                                NULL);
 
   return offset;
 }
@@ -353,6 +354,14 @@ dissect_pkixtsp_TSTInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
   return offset;
 }
 
+/*--- PDUs ---*/
+
+static void dissect_TSTInfo_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
+  asn1_ctx_t asn1_ctx;
+  asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
+  dissect_pkixtsp_TSTInfo(FALSE, tvb, 0, &asn1_ctx, tree, hf_pkixtsp_TSTInfo_PDU);
+}
+
 
 /*--- End of included file: packet-pkixtsp-fn.c ---*/
 #line 57 "packet-pkixtsp-template.c"
@@ -419,6 +428,10 @@ void proto_register_pkixtsp(void) {
 
 /*--- Included file: packet-pkixtsp-hfarr.c ---*/
 #line 1 "packet-pkixtsp-hfarr.c"
+    { &hf_pkixtsp_TSTInfo_PDU,
+      { "TSTInfo", "pkixtsp.TSTInfo",
+        FT_NONE, BASE_NONE, NULL, 0,
+        "pkixtsp.TSTInfo", HFILL }},
     { &hf_pkixtsp_version,
       { "version", "pkixtsp.version",
         FT_INT32, BASE_DEC, VALS(pkixtsp_T_version_vals), 0,
@@ -583,6 +596,13 @@ void proto_reg_handoff_pkixtsp(void) {
        timestamp_query_handle = new_create_dissector_handle(dissect_timestamp_query, proto_pkixtsp);
        dissector_add_string("media_type", "application/timestamp-query", timestamp_query_handle);
 
-/*#include "packet-pkixtsp-dis-tab.c"*/
+
+/*--- Included file: packet-pkixtsp-dis-tab.c ---*/
+#line 1 "packet-pkixtsp-dis-tab.c"
+  register_ber_oid_dissector("1.2.840.113549.1.9.16.1.4", dissect_TSTInfo_PDU, proto_pkixtsp, "id-ct-TSTInfo");
+
+
+/*--- End of included file: packet-pkixtsp-dis-tab.c ---*/
+#line 148 "packet-pkixtsp-template.c"
 }