Lines Matching refs:n

570 static int x509_parse_int(unsigned char **p, size_t n, int *res)  in x509_parse_int()  argument
574 for (; n > 0; --n) { in x509_parse_int()
842 size_t i, j, n; in mbedtls_x509_dn_gets() local
852 n = size; in mbedtls_x509_dn_gets()
861 ret = mbedtls_snprintf(p, n, merge ? " + " : ", "); in mbedtls_x509_dn_gets()
868 ret = mbedtls_snprintf(p, n, "%s=", short_name); in mbedtls_x509_dn_gets()
870 ret = mbedtls_snprintf(p, n, "\?\?="); in mbedtls_x509_dn_gets()
894 ret = mbedtls_snprintf(p, n, "%s", s); in mbedtls_x509_dn_gets()
901 return (int) (size - n); in mbedtls_x509_dn_gets()
911 size_t i, n, nr; in mbedtls_x509_serial_gets() local
915 n = size; in mbedtls_x509_serial_gets()
925 ret = mbedtls_snprintf(p, n, "%02X%s", in mbedtls_x509_serial_gets()
931 ret = mbedtls_snprintf(p, n, "...."); in mbedtls_x509_serial_gets()
935 return (int) (size - n); in mbedtls_x509_serial_gets()
948 size_t n = size; in mbedtls_x509_sig_alg_gets() local
953 ret = mbedtls_snprintf(p, n, "???"); in mbedtls_x509_sig_alg_gets()
955 ret = mbedtls_snprintf(p, n, "%s", desc); in mbedtls_x509_sig_alg_gets()
968 ret = mbedtls_snprintf(p, n, " (%s, MGF1-%s, 0x%02X)", in mbedtls_x509_sig_alg_gets()
980 return (int) (size - n); in mbedtls_x509_sig_alg_gets()
990 size_t n = buf_size; in mbedtls_x509_key_size_helper() local
993 ret = mbedtls_snprintf(p, n, "%s key size", name); in mbedtls_x509_key_size_helper()
1455 size_t n = *size; in mbedtls_x509_info_subject_alt_name() local
1466 ret = mbedtls_snprintf(p, n, "\n%s <unsupported>", prefix); in mbedtls_x509_info_subject_alt_name()
1469 ret = mbedtls_snprintf(p, n, "\n%s <malformed>", prefix); in mbedtls_x509_info_subject_alt_name()
1484 ret = mbedtls_snprintf(p, n, "\n%s otherName :", prefix); in mbedtls_x509_info_subject_alt_name()
1489 ret = mbedtls_snprintf(p, n, "\n%s hardware module name :", prefix); in mbedtls_x509_info_subject_alt_name()
1492 mbedtls_snprintf(p, n, "\n%s hardware type : ", prefix); in mbedtls_x509_info_subject_alt_name()
1496 n, in mbedtls_x509_info_subject_alt_name()
1501 mbedtls_snprintf(p, n, "\n%s hardware serial number : ", prefix); in mbedtls_x509_info_subject_alt_name()
1506 n, in mbedtls_x509_info_subject_alt_name()
1519 ret = mbedtls_snprintf(p, n, "\n%s uniformResourceIdentifier : ", prefix); in mbedtls_x509_info_subject_alt_name()
1521 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1528 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1541 ret = mbedtls_snprintf(p, n, in mbedtls_x509_info_subject_alt_name()
1547 if (san.san.unstructured_name.len >= n) { in mbedtls_x509_info_subject_alt_name()
1554 n -= san.san.unstructured_name.len; in mbedtls_x509_info_subject_alt_name()
1562 ret = mbedtls_snprintf(p, n, "\n%s <unsupported>", prefix); in mbedtls_x509_info_subject_alt_name()
1572 *size = n; in mbedtls_x509_info_subject_alt_name()
1580 ret = mbedtls_snprintf(p, n, "%s" i, sep); \
1593 size_t n = *size; in mbedtls_x509_info_cert_type() local
1606 *size = n; in mbedtls_x509_info_cert_type()
1620 size_t n = *size; in mbedtls_x509_info_key_usage() local
1634 *size = n; in mbedtls_x509_info_key_usage()