diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-28 10:42:44 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-12-28 10:42:44 +0000 |
commit | 7529f334379c34ca3b5e906b31879a8f5944a8de (patch) | |
tree | 3bb0fa787a1066c5bc2b5a3afc519403a65b014a /epan/asn1.c | |
parent | cec1f884e98d111ed384cf1ec395e44620ad4964 (diff) | |
download | wireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.tar.gz wireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.tar.bz2 wireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.zip |
support for additionally SIZE constrained Typereference
the support is only semiautomated as this feature does not occur very often
use this feature for the TBCD-STRING in the H.225 dissector
svn path=/trunk/; revision=23958
Diffstat (limited to 'epan/asn1.c')
-rw-r--r-- | epan/asn1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/asn1.c b/epan/asn1.c index 19038ae7e8..801e00aa54 100644 --- a/epan/asn1.c +++ b/epan/asn1.c @@ -125,6 +125,14 @@ static asn1_par_t *push_new_par(asn1_ctx_t *actx) { return par; } +void asn1_param_push_boolean(asn1_ctx_t *actx, gboolean value) { + asn1_par_t *par; + + par = push_new_par(actx); + par->ptype = ASN1_PAR_BOOLEAN; + par->value.v_boolean = value; +} + void asn1_param_push_integer(asn1_ctx_t *actx, gint32 value) { asn1_par_t *par; @@ -133,6 +141,14 @@ void asn1_param_push_integer(asn1_ctx_t *actx, gint32 value) { par->value.v_integer = value; } +gboolean asn1_param_get_boolean(asn1_ctx_t *actx, const gchar *name) { + asn1_par_t *par = NULL; + + par = get_par_by_name(actx, name); + DISSECTOR_ASSERT(par); + return par->value.v_boolean; +} + gint32 asn1_param_get_integer(asn1_ctx_t *actx, const gchar *name) { asn1_par_t *par = NULL; |