Lines Matching refs:san
1395 mbedtls_x509_subject_alternative_name *san) in mbedtls_x509_parse_subject_alt_name() argument
1413 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1414 san->type = MBEDTLS_X509_SAN_OTHER_NAME; in mbedtls_x509_parse_subject_alt_name()
1415 memcpy(&san->san.other_name, in mbedtls_x509_parse_subject_alt_name()
1425 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1426 san->type = MBEDTLS_X509_SAN_UNIFORM_RESOURCE_IDENTIFIER; in mbedtls_x509_parse_subject_alt_name()
1428 memcpy(&san->san.unstructured_name, in mbedtls_x509_parse_subject_alt_name()
1438 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1439 san->type = MBEDTLS_X509_SAN_DNS_NAME; in mbedtls_x509_parse_subject_alt_name()
1441 memcpy(&san->san.unstructured_name, in mbedtls_x509_parse_subject_alt_name()
1450 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1451 san->type = MBEDTLS_X509_SAN_IP_ADDRESS; in mbedtls_x509_parse_subject_alt_name()
1454 memcpy(&san->san.unstructured_name, in mbedtls_x509_parse_subject_alt_name()
1466 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1467 san->type = MBEDTLS_X509_SAN_RFC822_NAME; in mbedtls_x509_parse_subject_alt_name()
1468 memcpy(&san->san.unstructured_name, san_buf, sizeof(*san_buf)); in mbedtls_x509_parse_subject_alt_name()
1478 memset(san, 0, sizeof(mbedtls_x509_subject_alternative_name)); in mbedtls_x509_parse_subject_alt_name()
1479 san->type = MBEDTLS_X509_SAN_DIRECTORY_NAME; in mbedtls_x509_parse_subject_alt_name()
1489 &san->san.directory_name)) != 0) { in mbedtls_x509_parse_subject_alt_name()
1503 void mbedtls_x509_free_subject_alt_name(mbedtls_x509_subject_alternative_name *san) in mbedtls_x509_free_subject_alt_name() argument
1505 if (san->type == MBEDTLS_X509_SAN_DIRECTORY_NAME) { in mbedtls_x509_free_subject_alt_name()
1506 mbedtls_asn1_free_named_data_list_shallow(san->san.directory_name.next); in mbedtls_x509_free_subject_alt_name()
1521 mbedtls_x509_subject_alternative_name san; in mbedtls_x509_info_subject_alt_name() local
1525 memset(&san, 0, sizeof(san)); in mbedtls_x509_info_subject_alt_name()
1526 parse_ret = mbedtls_x509_parse_subject_alt_name(&cur->buf, &san); in mbedtls_x509_info_subject_alt_name()
1539 switch (san.type) { in mbedtls_x509_info_subject_alt_name()
1545 mbedtls_x509_san_other_name *other_name = &san.san.other_name; in mbedtls_x509_info_subject_alt_name()
1584 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1591 memcpy(p, san.san.unstructured_name.p, san.san.unstructured_name.len); in mbedtls_x509_info_subject_alt_name()
1592 p += san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1593 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1609 san.type == in mbedtls_x509_info_subject_alt_name()
1612 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1619 memcpy(p, san.san.unstructured_name.p, san.san.unstructured_name.len); in mbedtls_x509_info_subject_alt_name()
1620 p += san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1621 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1632 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1639 unsigned char *ip = san.san.unstructured_name.p; in mbedtls_x509_info_subject_alt_name()
1641 if (san.san.unstructured_name.len == 4) { in mbedtls_x509_info_subject_alt_name()
1644 } else if (san.san.unstructured_name.len == 16) { in mbedtls_x509_info_subject_alt_name()
1666 mbedtls_x509_free_subject_alt_name(&san); in mbedtls_x509_info_subject_alt_name()
1670 ret = mbedtls_x509_dn_gets(p, n, &san.san.directory_name); in mbedtls_x509_info_subject_alt_name()
1673 mbedtls_x509_free_subject_alt_name(&san); in mbedtls_x509_info_subject_alt_name()
1695 mbedtls_x509_free_subject_alt_name(&san); in mbedtls_x509_info_subject_alt_name()