/third_party/lwip/src/apps/snmp/ |
D | snmp_core.c | 440 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 …]
|
D | snmp_asn1.c | 206 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 …]
|
D | snmp_core_priv.h | 69 …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…
|
D | snmp_asn1.h | 87 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/ |
D | psa_util.h | 170 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 …]
|
D | asn1write.h | 135 const char *oid, size_t oid_len ); 154 const char *oid, size_t oid_len, 358 const char *oid, size_t oid_len,
|
D | x509.h | 343 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,
|
D | x509_csr.h | 246 const char *oid, size_t oid_len,
|
D | x509_crt.h | 1075 const char *oid, size_t oid_len,
|
/third_party/lwip/src/include/lwip/apps/ |
D | snmp_core.h | 269 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);
|
D | snmp.h | 126 typedef void (*snmp_write_callback_fct)(const u32_t* oid, u8_t oid_len, void* callback_arg);
|
/third_party/mbedtls/library/ |
D | asn1write.c | 178 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()
|
D | x509_create.c | 208 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()
|
D | pkwrite.c | 145 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()
|
D | x509write_csr.c | 85 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()
|
D | x509write_crt.c | 127 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/ |
D | test_suite_asn1write.function | 439 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 );
|