Lines Matching refs:n
815 size_t i, j, n, asn1_len_size, asn1_tag_size, asn1_tag_len_buf_start; in mbedtls_x509_dn_gets() local
830 n = size; in mbedtls_x509_dn_gets()
839 ret = mbedtls_snprintf(p, n, merge ? " + " : ", "); in mbedtls_x509_dn_gets()
848 ret = mbedtls_snprintf(p, n, "%s=", short_name); in mbedtls_x509_dn_gets()
850 if ((ret = mbedtls_oid_get_numeric_string(p, n, &name->oid)) > 0) { in mbedtls_x509_dn_gets()
851 n -= ret; in mbedtls_x509_dn_gets()
853 ret = mbedtls_snprintf(p, n, "="); in mbedtls_x509_dn_gets()
858 ret = mbedtls_snprintf(p, n, "\?\?="); in mbedtls_x509_dn_gets()
931 ret = mbedtls_snprintf(p, n, "%s", s); in mbedtls_x509_dn_gets()
938 return (int) (size - n); in mbedtls_x509_dn_gets()
948 size_t i, n, nr; in mbedtls_x509_serial_gets() local
952 n = size; in mbedtls_x509_serial_gets()
962 ret = mbedtls_snprintf(p, n, "%02X%s", in mbedtls_x509_serial_gets()
968 ret = mbedtls_snprintf(p, n, "...."); in mbedtls_x509_serial_gets()
972 return (int) (size - n); in mbedtls_x509_serial_gets()
985 size_t n = size; in mbedtls_x509_sig_alg_gets() local
990 ret = mbedtls_snprintf(p, n, "???"); in mbedtls_x509_sig_alg_gets()
992 ret = mbedtls_snprintf(p, n, "%s", desc); in mbedtls_x509_sig_alg_gets()
1005 ret = mbedtls_snprintf(p, n, " (%s, MGF1-%s, 0x%02X)", in mbedtls_x509_sig_alg_gets()
1017 return (int) (size - n); in mbedtls_x509_sig_alg_gets()
1027 size_t n = buf_size; in mbedtls_x509_key_size_helper() local
1030 ret = mbedtls_snprintf(p, n, "%s key size", name); in mbedtls_x509_key_size_helper()
1518 size_t n = *size; in mbedtls_x509_info_subject_alt_name() local
1529 ret = mbedtls_snprintf(p, n, "\n%s <unsupported>", prefix); in mbedtls_x509_info_subject_alt_name()
1532 ret = mbedtls_snprintf(p, n, "\n%s <malformed>", prefix); in mbedtls_x509_info_subject_alt_name()
1547 ret = mbedtls_snprintf(p, n, "\n%s otherName :", prefix); in mbedtls_x509_info_subject_alt_name()
1552 ret = mbedtls_snprintf(p, n, "\n%s hardware module name :", prefix); in mbedtls_x509_info_subject_alt_name()
1555 mbedtls_snprintf(p, n, "\n%s hardware type : ", prefix); in mbedtls_x509_info_subject_alt_name()
1559 n, in mbedtls_x509_info_subject_alt_name()
1564 mbedtls_snprintf(p, n, "\n%s hardware serial number : ", prefix); in mbedtls_x509_info_subject_alt_name()
1569 n, in mbedtls_x509_info_subject_alt_name()
1582 ret = mbedtls_snprintf(p, n, "\n%s uniformResourceIdentifier : ", prefix); in mbedtls_x509_info_subject_alt_name()
1584 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1585 if (n > 0) { in mbedtls_x509_info_subject_alt_name()
1593 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1606 ret = mbedtls_snprintf(p, n, in mbedtls_x509_info_subject_alt_name()
1612 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1613 if (n > 0) { in mbedtls_x509_info_subject_alt_name()
1621 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1629 ret = mbedtls_snprintf(p, n, "\n%s %s : ", in mbedtls_x509_info_subject_alt_name()
1632 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1633 if (n > 0) { in mbedtls_x509_info_subject_alt_name()
1642 ret = mbedtls_snprintf(p, n, "%u.%u.%u.%u", ip[0], ip[1], ip[2], ip[3]); in mbedtls_x509_info_subject_alt_name()
1645 ret = mbedtls_snprintf(p, n, in mbedtls_x509_info_subject_alt_name()
1652 if (n > 0) { in mbedtls_x509_info_subject_alt_name()
1664 ret = mbedtls_snprintf(p, n, "\n%s directoryName : ", prefix); in mbedtls_x509_info_subject_alt_name()
1665 if (ret < 0 || (size_t) ret >= n) { 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()
1674 if (n > 0) { in mbedtls_x509_info_subject_alt_name()
1681 n -= ret; in mbedtls_x509_info_subject_alt_name()
1688 ret = mbedtls_snprintf(p, n, "\n%s <unsupported>", prefix); in mbedtls_x509_info_subject_alt_name()
1701 *size = n; in mbedtls_x509_info_subject_alt_name()
1709 ret = mbedtls_snprintf(p, n, "%s" i, sep); \
1725 size_t n = *size; in mbedtls_x509_info_cert_type() local
1738 *size = n; in mbedtls_x509_info_cert_type()
1755 size_t n = *size; in mbedtls_x509_info_key_usage() local
1769 *size = n; in mbedtls_x509_info_key_usage()