Lines Matching refs:name
882 const mbedtls_x509_name *name; in mbedtls_x509_dn_gets() local
890 name = dn; in mbedtls_x509_dn_gets()
894 while (name != NULL) { in mbedtls_x509_dn_gets()
895 if (!name->oid.p) { in mbedtls_x509_dn_gets()
896 name = name->next; in mbedtls_x509_dn_gets()
900 if (name != dn) { in mbedtls_x509_dn_gets()
905 print_hexstring = (name->val.tag != MBEDTLS_ASN1_UTF8_STRING) && in mbedtls_x509_dn_gets()
906 (name->val.tag != MBEDTLS_ASN1_PRINTABLE_STRING) && in mbedtls_x509_dn_gets()
907 (name->val.tag != MBEDTLS_ASN1_IA5_STRING); in mbedtls_x509_dn_gets()
909 if ((ret = mbedtls_x509_oid_get_attr_short_name(&name->oid, &short_name)) == 0) { in mbedtls_x509_dn_gets()
912 if ((ret = mbedtls_oid_get_numeric_string(p, n, &name->oid)) > 0) { in mbedtls_x509_dn_gets()
929 if ((ret = mbedtls_asn1_write_len(&asn1_len_p, asn1_tag_len_buf, name->val.len)) < 0) { in mbedtls_x509_dn_gets()
933 if ((ret = mbedtls_asn1_write_tag(&asn1_len_p, asn1_tag_len_buf, name->val.tag)) < 0) { in mbedtls_x509_dn_gets()
948 for (i = 0; i < name->val.len; i++) { in mbedtls_x509_dn_gets()
952 c = name->val.p[i]; in mbedtls_x509_dn_gets()
959 for (i = 0, j = 0; i < name->val.len; i++, j++) { in mbedtls_x509_dn_gets()
964 c = name->val.p[i]; in mbedtls_x509_dn_gets()
971 ((i == name->val.len-1) && (c == ' '))) { in mbedtls_x509_dn_gets()
996 merge = name->next_merged; in mbedtls_x509_dn_gets()
997 name = name->next; in mbedtls_x509_dn_gets()
1059 const char *name = md_type_to_string(md_alg); in mbedtls_x509_sig_alg_gets() local
1060 if (name != NULL) { in mbedtls_x509_sig_alg_gets()
1061 ret = mbedtls_snprintf(p, n, " (%s)", name); in mbedtls_x509_sig_alg_gets()
1079 int mbedtls_x509_key_size_helper(char *buf, size_t buf_size, const char *name) in mbedtls_x509_key_size_helper() argument
1085 ret = mbedtls_snprintf(p, n, "%s key size", name); in mbedtls_x509_key_size_helper()
1769 #define CERT_TYPE(type, name) \ argument
1772 PRINT_ITEM(name); \
1799 #define KEY_USAGE(code, name) \ argument
1802 PRINT_ITEM(name); \