Home
last modified time | relevance | path

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

12345

/freebsd/crypto/openssl/crypto/bio/
H A Dbio_cb.c33 left = BIO_snprintf(buf, sizeof(buf), "BIO[%p]: ", (void *)bio); in BIO_debug_callback_ex()
43 BIO_snprintf(p, left, "Free - %s\n", bio->method->name); in BIO_debug_callback_ex()
47 BIO_snprintf(p, left, "read(%d,%zu) - %s fd=%d\n", in BIO_debug_callback_ex()
51 BIO_snprintf(p, left, "read(%d,%zu) - %s\n", in BIO_debug_callback_ex()
56 BIO_snprintf(p, left, "write(%d,%zu) - %s fd=%d\n", in BIO_debug_callback_ex()
60 BIO_snprintf(p, left, "write(%d,%zu) - %s\n", in BIO_debug_callback_ex()
64 BIO_snprintf(p, left, "puts() - %s\n", bio->method->name); in BIO_debug_callback_ex()
67 BIO_snprintf(p, left, "gets(%zu) - %s\n", len, in BIO_debug_callback_ex()
71 BIO_snprintf(p, left, "ctrl(%d) - %s\n", argi, in BIO_debug_callback_ex()
76 BIO_snprintf(p, left, "recvmmsg(%zu) - %s", 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()
58 BIO_snprintf(buf + n, 4, "%02x%c", ch, in BIO_dump_indent_cb()
/freebsd/crypto/openssl/crypto/
H A Dinfo.c55 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
64 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
70 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
73 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
79 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
82 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
88 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
118 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
125 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
163 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
[all …]
H A Dcversion.c65 BIO_snprintf(openssldir, sizeof(openssldir), "OPENSSLDIR: \"%s\"", in DEFINE_RUN_ONCE_STATIC()
67 BIO_snprintf(enginesdir, sizeof(enginesdir), "ENGINESDIR: \"%s\"", in DEFINE_RUN_ONCE_STATIC()
69 BIO_snprintf(modulesdir, sizeof(modulesdir), "MODULESDIR: \"%s\"", in DEFINE_RUN_ONCE_STATIC()
/freebsd/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.c1570 BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", serialfile, suffix); in save_serial()
1572 BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", serialfile, suffix); in save_serial()
1614 BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", serialfile, new_suffix); in rotate_serial()
1615 BIO_snprintf(buf[1], sizeof(buf[1]), "%s.%s", serialfile, old_suffix); in rotate_serial()
1617 BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", serialfile, new_suffix); in rotate_serial()
1618 BIO_snprintf(buf[1], sizeof(buf[1]), "%s-%s", serialfile, old_suffix); in rotate_serial()
1696 BIO_snprintf(buf, sizeof(buf), "%s.attr", dbfile); in load_index()
1698 BIO_snprintf(buf, sizeof(buf), "%s-attr", dbfile); in load_index()
1773 BIO_snprintf(buf[2], sizeof(buf[2]), "%s.attr", dbfile); in save_index()
1774 BIO_snprintf(buf[1], sizeof(buf[1]), "%s.attr.%s", dbfile, suffix); in save_index()
[all …]
H A Dhttp_server.c199 BIO_snprintf(name, sizeof(name), "*:%s", port); /* port may be "0" */ in http_server_init()
508 int ret = BIO_snprintf(buf, sizeof(buf), HTTP_1_0 " 200 OK\r\n%s" in http_server_send_asn1_resp()
534 int ret = BIO_snprintf(buf, sizeof(buf), HTTP_1_0 " %d %s\r\n\r\n", in http_server_send_status()
H A Dlog.c49 (void)BIO_snprintf(prefix, sizeof(prefix), "%s: ", prog); in log_with_prefix()
/freebsd/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/crypto/openssl/crypto/cmp/
H A Dcmp_status.c192 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s", status_string); in snprint_PKIStatusInfo_parts()
200 printed_chars = BIO_snprintf(write_ptr, bufsize, "; PKIFailureInfo: "); in snprint_PKIStatusInfo_parts()
206 printed_chars = BIO_snprintf(write_ptr, bufsize, "%s%s", in snprint_PKIStatusInfo_parts()
217 printed_chars = BIO_snprintf(write_ptr, bufsize, "; <no failure info>"); in snprint_PKIStatusInfo_parts()
224 printed_chars = BIO_snprintf(write_ptr, bufsize, "; StatusString%s: ", in snprint_PKIStatusInfo_parts()
229 printed_chars = BIO_snprintf(write_ptr, bufsize, "\"%.*s\"%s", in snprint_PKIStatusInfo_parts()
H A Dcmp_util.c173 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", reason); in OSSL_CMP_print_errors_cb()
177 BIO_snprintf(msg, sizeof(msg), "%s:%s", rs, data); in OSSL_CMP_print_errors_cb()
179 BIO_snprintf(msg, sizeof(msg), "%s", rs); in OSSL_CMP_print_errors_cb()
/freebsd/crypto/openssl/test/
H A Dbioprinttest.c140 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_zu()
168 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_j()
202 BIO_snprintf(format, sizeof(format), "%%%s.%d%s", width, prec, in dofptest()
205 BIO_snprintf(format, sizeof(format), "%%%s%s", width, fspec); in dofptest()
206 BIO_snprintf(result, sizeof(result), format, val); in dofptest()
253 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 Dprovider_internal_test.c44 BIO_snprintf(expected_greeting, sizeof(expected_greeting), in expected_greeting1()
/freebsd/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()
42 if (BIO_snprintf(str, sizeof(str), "%5ld:d=%-2d hl=%ld l=inf %s", in asn1_print_info()
65 BIO_snprintf(str, sizeof(str), "priv [ %d ] ", tag); in asn1_print_info()
67 BIO_snprintf(str, sizeof(str), "cont [ %d ]", tag); in asn1_print_info()
69 BIO_snprintf(str, sizeof(str), "appl [ %d ]", tag); in asn1_print_info()
71 BIO_snprintf(str, sizeof(str), "<ASN1 %d>", tag); in asn1_print_info()
H A Da_strex.c73 BIO_snprintf(tmphex, sizeof(tmphex), "\\W%08lX", c); in do_esc_char()
79 BIO_snprintf(tmphex, sizeof(tmphex), "\\U%04lX", c); in do_esc_char()
105 BIO_snprintf(tmphex, 11, "\\%02X", chtmp); in do_esc_char()
/freebsd/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.c96 n = BIO_snprintf(p, tbytes - (size_t)(p - buf), BN_DEC_FMT1, *lp); in BN_bn2dec()
102 n = BIO_snprintf(p, tbytes - (size_t)(p - buf), BN_DEC_FMT2, *lp); in BN_bn2dec()
/freebsd/crypto/openssl/crypto/dso/
H A Ddso_dlfcn.c265 BIO_snprintf(translated, rsize, "lib%s" DSO_EXTENSION, filename); in dlfcn_name_converter()
267 BIO_snprintf(translated, rsize, "%s" DSO_EXTENSION, filename); in dlfcn_name_converter()
269 BIO_snprintf(translated, rsize, "%s", filename); in dlfcn_name_converter()
H A Ddso_dl.c231 BIO_snprintf(translated, rsize, in dl_name_converter()
237 BIO_snprintf(translated, rsize, "%s", filename); in dl_name_converter()
/freebsd/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.c536 BIO_snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); in ossl_err_string_int()
556 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", in ossl_err_string_int()
561 BIO_snprintf(buf, len, "error:%08lX:%s:%s:%s", e, ls, func, rs); in ossl_err_string_int()
564 BIO_snprintf(buf, len, "err:%lx:%lx:%lx:%lx", e, l, 0L, r); in ossl_err_string_int()
/freebsd/crypto/openssl/apps/
H A Drehash.c403 if (BIO_snprintf(buf, buflen, "%s%s%s", in do_dir()
427 BIO_snprintf(buf, buflen, "%08x.%s%d", bp->hash, in do_dir()
437 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
459 BIO_snprintf(buf, buflen, "%s%s%08x.%s%d", in do_dir()
H A Ds_time.c301 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
355 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, www_path); in s_time_main()
382 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()

12345