diff options
author | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2008-04-13 16:08:34 +0000 |
---|---|---|
committer | Graeme Lunt <graeme.lunt@smhs.co.uk> | 2008-04-13 16:08:34 +0000 |
commit | b2b7c8a769e220db1422831ebc47b5e30a909aee (patch) | |
tree | 8fb9a9fbac1bce79fae3f9ff326c029713cbf5d9 /asn1 | |
parent | 075a4d5dad4370a6768b05dc420d67c1d9612917 (diff) |
Annotate the presentation context identifier with the presentation context.
svn path=/trunk/; revision=24982
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/pres/packet-pres-template.c | 1 | ||||
-rw-r--r-- | asn1/pres/pres.cnf | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/asn1/pres/packet-pres-template.c b/asn1/pres/packet-pres-template.c index 4205663b0a..5cc95221de 100644 --- a/asn1/pres/packet-pres-template.c +++ b/asn1/pres/packet-pres-template.c @@ -37,6 +37,7 @@ #include <string.h> #include <epan/asn1.h> +#include <epan/oids.h> #include "packet-ber.h" #include "packet-ses.h" #include "packet-pres.h" diff --git a/asn1/pres/pres.cnf b/asn1/pres/pres.cnf index 5f7834d4cf..2c78dcf541 100644 --- a/asn1/pres/pres.cnf +++ b/asn1/pres/pres.cnf @@ -66,12 +66,20 @@ CPR-PPDU/normal-mode-parameters/provider-reason cPR_PPDU__provider-reason VAL_PTR = &presentation_context_identifier #.FN_BODY Presentation-context-identifier + const char *name; + char *oid; %(DEFAULT_BODY)s if(session) session->pres_ctx_id = presentation_context_identifier; + oid = find_oid_by_pres_ctx_id(actx->pinfo, presentation_context_identifier); + + if(oid && (name = oid_resolved_from_string(oid))) { + proto_item_append_text(actx->created_item, " (%%s)", name); + } + #.FN_HDR Context-list/_item abstract_syntax_name_oid=NULL; #.END |