Lines Matching refs:oid
9 #include "mbedtls/oid.h"
258 .oid);
324 static int parse_crt_ext_cb(void *p_ctx, mbedtls_x509_crt const *crt, mbedtls_x509_buf const *oid,
330 if (oid->tag == MBEDTLS_ASN1_OID &&
331 MBEDTLS_OID_CMP(MBEDTLS_OID_CERTIFICATE_POLICIES, oid) == 0) {
413 } else if (new_oid != NULL && new_oid->tag == oid->tag && new_oid->len == oid->len &&
414 memcmp(new_oid->p, oid->p, oid->len) == 0) {
427 mbedtls_x509_buf const *oid,
434 (void) oid;
444 mbedtls_x509_buf const *oid,
451 (void) oid;
1010 TEST_EQUAL(mbedtls_oid_get_attr_short_name(&parsed_cur->oid,
1201 mbedtls_x509_buf oid;
1210 oid.tag = MBEDTLS_ASN1_OID;
1211 oid.len = MBEDTLS_OID_SIZE(MBEDTLS_OID_PKIX "\x01\x1F");
1212 oid.p = (unsigned char *) MBEDTLS_OID_PKIX "\x01\x1F";
1218 &oid), result);
1235 &oid), (result));
1506 mbedtls_x509_buf oid;
1512 oid.tag = MBEDTLS_ASN1_OID;
1513 oid.p = buf->x;
1514 oid.len = buf->len;
1516 ret = mbedtls_oid_get_extended_key_usage(&oid, &desc);
1535 mbedtls_x509_buf oid;
1542 oid.tag = MBEDTLS_ASN1_OID;
1543 oid.p = oid_buf->x;
1544 oid.len = oid_buf->len;
1548 TEST_EQUAL(mbedtls_oid_get_numeric_string(num_buf, blen, &oid), ret);
1579 void x509_check_extended_key_usage(char *crt_file, data_t *oid, int ret
1589 TEST_EQUAL(mbedtls_x509_crt_check_extended_key_usage(&crt, (const char *) oid->x, oid->len),