Home
last modified time | relevance | path

Searched refs:BIO_snprintf (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd-14.2/crypto/openssl/crypto/bio/
H A Dbio_cb.c31 left = BIO_snprintf(buf, sizeof(buf), "BIO[%p]: ", (void *)bio); in BIO_debug_callback_ex()
41 BIO_snprintf(p, left, "Free - %s\n", bio->method->name); in BIO_debug_callback_ex()
45 BIO_snprintf(p, left, "read(%d,%zu) - %s fd=%d\n", in BIO_debug_callback_ex()
49 BIO_snprintf(p, left, "read(%d,%zu) - %s\n", in BIO_debug_callback_ex()
54 BIO_snprintf(p, left, "write(%d,%zu) - %s fd=%d\n", in BIO_debug_callback_ex()
58 BIO_snprintf(p, left, "write(%d,%zu) - %s\n", in BIO_debug_callback_ex()
62 BIO_snprintf(p, left, "puts() - %s\n", bio->method->name); in BIO_debug_callback_ex()
65 BIO_snprintf(p, left, "gets(%zu) - %s\n", len, in BIO_debug_callback_ex()
69 BIO_snprintf(p, left, "ctrl(%d) - %s\n", argi, in BIO_debug_callback_ex()
73 BIO_snprintf(p, left, "read return %d processed: %zu\n", ret, l); in BIO_debug_callback_ex()
[all …]
H A Dbio_dump.c48 n = BIO_snprintf(buf, sizeof(buf), "%*s%04x - ", indent, "", in BIO_dump_indent_cb()
56 BIO_snprintf(buf + n, 4, "%02x%c", ch, in BIO_dump_indent_cb()
/freebsd-14.2/crypto/openssl/apps/lib/
H A Dapp_params.c45 printed_len = BIO_snprintf(buf, bufsz, "%s: ", param->key); in describe_param_type()
50 printed_len = BIO_snprintf(buf, bufsz, "%s%s", type_mod, type); in describe_param_type()
56 printed_len = BIO_snprintf(buf, bufsz, " [%d]", param->data_type); in describe_param_type()
63 printed_len = BIO_snprintf(buf, bufsz, " (arbitrary size)"); in describe_param_type()
65 printed_len = BIO_snprintf(buf, bufsz, " (max %zu bytes large)", in describe_param_type()
H A Dapps.c1665 BIO_snprintf(buf, sizeof(buf), "%s.attr", dbfile); in load_index()
1667 BIO_snprintf(buf, sizeof(buf), "%s-attr", dbfile); in load_index()
1743 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s.attr", dbfile); in save_index()
1745 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, suffix); in save_index()
1747 j = BIO_snprintf(buf[2], sizeof(buf[2]), "%s-attr", dbfile); in save_index()
1749 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", dbfile, suffix); in save_index()
1793 j = BIO_snprintf(buf[4], sizeof(buf[4]), "%s.attr", dbfile); in rotate_index()
1796 j = BIO_snprintf(buf[1], sizeof(buf[1]), "%s.%s", dbfile, old_suffix); in rotate_index()
1797 j = BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, new_suffix); in rotate_index()
1799 j = BIO_snprintf(buf[4], sizeof(buf[4]), "%s-attr", dbfile); in rotate_index()
[all …]
/freebsd-14.2/crypto/openssl/crypto/
H A Dinfo.c46 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
53 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
59 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
62 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
68 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
98 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
/freebsd-14.2/crypto/openssl/doc/man3/
H A DBIO_printf.pod5 BIO_printf, BIO_vprintf, BIO_snprintf, BIO_vsnprintf
15 int BIO_snprintf(char *buf, size_t n, const char *format, ...);
29 BIO_snprintf() is for platforms that do not have the common snprintf()
33 BIO_vsnprintf() is to BIO_snprintf() as BIO_vprintf() is to BIO_printf().
38 For BIO_snprintf() and BIO_vsnprintf() this includes when the output
43 Except when I<n> is 0, both BIO_snprintf() and BIO_vsnprintf() always
H A DERR_new.pod37 The additional data is processed with L<BIO_snprintf(3)> to form the
67 L<ERR_load_strings(3)>, L<BIO_snprintf(3)>, L<provider-base(7)>
/freebsd-14.2/crypto/openssl/crypto/cmp/
H A Dcmp_status.c193 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s", status_string); in snprint_PKIStatusInfo_parts()
201 printed_chars = BIO_snprintf(write_ptr, bufsize, "; PKIFailureInfo: "); in snprint_PKIStatusInfo_parts()
207 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s%s", in snprint_PKIStatusInfo_parts()
218 printed_chars = BIO_snprintf(write_ptr, bufsize, "; <no failure info>"); in snprint_PKIStatusInfo_parts()
225 printed_chars = BIO_snprintf(write_ptr, bufsize, "; StatusString%s: ", in snprint_PKIStatusInfo_parts()
230 printed_chars = BIO_snprintf(write_ptr, bufsize, "\"%.*s\"%s", in snprint_PKIStatusInfo_parts()
H A Dcmp_util.c175 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", reason); in OSSL_CMP_print_errors_cb()
179 BIO_snprintf(msg, sizeof(msg), "%s:%s", rs, data); in OSSL_CMP_print_errors_cb()
181 BIO_snprintf(msg, sizeof(msg), "%s", rs); in OSSL_CMP_print_errors_cb()
H A Dcmp_http.c73 BIO_snprintf(server_port, sizeof(server_port), "%d", ctx->serverPort); in OSSL_CMP_MSG_http_perform()
H A Dcmp_client.c218 && BIO_snprintf(buf, sizeof(buf), "; errorCode: %08lX", in send_receive_check()
292 if (BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN, "value = %jd", in poll_for_response()
299 || (len = BIO_snprintf(str, OSSL_CMP_PKISI_BUFLEN, in poll_for_response()
307 || BIO_snprintf(str + len, sizeof(str) - len, in poll_for_response()
/freebsd-14.2/crypto/openssl/test/
H A Dbioprinttest.c136 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_zu()
164 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_j()
199 BIO_snprintf(format, sizeof(format), "%%%s.%d%s", width, prec, in dofptest()
202 BIO_snprintf(format, sizeof(format), "%%%s%s", width, fspec); in dofptest()
203 BIO_snprintf(result, sizeof(result), format, val); in dofptest()
249 if (!TEST_int_eq(BIO_snprintf(buf, sizeof(buf), in test_big()
H A Derrtest.c86 BIO_snprintf(reasonbuf, sizeof(reasonbuf), "reason(%lu)", reasoncode); in test_print_error_format()
90 BIO_snprintf(expected, sizeof(expected), expected_format, in test_print_error_format()
H A Dpkcs12_format_test.c361 BIO_snprintf(fname, sizeof(fname), "1key_ciph-%s_iter-%d.p12", in test_single_key()
461 BIO_snprintf(fname, sizeof(fname), "1cert_mac-%s_iter-%d.p12", in test_single_cert_mac()
622 BIO_snprintf(fname, sizeof(fname), "1secret_ciph-%s_iter-%d.p12", in test_single_secret()
H A Dprovider_internal_test.c45 BIO_snprintf(expected_greeting, sizeof(expected_greeting), in expected_greeting1()
/freebsd-14.2/crypto/openssl/crypto/asn1/
H A Dasn1_parse.c37 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=%4ld %s", in asn1_print_info()
41 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=inf %s", in asn1_print_info()
63 BIO_snprintf(str, sizeof(str), "priv [ %d ] ", tag); in asn1_print_info()
65 BIO_snprintf(str, sizeof(str), "cont [ %d ]", tag); in asn1_print_info()
67 BIO_snprintf(str, sizeof(str), "appl [ %d ]", tag); in asn1_print_info()
69 BIO_snprintf(str, sizeof(str), "<ASN1 %d>", tag); in asn1_print_info()
H A Da_strex.c77 BIO_snprintf(tmphex, sizeof(tmphex), "\\W%08lX", c); in do_esc_char()
83 BIO_snprintf(tmphex, sizeof(tmphex), "\\U%04lX", c); in do_esc_char()
111 BIO_snprintf(tmphex, 11, "\\%02X", chtmp); in do_esc_char()
/freebsd-14.2/crypto/openssl/crypto/bn/
H A Dbn_print.c64 BIO_snprintf(data, sizeof(data), "bn(%zu,%zu)", in BN_options()
67 BIO_snprintf(data, sizeof(data), "bn(%zu,%zu)", in BN_options()
H A Dbn_conv.c103 n = BIO_snprintf(p, tbytes - (size_t)(p - buf), BN_DEC_FMT1, *lp); in BN_bn2dec()
109 n = BIO_snprintf(p, tbytes - (size_t)(p - buf), BN_DEC_FMT2, *lp); in BN_bn2dec()
/freebsd-14.2/crypto/openssl/crypto/dso/
H A Ddso_dlfcn.c274 BIO_snprintf(translated, rsize, "lib%s" DSO_EXTENSION, filename); in dlfcn_name_converter()
276 BIO_snprintf(translated, rsize, "%s" DSO_EXTENSION, filename); in dlfcn_name_converter()
278 BIO_snprintf(translated, rsize, "%s", filename); in dlfcn_name_converter()
H A Ddso_dl.c239 BIO_snprintf(translated, rsize, in dl_name_converter()
243 BIO_snprintf(translated, rsize, "%s", filename); in dl_name_converter()
/freebsd-14.2/crypto/openssl/crypto/err/
H A Derr_prn.c37 BIO_snprintf(buf, sizeof(buf), "%s:", hex == NULL ? "<null>" : hex); in ERR_print_errors_cb()
41 BIO_snprintf(buf + offset, sizeof(buf) - offset, ":%s:%d:%s\n", in ERR_print_errors_cb()
H A Derr.c535 BIO_snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); in ossl_err_string_int()
555 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", r); in ossl_err_string_int()
559 BIO_snprintf(buf, len, "error:%08lX:%s:%s:%s", e, ls, func, rs); in ossl_err_string_int()
562 BIO_snprintf(buf, len, "err:%lx:%lx:%lx:%lx", e, l, 0L, r); in ossl_err_string_int()
/freebsd-14.2/crypto/openssl/apps/
H A Drehash.c403 if (BIO_snprintf(buf, buflen, "%s%s%s", in do_dir()
426 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir()
436 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
458 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
H A Ds_time.c284 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
339 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, www_path); in s_time_main()
366 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()

1234