diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-11-14 13:05:17 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-11-14 13:05:17 +0000 |
commit | 97584210fbdae40c98945ef0463de134079e4841 (patch) | |
tree | da1aa097c8ac572bced369fbd6e317d2bdd19346 /asn1/h450 | |
parent | f4e55c11550f20e60a485b83b33e0ce0b777726a (diff) |
improvements in value constraint support
- NO_BOUND is defined instead of usage -1
- negative bound is handled properly for INTEGER
svn path=/trunk/; revision=16505
Diffstat (limited to 'asn1/h450')
-rw-r--r-- | asn1/h450/packet-h450-template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/asn1/h450/packet-h450-template.c b/asn1/h450/packet-h450-template.c index 86068573a0..f7ad0511c5 100644 --- a/asn1/h450/packet-h450-template.c +++ b/asn1/h450/packet-h450-template.c @@ -377,7 +377,7 @@ dissect_h4501_ReturnResult_result(tvbuff_t *tvb, int offset, packet_info *pinfo, { tvbuff_t *result_tvb = NULL; - offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, -1, -1, &result_tvb); + offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, NO_BOUND, NO_BOUND, &result_tvb); if(tvb_length(result_tvb)){ switch (localOpcode) { @@ -466,7 +466,7 @@ static int dissect_h4501_parameter(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { /* TODO - decode return error parameter based on localErrorCode */ - offset=dissect_per_octet_string(tvb, offset, pinfo, tree, hf_h4501_parameter, -1, -1, NULL); + offset=dissect_per_octet_string(tvb, offset, pinfo, tree, hf_h4501_parameter, NO_BOUND, NO_BOUND, NULL); return offset; } static const value_string localErrorCode_vals[] = { @@ -679,13 +679,13 @@ dissect_h4501_argument(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree /* TODO call oid dissector * call_ber_oid_callback isn't realy apropriate ? */ - offset = dissect_per_octet_string(tvb, offset, pinfo, tree, hf_h4501_globalargument, -1, -1, NULL); + offset = dissect_per_octet_string(tvb, offset, pinfo, tree, hf_h4501_globalargument, NO_BOUND, NO_BOUND, NULL); is_globalcode = FALSE; return offset; } - offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, -1, -1, &argument_tvb); + offset=dissect_per_octet_string(tvb, offset, pinfo, tree, -1, NO_BOUND, NO_BOUND, &argument_tvb); if(tvb_length(argument_tvb)){ switch (localOpcode) { |