aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cms/packet-cms-template.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-10-26 13:54:09 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-10-26 13:54:09 +0000
commit44bd159f067470913b45b6ea68cff368abaa5672 (patch)
treea4fcc0f3a7d26b6d2bc5d70c272f8290a992205d /asn1/cms/packet-cms-template.c
parentec0752c1354649b8bac36e1eb4ff2d54ae4b0fe3 (diff)
use the nice #.REGISTER directive instead of handcoding it in teh template
svn path=/trunk/; revision=12394
Diffstat (limited to 'asn1/cms/packet-cms-template.c')
-rw-r--r--asn1/cms/packet-cms-template.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c
index 59f4ad994c..7be19a3065 100644
--- a/asn1/cms/packet-cms-template.c
+++ b/asn1/cms/packet-cms-template.c
@@ -89,37 +89,6 @@ dissect_cms_OtherKeyAttribute(gboolean implicit_tag _U_, tvbuff_t *tvb, int offs
return offset;
}
-static void
-dissect_cms_SignedData_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_cms_SignedData(FALSE, tvb, 0, pinfo, tree, -1);
-}
-
-static void
-dissect_cms_EnvelopedData_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_cms_EnvelopedData(FALSE, tvb, 0, pinfo, tree, -1);
-}
-
-static void
-dissect_cms_DigestedData_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_cms_DigestedData(FALSE, tvb, 0, pinfo, tree, -1);
-}
-
-
-static void
-dissect_cms_EncryptedData_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_cms_EncryptedData(FALSE, tvb, 0, pinfo, tree, -1);
-}
-
-static void
-dissect_cms_AuthenticatedData_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
-{
- dissect_cms_AuthenticatedData(FALSE, tvb, 0, pinfo, tree, -1);
-}
-
/* ContentInfo can not yet be handled by the compiler */
@@ -188,10 +157,6 @@ void proto_register_cms(void) {
/*--- proto_reg_handoff_cms -------------------------------------------*/
void proto_reg_handoff_cms(void) {
- register_ber_oid_dissector("1.2.840.113549.1.7.2", dissect_cms_SignedData_callback, proto_cms, "id-signedData");
- register_ber_oid_dissector("1.2.840.113549.1.7.3", dissect_cms_EnvelopedData_callback, proto_cms, "id-envelopedData");
- register_ber_oid_dissector("1.2.840.113549.1.7.5", dissect_cms_DigestedData_callback, proto_cms, "id-digestedData");
- register_ber_oid_dissector("1.2.840.113549.1.7.6", dissect_cms_EncryptedData_callback, proto_cms, "id-encryptedData");
- register_ber_oid_dissector("1.2.840.113549.1.9.16.1.2", dissect_cms_AuthenticatedData_callback, proto_cms, "id-ct-authenticatedData");
+#include "packet-cms-dis-tab.c"
}