Home
last modified time | relevance | path

Searched refs:oid (Results 1 – 25 of 65) sorted by relevance

123

/lib/lwip/lwip/src/apps/snmp/
A Dsnmp_core.c299 IP4_ADDR(ip, oid[0], oid[1], oid[2], oid[3]); in snmp_oid_to_ip4()
347 ip->addr[0] = (oid[0] << 24) | (oid[1] << 16) | (oid[2] << 8) | (oid[3] << 0); in snmp_oid_to_ip6()
348 ip->addr[1] = (oid[4] << 24) | (oid[5] << 16) | (oid[6] << 8) | (oid[7] << 0); in snmp_oid_to_ip6()
349 ip->addr[2] = (oid[8] << 24) | (oid[9] << 16) | (oid[10] << 8) | (oid[11] << 0); in snmp_oid_to_ip6()
350 ip->addr[3] = (oid[12] << 24) | (oid[13] << 16) | (oid[14] << 8) | (oid[15] << 0); in snmp_oid_to_ip6()
395 oid[idx] = port; in snmp_ip_port_to_oid()
455 if (oid[1] != 0) { in snmp_oid_to_ip()
471 if (oid[1] != 4) { in snmp_oid_to_ip()
492 if (oid[1] != 16) { in snmp_oid_to_ip()
793 oid, in snmp_get_node_instance_from_oid()
[all …]
A Dsnmp_asn1.c206 snmp_asn1_enc_oid(struct snmp_pbuf_stream *pbuf_stream, const u32_t *oid, u16_t oid_len) in snmp_asn1_enc_oid() argument
210 u32_t compressed_byte = ((oid[0] * 40) + oid[1]); in snmp_asn1_enc_oid()
213 oid += 2; in snmp_asn1_enc_oid()
225 sub_id = *oid; in snmp_asn1_enc_oid()
241 oid++; in snmp_asn1_enc_oid()
323 snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed) in snmp_asn1_enc_oid_cnt() argument
332 oid += 2; in snmp_asn1_enc_oid_cnt()
336 sub_id = *oid; in snmp_asn1_enc_oid_cnt()
344 oid++; in snmp_asn1_enc_oid_cnt()
498 snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *oid, u8_t *oid_len, u8_t … in snmp_asn1_dec_oid() argument
[all …]
A Dsnmp_mib2_system.c50 #define CREATE_LWIP_SYNC_NODE(oid, node_name) \ argument
51 …static const struct snmp_threadsync_node node_name ## _synced = SNMP_CREATE_THREAD_SYNC_NODE(oid, …
54 #define CREATE_LWIP_SYNC_NODE(oid, node_name) argument
236 switch (node->oid) { in system_get_value()
265 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("system_get_value(): unknown id: %"S32_F"\n", node->oid)); in system_get_value()
289 switch (node->oid) { in system_set_test()
303 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("system_set_test(): unknown id: %"S32_F"\n", node->oid)); in system_set_test()
332 switch (node->oid) { in system_set_value()
346 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("system_set_value(): unknown id: %"S32_F"\n", node->oid)); in system_set_value()
A Dsnmp_scalar.c97 if (array_node_def->oid == instance->instance_oid.id[0]) { in snmp_scalar_array_get_instance()
138 if (array_node_def->oid < result->oid) { in snmp_scalar_array_get_next_instance()
148 if (array_node_def->oid == instance->instance_oid.id[0]) { in snmp_scalar_array_get_next_instance()
162 if ((array_node_def->oid > instance->instance_oid.id[0]) && in snmp_scalar_array_get_next_instance()
163 ((u32_t)(array_node_def->oid - instance->instance_oid.id[0]) < oid_dist)) { in snmp_scalar_array_get_next_instance()
165 oid_dist = array_node_def->oid - instance->instance_oid.id[0]; in snmp_scalar_array_get_next_instance()
180 instance->instance_oid.id[0] = result->oid; in snmp_scalar_array_get_next_instance()
A Dsnmp_core_priv.h77 const struct snmp_node *snmp_mib_tree_resolve_exact(const struct snmp_mib *mib, const u32_t *oid, u…
78 const struct snmp_node *snmp_mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8…
82 u8_t snmp_get_node_instance_from_oid(const u32_t *oid, u8_t oid_len, struct snmp_node_instance *nod…
83 u8_t snmp_get_next_node_instance_from_oid(const u32_t *oid, u8_t oid_len, snmp_validate_node_instan…
A Dsnmp_msg.c338 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
344 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
350 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
356 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
362 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
368 snmp_oid_assign(&vb.oid, oid, LWIP_ARRAYSIZE(oid)); in snmp_receive()
441 … request->error_status = snmp_get_node_instance_from_oid(vb->oid.id, vb->oid.len, &node_instance); in snmp_process_varbind()
693 … request->error_status = snmp_get_node_instance_from_oid(vb.oid.id, vb.oid.len, &node_instance); in snmp_process_set_request()
1498 snmp_asn1_enc_oid_cnt(varbind->oid.id, varbind->oid.len, &len->oid_value_len); in snmp_varbind_length()
1588 OVB_BUILD_EXEC(snmp_asn1_enc_oid(pbuf_stream, varbind->oid.id, varbind->oid.len)); in snmp_append_outbound_varbind()
[all …]
A Dsnmp_mib2_icmp.c49 #define CREATE_LWIP_SYNC_NODE(oid, node_name) \ argument
50 …static const struct snmp_threadsync_node node_name ## _synced = SNMP_CREATE_THREAD_SYNC_NODE(oid, …
53 #define CREATE_LWIP_SYNC_NODE(oid, node_name) argument
63 switch (node->oid) { in icmp_get_value()
143 LWIP_DEBUGF(SNMP_MIB_DEBUG, ("icmp_get_value(): unknown id: %"S32_F"\n", node->oid)); in icmp_get_value()
A Dsnmp_snmpv2_usm.c33 static void snmp_engineid_to_oid(const char *engineid, u32_t *oid, u32_t len) in snmp_engineid_to_oid() argument
38 oid[i] = engineid[i]; in snmp_engineid_to_oid()
42 static void snmp_oid_to_name(char *name, const u32_t *oid, size_t len) in snmp_oid_to_name() argument
47 name[i] = (char)oid[i]; in snmp_oid_to_name()
51 static void snmp_name_to_oid(const char *name, u32_t *oid, size_t len) in snmp_name_to_oid() argument
56 oid[i] = name[i]; in snmp_name_to_oid()
334 switch (node->oid) { in usmstats_scalars_get_value()
354 … LWIP_DEBUGF(SNMP_MIB_DEBUG, ("usmstats_scalars_get_value(): unknown id: %"S32_F"\n", node->oid)); in usmstats_scalars_get_value()
/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_oid.function2 #include "mbedtls/oid.h"
21 asn1_buf.p = oid->x;
22 asn1_buf.len = oid->len;
42 asn1_buf.p = oid->x;
63 ext_oid.p = oid->x;
84 md_oid.p = oid->x;
107 md_oid.p = oid->x;
131 input_oid.p = oid->len ? oid->x : (void *) 1;
162 TEST_ASSERT(memcmp(oid.p, exp_oid.p, oid.len) == 0);
164 oid.p = NULL;
[all …]
A Dtest_suite_asn1write.function273 (const char *) oid->x, oid->len, par_len);
325 TEST_MEMORY_COMPARE(alg.p, alg.len, oid->x, oid->len);
463 data_t *oid[4] = { oid0, oid1, oid2, oid3 };
480 TEST_CALLOC(nd[i].oid.p, oid[i]->len);
481 memcpy(nd[i].oid.p, oid[i]->x, oid[i]->len);
482 nd[i].oid.len = oid[i]->len;
512 mbedtls_free(found->oid.p);
516 mbedtls_free(nd[i].oid.p);
582 TEST_ASSERT(found->oid.p != oid);
583 TEST_MEMORY_COMPARE(found->oid.p, found->oid.len, oid, oid_len);
[all …]
A Dtest_suite_oid.data4 OID get certificate policy invalid oid
7 OID get certificate policy wrong oid - id-ce-authorityKeyIdentifier
31 OID get Ext Key Usage invalid oid
34 OID get Ext Key Usage wrong oid - id-ce-authorityKeyIdentifier
55 OID get x509 extension - invalid oid
58 OID get x509 extension - wrong oid - id-ce
105 OID hash id - invalid oid
123 OID get numeric string - empty oid buffer
A Dtest_suite_x509parse.function9 #include "mbedtls/oid.h"
409 } else if (new_oid != NULL && new_oid->tag == oid->tag && new_oid->len == oid->len &&
410 memcmp(new_oid->p, oid->p, oid->len) == 0) {
425 (void) oid;
438 (void) oid;
1188 mbedtls_x509_buf oid;
1493 mbedtls_x509_buf oid;
1500 oid.p = buf->x;
1501 oid.len = buf->len;
1522 mbedtls_x509_buf oid;
[all …]
/lib/mbedtls/external/mbedtls/library/
A Dx509_create.c307 oid.len = strlen(attr_descr->oid); in mbedtls_x509_string_to_names()
308 oid.p = mbedtls_calloc(1, oid.len); in mbedtls_x509_string_to_names()
309 memcpy(oid.p, attr_descr->oid, oid.len); in mbedtls_x509_string_to_names()
319 mbedtls_free(oid.p); in mbedtls_x509_string_to_names()
328 mbedtls_free(oid.p); in mbedtls_x509_string_to_names()
347 mbedtls_asn1_store_named_data(head, (char *) oid.p, oid.len, in mbedtls_x509_string_to_names()
350 mbedtls_free(oid.p); in mbedtls_x509_string_to_names()
351 oid.p = NULL; in mbedtls_x509_string_to_names()
371 if (oid.p != NULL) { in mbedtls_x509_string_to_names()
372 mbedtls_free(oid.p); in mbedtls_x509_string_to_names()
[all …]
A Doid.c54 memcmp(cur->asn1, oid->p, oid->len) == 0) { \
935 if (oid->len <= 0) { in FN_OID_TYPED_FROM_ASN1()
951 value |= oid->p[i] & 0x7F; in FN_OID_TYPED_FROM_ASN1()
1075 if (oid->p == NULL) { in mbedtls_oid_from_numeric_string()
1151 mbedtls_free(oid->p); in mbedtls_oid_from_numeric_string()
1152 oid->p = resized_mem; in mbedtls_oid_from_numeric_string()
1153 oid->len = encoded_len; in mbedtls_oid_from_numeric_string()
1155 oid->tag = MBEDTLS_ASN1_OID; in mbedtls_oid_from_numeric_string()
1160 mbedtls_free(oid->p); in mbedtls_oid_from_numeric_string()
1161 oid->p = NULL; in mbedtls_oid_from_numeric_string()
[all …]
A Dasn1write.c148 const char *oid, size_t oid_len) in mbedtls_asn1_write_oid() argument
356 const char *oid, size_t len) in asn1_find_named_data() argument
359 if (list->oid.len == len && in asn1_find_named_data()
360 memcmp(list->oid.p, oid, len) == 0) { in asn1_find_named_data()
370 #define asn1_find_named_data(list, oid, len) \ argument
376 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument
391 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data()
392 cur->oid.p = mbedtls_calloc(1, oid_len); in mbedtls_asn1_store_named_data()
393 if (cur->oid.p == NULL) { in mbedtls_asn1_store_named_data()
398 memcpy(cur->oid.p, oid, oid_len); in mbedtls_asn1_store_named_data()
[all …]
A Dpkwrite.c227 const char *oid; in pk_write_ec_param() local
230 if ((ret = mbedtls_oid_get_oid_by_ec_grp(grp_id, &oid, &oid_len)) != 0) { in pk_write_ec_param()
234 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in pk_write_ec_param()
261 const char *oid; in pk_write_ec_rfc8410_der() local
271 if ((ret = mbedtls_oid_get_oid_by_ec_grp_algid(grp_id, &oid, &oid_len)) != 0) { in pk_write_ec_rfc8410_der()
275 mbedtls_asn1_write_algorithm_identifier_ext(p, buf, oid, oid_len, 0, 0)); in pk_write_ec_rfc8410_der()
444 const char *oid = NULL; in mbedtls_pk_write_pubkey_der() local
475 ret = mbedtls_oid_get_oid_by_ec_grp_algid(ec_grp_id, &oid, &oid_len); in mbedtls_pk_write_pubkey_der()
488 ret = mbedtls_oid_get_oid_by_pk_alg(pk_type, &oid, &oid_len); in mbedtls_pk_write_pubkey_der()
494 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_algorithm_identifier_ext(&c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
/lib/
A Doid_registry.c32 enum OID oid; in look_up_OID() local
64 oid = oid_search_table[j].oid; in look_up_OID()
65 len = oid_index[oid + 1] - oid_index[oid]; in look_up_OID()
79 unsigned char a = oid_data[oid_index[oid] + --len]; in look_up_OID()
90 return oid; in look_up_OID()
167 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument
171 BUG_ON(oid >= OID__NR); in sprint_OID()
173 ret = sprint_oid(oid_data + oid_index[oid], in sprint_OID()
174 oid_index[oid + 1] - oid_index[oid], in sprint_OID()
/lib/crypto/
A Dmscode_parser.c46 enum OID oid; in mscode_note_content_type() local
48 oid = look_up_OID(value, vlen); in mscode_note_content_type()
49 if (oid == OID__NR) { in mscode_note_content_type()
62 if (oid != OID_msPeImageDataObjId && in mscode_note_content_type()
63 oid != OID_msIndividualSPKeyPurpose) { in mscode_note_content_type()
64 pr_err("Unexpected content type OID %u\n", oid); in mscode_note_content_type()
80 enum OID oid; in mscode_note_digest_algo() local
82 oid = look_up_OID(value, vlen); in mscode_note_digest_algo()
83 switch (oid) { in mscode_note_digest_algo()
112 pr_err("Unsupported content type: %u\n", oid); in mscode_note_digest_algo()
/lib/mbedtls/external/mbedtls/include/mbedtls/
A Doid.h560 int mbedtls_oid_get_x509_ext_type(const mbedtls_asn1_buf *oid, int *ext_type);
581 int mbedtls_oid_get_pk_alg(const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg);
593 const char **oid, size_t *olen);
604 int mbedtls_oid_get_ec_grp(const mbedtls_asn1_buf *oid, mbedtls_ecp_group_id *grp_id);
616 const char **oid, size_t *olen);
640 const char **oid, size_t *olen);
652 int mbedtls_oid_get_sig_alg(const mbedtls_asn1_buf *oid,
663 int mbedtls_oid_get_sig_alg_desc(const mbedtls_asn1_buf *oid, const char **desc);
676 const char **oid, size_t *olen);
686 int mbedtls_oid_get_md_hmac(const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_hmac);
[all …]
A Dasn1write.h136 const char *oid, size_t oid_len);
155 const char *oid, size_t oid_len,
176 const char *oid, size_t oid_len,
380 const char *oid, size_t oid_len,
/lib/lwip/lwip/src/include/lwip/apps/
A Dsnmp_core.h174 u32_t oid; member
234 #define SNMP_CREATE_TREE_NODE(oid, subnodes) \ argument
235 {{ SNMP_NODE_TREE, (oid) }, \
238 #define SNMP_CREATE_EMPTY_TREE_NODE(oid) \ argument
239 {{ SNMP_NODE_TREE, (oid) }, \
305 u8_t snmp_oid_to_ip4(const u32_t *oid, ip4_addr_t *ip);
306 void snmp_ip4_to_oid(const ip4_addr_t *ip, u32_t *oid);
309 u8_t snmp_oid_to_ip6(const u32_t *oid, ip6_addr_t *ip);
310 void snmp_ip6_to_oid(const ip6_addr_t *ip, u32_t *oid);
313 u8_t snmp_ip_to_oid(const ip_addr_t *ip, u32_t *oid);
[all …]
A Dsnmp_scalar.h66 #define SNMP_SCALAR_CREATE_NODE(oid, access, asn1_type, get_value_method, set_test_method, set_valu… argument
67 {{{ SNMP_NODE_SCALAR, (oid) }, \
72 #define SNMP_SCALAR_CREATE_NODE_READONLY(oid, asn1_type, get_value_method) SNMP_SCALAR_CREATE_NODE( argument
77 u32_t oid; member
101 #define SNMP_SCALAR_CREATE_ARRAY_NODE(oid, array_nodes, get_value_method, set_test_method, set_valu… argument
102 {{{ SNMP_NODE_SCALAR_ARRAY, (oid) }, \
A Dsnmp_table.h78 #define SNMP_TABLE_CREATE(oid, columns, get_cell_instance_method, get_next_cell_instance_method, ge… argument
79 {{{ SNMP_NODE_TABLE, (oid) }, \
86 #define SNMP_TABLE_GET_COLUMN_FROM_OID(oid) ((oid)[1]) /* first array value is (fixed) row entry (f… argument
118 #define SNMP_TABLE_CREATE_SIMPLE(oid, columns, get_cell_value_method, get_next_cell_instance_and_va… argument
119 {{{ SNMP_NODE_TABLE, (oid) }, \
A Dsnmp.h62 struct snmp_obj_id oid; member
102 err_t snmp_send_trap(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap, struct…
106 err_t snmp_send_inform(const struct snmp_obj_id* oid, s32_t generic_trap, s32_t specific_trap, stru…
136 typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg);
/lib/lwip/lwip/contrib/apps/LwipMibCompiler/SharpSnmpLib/Mib/
A DObjectIdentifier.cs8 public void Add(string name, uint oid) in Add() argument
10 this.Add(new KeyValuePair<string, uint>(name, oid)); in Add()
13 public void Prepend(string name, uint oid) in Prepend() argument
15 this.Insert(0, new KeyValuePair<string, uint>(name, oid)); in Prepend()
18 public void Insert(int index, string name, uint oid) in Insert() argument
20 this.Insert(index, new KeyValuePair<string, uint>(name, oid)); in Insert()

Completed in 59 milliseconds

123