diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-07-20 09:11:40 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2004-07-20 09:11:40 +0000 |
commit | 723d3dbe44c0d14ef0849195c662211aaa98fdb8 (patch) | |
tree | 0837b1c968637c9b65a5a26b6b11228ed92528da /asn1/cms/packet-cms-template.c | |
parent | d23af58fd6f1783974bd22421fae2af871328770 (diff) |
Add the new protocols CMS, X509AF, X509IF, X509CE and X509SAT
to the ethereal build.
The dissections are semi-useful but incomplete.
The big problem still remaining is the x509if Name object not being
dissected properly thus causing the dissection to get out of sync/fail
halfway through the certificate structure.
work in progress but already semi-useful.
svn path=/trunk/; revision=11440
Diffstat (limited to 'asn1/cms/packet-cms-template.c')
-rw-r--r-- | asn1/cms/packet-cms-template.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c index f3f3c0f442..fada705abb 100644 --- a/asn1/cms/packet-cms-template.c +++ b/asn1/cms/packet-cms-template.c @@ -51,6 +51,13 @@ int proto_cms = -1; #include "packet-cms-fn.c" +static int +dissect_cms_SignedData_callback(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) +{ + offset=dissect_cms_SignedData(FALSE, tvb, offset, pinfo, tree, -1); + return offset; +} + /*--- proto_register_cms ----------------------------------------------*/ void proto_register_cms(void) { @@ -76,5 +83,6 @@ void proto_register_cms(void) { /*--- proto_reg_handoff_cms -------------------------------------------*/ void proto_reg_handoff_cms(void) { + register_ber_oid_callback("1.2.840.113549.1.7.2", dissect_cms_SignedData_callback); } |