diff options
author | Michael Mann <mmann78@netscape.net> | 2013-10-06 02:31:10 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-10-06 02:31:10 +0000 |
commit | ee208c8dcc371ca10986b7e8ea28c933e4bfaae9 (patch) | |
tree | 34da4ba8bde2ea6a7f071f47cd24bf2950f39331 /epan/oids.h | |
parent | 625fbd5f9a09483485f9c2b0271ab29afb68a597 (diff) |
Add support for RELATIVE-OID ASN.1 type. Bug 9192 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9192)
From Ed Beroset.
svn path=/trunk/; revision=52393
Diffstat (limited to 'epan/oids.h')
-rw-r--r-- | epan/oids.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/oids.h b/epan/oids.h index e8221d4241..3297202ce0 100644 --- a/epan/oids.h +++ b/epan/oids.h @@ -142,14 +142,20 @@ guint oid_string2encoded(const gchar *oid_str, guint8** encoded_p); WS_DLL_PUBLIC guint oid_encoded2subid(const guint8 *oid, gint len, guint32** subids_p); WS_DLL_PUBLIC +guint oid_encoded2subid_sub(const guint8 *oid_bytes, gint oid_len, guint32** subids_pi, + gboolean is_first); +WS_DLL_PUBLIC guint oid_string2subid(const gchar *oid_str, guint32** subids_p); WS_DLL_PUBLIC const gchar* oid_encoded2string(const guint8* encoded, guint len); +WS_DLL_PUBLIC const gchar* rel_oid_encoded2string(const guint8* encoded, guint len); WS_DLL_PUBLIC const gchar* oid_subid2string(guint32 *subids, guint len); +WS_DLL_PUBLIC const gchar* rel_oid_subid2string(guint32 *subids, guint len, gboolean is_relative); /* these return a formated string as human readable as posible */ WS_DLL_PUBLIC const gchar *oid_resolved(guint len, guint32 *subids); WS_DLL_PUBLIC const gchar *oid_resolved_from_encoded(const guint8 *oid, gint len); +WS_DLL_PUBLIC const gchar *rel_oid_resolved_from_encoded(const guint8 *oid, gint len); WS_DLL_PUBLIC const gchar *oid_resolved_from_string(const gchar *oid_str); /* these yield two formated strings one resolved and one numeric */ |