aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-10-06 02:31:10 +0000
committerMichael Mann <mmann78@netscape.net>2013-10-06 02:31:10 +0000
commitee208c8dcc371ca10986b7e8ea28c933e4bfaae9 (patch)
tree34da4ba8bde2ea6a7f071f47cd24bf2950f39331 /epan/strutil.h
parent625fbd5f9a09483485f9c2b0271ab29afb68a597 (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/strutil.h')
-rw-r--r--epan/strutil.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index 2e25d7d172..255993da65 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -156,6 +156,17 @@ const gchar* format_uri(const GByteArray *bytes, const gchar *reserved_chars);
* @param oid_str The OID string (dot notaion).
* @param bytes The GByteArray that will receive the bytes. This
* must be initialized by the caller.
+ * @param is_absolute True if this is an absolute OID; false for relative OID.
+ * @return True if the string was converted successfully
+ */
+WS_DLL_PUBLIC
+gboolean rel_oid_str_to_bytes(const char *oid_str, GByteArray *bytes, gboolean is_absolute);
+
+/** Turn a OID string representation (dot notation) into a byte array.
+ *
+ * @param oid_str The OID string (dot notaion).
+ * @param bytes The GByteArray that will receive the bytes. This
+ * must be initialized by the caller.
* @return True if the string was converted successfully
*/
WS_DLL_PUBLIC