Home
last modified time | relevance | path

Searched refs:oid_len (Results 1 – 17 of 17) sorted by relevance

/third_party/lwip/src/apps/snmp/
Dsnmp_core.c440 snmp_oid_to_ip(const u32_t *oid, u8_t oid_len, ip_addr_t *ip) in snmp_oid_to_ip() argument
443 if (oid_len < 1) { in snmp_oid_to_ip()
449 if (oid_len < 2) { in snmp_oid_to_ip()
463 if (oid_len < 6) { in snmp_oid_to_ip()
484 if (oid_len < 18) { in snmp_oid_to_ip()
516 snmp_oid_to_ip_port(const u32_t *oid, u8_t oid_len, ip_addr_t *ip, u16_t *port) in snmp_oid_to_ip_port() argument
521 idx = snmp_oid_to_ip(&oid[0], oid_len, ip); in snmp_oid_to_ip_port()
527 if (oid_len < (idx + 1)) { in snmp_oid_to_ip_port()
548 snmp_oid_assign(struct snmp_obj_id *target, const u32_t *oid, u8_t oid_len) in snmp_oid_assign() argument
550 LWIP_ASSERT("oid_len <= SNMP_MAX_OBJ_ID_LEN", oid_len <= SNMP_MAX_OBJ_ID_LEN); in snmp_oid_assign()
[all …]
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
208 if (oid_len > 1) { in snmp_asn1_enc_oid()
212 oid_len -= 2; in snmp_asn1_enc_oid()
220 while (oid_len > 0) { in snmp_asn1_enc_oid()
224 oid_len--; 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
328 if (oid_len > 1) { in snmp_asn1_enc_oid_cnt()
331 oid_len -= 2; in snmp_asn1_enc_oid_cnt()
334 while (oid_len > 0) { in snmp_asn1_enc_oid_cnt()
335 oid_len--; in snmp_asn1_enc_oid_cnt()
[all …]
Dsnmp_core_priv.h69 …ib_tree_resolve_exact(const struct snmp_mib *mib, const u32_t *oid, u8_t oid_len, u8_t *oid_instan…
70 …mib_tree_resolve_next(const struct snmp_mib *mib, const u32_t *oid, u8_t oid_len, struct snmp_obj_…
74 u8_t snmp_get_node_instance_from_oid(const u32_t *oid, u8_t oid_len, struct snmp_node_instance *nod…
75 u8_t snmp_get_next_node_instance_from_oid(const u32_t *oid, u8_t oid_len, snmp_validate_node_instan…
Dsnmp_asn1.h87 err_t snmp_asn1_dec_oid(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *oid, u8_t *oid_len,…
95 void snmp_asn1_enc_oid_cnt(const u32_t *oid, u16_t oid_len, u16_t *octets_needed);
96 err_t snmp_asn1_enc_oid(struct snmp_pbuf_stream *pbuf_stream, const u32_t *oid, u16_t oid_len);
/third_party/mbedtls/include/mbedtls/
Dpsa_util.h170 char const **oid, size_t *oid_len ) in mbedtls_psa_get_ecc_oid_from_id() argument
180 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192R1 ); in mbedtls_psa_get_ecc_oid_from_id()
186 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224R1 ); in mbedtls_psa_get_ecc_oid_from_id()
192 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
198 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP384R1 ); in mbedtls_psa_get_ecc_oid_from_id()
204 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP521R1 ); in mbedtls_psa_get_ecc_oid_from_id()
215 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192K1 ); in mbedtls_psa_get_ecc_oid_from_id()
221 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224K1 ); in mbedtls_psa_get_ecc_oid_from_id()
227 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256K1 ); in mbedtls_psa_get_ecc_oid_from_id()
238 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
[all …]
Dasn1write.h135 const char *oid, size_t oid_len );
154 const char *oid, size_t oid_len,
358 const char *oid, size_t oid_len,
Dx509.h343 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
351 const char *oid, size_t oid_len,
Dx509_csr.h246 const char *oid, size_t oid_len,
Dx509_crt.h1075 const char *oid, size_t oid_len,
/third_party/lwip/src/include/lwip/apps/
Dsnmp_core.h269 u8_t snmp_oid_in_range(const u32_t *oid_in, u8_t oid_len, const struct snmp_oid_range *oid_ranges, …
294 u8_t snmp_next_oid_precheck(struct snmp_next_oid_state *state, const u32_t *oid, u8_t oid_len);
295 u8_t snmp_next_oid_check(struct snmp_next_oid_state *state, const u32_t *oid, u8_t oid_len, void* r…
297 void snmp_oid_assign(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len);
299 void snmp_oid_prefix(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len);
300 void snmp_oid_append(struct snmp_obj_id* target, const u32_t *oid, u8_t oid_len);
316 u8_t snmp_oid_to_ip(const u32_t *oid, u8_t oid_len, ip_addr_t *ip);
317 u8_t snmp_oid_to_ip_port(const u32_t *oid, u8_t oid_len, ip_addr_t *ip, u16_t *port);
Dsnmp.h126 typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg);
/third_party/mbedtls/library/
Dasn1write.c178 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument
184 (const unsigned char *) oid, oid_len ) ); in mbedtls_asn1_write_oid()
192 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument
203 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in mbedtls_asn1_write_algorithm_identifier()
414 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument
420 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data()
429 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data()
430 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
437 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data()
Dx509_create.c208 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument
213 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension()
242 size_t oid_len = cur_name->oid.len; in x509_write_name() local
254 oid_len ) ); in x509_write_name()
290 const char *oid, size_t oid_len, in mbedtls_x509_write_sig() argument
315 oid_len, 0 ) ); in mbedtls_x509_write_sig()
Dpkwrite.c145 size_t oid_len; in pk_write_ec_param() local
147 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param()
150 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in pk_write_ec_param()
229 size_t len = 0, par_len = 0, oid_len; in mbedtls_pk_write_pubkey_der() local
283 ret = mbedtls_psa_get_ecc_oid_from_id( curve, bits, &oid, &oid_len ); in mbedtls_pk_write_pubkey_der()
290 oid, oid_len ) ); in mbedtls_pk_write_pubkey_der()
298 &oid_len ) ) != 0 ) in mbedtls_pk_write_pubkey_der()
303 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
Dx509write_csr.c85 const char *oid, size_t oid_len, in mbedtls_x509write_csr_set_extension() argument
89 return mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_csr_set_extension()
Dx509write_crt.c127 const char *oid, size_t oid_len, in mbedtls_x509write_crt_set_extension() argument
131 return( mbedtls_x509_set_extension( &ctx->extensions, oid, oid_len, in mbedtls_x509write_crt_set_extension()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.function439 size_t oid_len = strlen( (const char *) oid );
448 (const char *) oid, oid_len,
453 ASSERT_COMPARE( found->oid.p, found->oid.len, oid, oid_len );