diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-18 18:09:58 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-06-18 16:15:42 +0000 |
commit | e308e7c4de81c2ff7159e444b865ac59de4faa2b (patch) | |
tree | e24dcf58137a30395cc0ce87f1e84e2b32d6a34b /asn1/cms | |
parent | b5a462b087bdd7670e1a69786ebbe3f073084ac3 (diff) |
Update ASN.1 source files with the API changes done in g021e7af
Change-Id: I52ecfccbce423206242e3cf99401a8c9e1655d88
Reviewed-on: https://code.wireshark.org/review/2385
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'asn1/cms')
-rw-r--r-- | asn1/cms/cms.cnf | 2 | ||||
-rw-r--r-- | asn1/cms/packet-cms-template.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/asn1/cms/cms.cnf b/asn1/cms/cms.cnf index 6bbdf60e63..5b54344b1f 100644 --- a/asn1/cms/cms.cnf +++ b/asn1/cms/cms.cnf @@ -101,7 +101,7 @@ RevocationInfoChoice/other otherRIC #.FN_BODY EncapsulatedContentInfo/eContent offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); - proto_item_set_text(actx->created_item, "eContent (%%u bytes)", tvb_length (content_tvb)); + proto_item_set_text(actx->created_item, "eContent (%%u bytes)", tvb_captured_length (content_tvb)); call_ber_oid_callback(object_identifier_id, content_tvb, 0, actx->pinfo, top_tree ? top_tree : tree, NULL); diff --git a/asn1/cms/packet-cms-template.c b/asn1/cms/packet-cms-template.c index 085815ed7a..b0afc8e898 100644 --- a/asn1/cms/packet-cms-template.c +++ b/asn1/cms/packet-cms-template.c @@ -96,8 +96,8 @@ cms_verify_msg_digest(proto_item *pi, tvbuff_t *content, const char *alg, tvbuff sha1_starts(&sha1_ctx); - sha1_update(&sha1_ctx, tvb_get_ptr(content, 0, tvb_length(content)), - tvb_length(content)); + sha1_update(&sha1_ctx, tvb_get_ptr(content, 0, tvb_captured_length(content)), + tvb_captured_length(content)); sha1_finish(&sha1_ctx, digest_buf); @@ -107,8 +107,8 @@ cms_verify_msg_digest(proto_item *pi, tvbuff_t *content, const char *alg, tvbuff md5_init(&md5_ctx); - md5_append(&md5_ctx, tvb_get_ptr(content, 0, tvb_length(content)), - tvb_length(content)); + md5_append(&md5_ctx, tvb_get_ptr(content, 0, tvb_captured_length(content)), + tvb_captured_length(content)); md5_finish(&md5_ctx, digest_buf); |