From ee208c8dcc371ca10986b7e8ea28c933e4bfaae9 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 6 Oct 2013 02:31:10 +0000 Subject: 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 --- epan/oids.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'epan/oids.h') 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 */ -- cgit v1.2.1