19 #include "ws_symbol_export.h"
28 #define BER_TAG_ANY -1
41 typedef enum _oid_key_type_t {
49 OID_KEY_TYPE_IMPLIED_OID,
50 OID_KEY_TYPE_IMPLIED_STRING,
51 OID_KEY_TYPE_IMPLIED_BYTES,
53 OID_KEY_TYPE_DATE_AND_TIME
63 oid_key_type_t keytype;
67 typedef enum _oid_kind_t {
74 OID_KIND_NOTIFICATION,
83 oid_key_type_t key_type;
104 extern void oid_pref_init(
module_t *nameres);
127 guint oid_subid2encoded(
wmem_allocator_t *scope, guint len, guint32* subids, guint8** encoded_p);
129 guint oid_string2encoded(
wmem_allocator_t *scope,
const gchar *oid_str, guint8** encoded_p);
133 guint oid_encoded2subid(
wmem_allocator_t *scope,
const guint8 *oid, gint len, guint32** subids_p);
135 guint oid_encoded2subid_sub(
wmem_allocator_t *scope,
const guint8 *oid_bytes, gint oid_len, guint32** subids_pi,
138 guint oid_string2subid(
wmem_allocator_t *scope,
const gchar *oid_str, guint32** subids_p);
140 WS_DLL_PUBLIC gchar* oid_encoded2string(
wmem_allocator_t *scope,
const guint8* encoded, guint len);
141 WS_DLL_PUBLIC gchar* rel_oid_encoded2string(
wmem_allocator_t *scope,
const guint8* encoded, guint len);
142 WS_DLL_PUBLIC gchar* oid_subid2string(
wmem_allocator_t *scope, guint32 *subids, guint len);
143 WS_DLL_PUBLIC gchar* rel_oid_subid2string(
wmem_allocator_t *scope, guint32 *subids, guint len, gboolean is_absolute);
146 WS_DLL_PUBLIC gchar *oid_resolved(
wmem_allocator_t *scope, guint len, guint32 *subids);
147 WS_DLL_PUBLIC gchar *oid_resolved_from_encoded(
wmem_allocator_t *scope,
const guint8 *oid, gint len);
148 WS_DLL_PUBLIC gchar *rel_oid_resolved_from_encoded(
wmem_allocator_t *scope,
const guint8 *oid, gint len);
149 WS_DLL_PUBLIC gchar *oid_resolved_from_string(
wmem_allocator_t *scope,
const gchar *oid_str);
152 WS_DLL_PUBLIC
void oid_both(
wmem_allocator_t *scope, guint oid_len, guint32 *subids, gchar** resolved_p, gchar** numeric_p);
153 WS_DLL_PUBLIC
void oid_both_from_encoded(
wmem_allocator_t *scope,
const guint8 *oid, gint oid_len, gchar** resolved_p, gchar** numeric_p);
154 WS_DLL_PUBLIC
void oid_both_from_string(
wmem_allocator_t *scope,
const gchar *oid_str, gchar** resolved_p, gchar** numeric_p);
161 WS_DLL_PUBLIC
oid_info_t* oid_get(guint oid_len, guint32 *subids, guint* matched_p, guint* left_p);
162 WS_DLL_PUBLIC
oid_info_t* oid_get_from_encoded(
wmem_allocator_t *scope,
const guint8 *oid, gint oid_len, guint32 **subids, guint* matched, guint* left);
163 WS_DLL_PUBLIC
oid_info_t* oid_get_from_string(
wmem_allocator_t *scope,
const gchar *oid_str, guint32 **subids, guint* matched, guint* left);
166 WS_DLL_PUBLIC
void oid_add(
const char* name, guint oid_len, guint32 *subids);
167 WS_DLL_PUBLIC
void oid_add_from_encoded(
const char* name,
const guint8 *oid, gint oid_len);
168 WS_DLL_PUBLIC
void oid_add_from_string(
const char* name,
const gchar *oid_str);
179 #define subid_t guint32
184 extern char* oid_test_a2b(guint32 num_subids, guint32* subids);
187 #define add_oid_debug_subtree(a,b) ((void)0)
WS_DLL_PUBLIC void oids_init(void)
Definition: oids.c:860
WS_DLL_PUBLIC gchar * oid_get_default_mib_path(void)
Definition: oids.c:1279
WS_DLL_PUBLIC void oids_cleanup(void)
Definition: oids.c:869
Definition: wmem_allocator.h:27
Definition: wmem_tree-int.h:48
Definition: prefs-int.h:27