Home
last modified time | relevance | path

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

1234

/openssl/crypto/bio/
H A Dbio_cb.c43 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()
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()
81 BIO_snprintf(p, left, "sendmmsg(%zu) - %s", in BIO_debug_callback_ex()
97 BIO_snprintf(p, left, "ctrl return %d\n", ret); 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()
/openssl/crypto/
H A Dinfo.c54 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
61 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
67 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
70 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
76 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
106 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
113 BIO_snprintf(ossl_cpu_info_str, sizeof(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
119 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
128 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
133 BIO_snprintf(ossl_cpu_info_str + strlen(ossl_cpu_info_str), in DEFINE_RUN_ONCE_STATIC()
H A Driscvcap.c71 BIO_snprintf(buf, BUFLEN, "_%s", RISCV_capabilities[i].name); in parse_env()
/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.c1702 BIO_snprintf(buf, sizeof(buf), "%s.attr", dbfile); in load_index()
1704 BIO_snprintf(buf, sizeof(buf), "%s-attr", dbfile); in load_index()
1776 BIO_snprintf(buf[2], sizeof(buf[2]), "%s.attr", dbfile); in save_index()
1778 BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, suffix); in save_index()
1780 BIO_snprintf(buf[2], sizeof(buf[2]), "%s-attr", dbfile); in save_index()
1782 BIO_snprintf(buf[0], sizeof(buf[0]), "%s-%s", dbfile, suffix); in save_index()
1826 BIO_snprintf(buf[4], sizeof(buf[4]), "%s.attr", dbfile); in rotate_index()
1829 BIO_snprintf(buf[1], sizeof(buf[1]), "%s.%s", dbfile, old_suffix); in rotate_index()
1830 BIO_snprintf(buf[0], sizeof(buf[0]), "%s.%s", dbfile, new_suffix); in rotate_index()
1832 BIO_snprintf(buf[4], sizeof(buf[4]), "%s-attr", dbfile); in rotate_index()
[all …]
H A Dhttp_server.c199 BIO_snprintf(name, sizeof(name), "*:%s", port); /* port may be "0" */ in http_server_init()
509 int ret = BIO_snprintf(buf, sizeof(buf), HTTP_1_0" 200 OK\r\n%s" in http_server_send_asn1_resp()
535 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()
/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)>
/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.c174 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", reason); in OSSL_CMP_print_errors_cb()
178 BIO_snprintf(msg, sizeof(msg), "%s:%s", rs, data); in OSSL_CMP_print_errors_cb()
180 BIO_snprintf(msg, sizeof(msg), "%s", rs); in OSSL_CMP_print_errors_cb()
H A Dcmp_http.c70 BIO_snprintf(server_port, sizeof(server_port), "%d", ctx->serverPort); in OSSL_CMP_MSG_http_perform()
/openssl/test/
H A Dbioprinttest.c135 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_zu()
163 BIO_snprintf(bio_buf, sizeof(bio_buf) - 1, data->format, data->value); in test_j()
198 BIO_snprintf(format, sizeof(format), "%%%s.%d%s", width, prec, in dofptest()
201 BIO_snprintf(format, sizeof(format), "%%%s%s", width, fspec); in dofptest()
202 BIO_snprintf(result, sizeof(result), format, val); in dofptest()
248 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.c45 BIO_snprintf(expected_greeting, sizeof(expected_greeting), in expected_greeting1()
/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()
/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()
/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.c534 BIO_snprintf(lsbuf, sizeof(lsbuf), "lib(%lu)", l); in ossl_err_string_int()
554 BIO_snprintf(rsbuf, sizeof(rsbuf), "reason(%lu)", 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()
/openssl/apps/
H A Drehash.c404 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.c283 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
337 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, www_path); in s_time_main()
364 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main()
/openssl/test/testutil/
H A Dtestutil_init.c36 BIO_snprintf(buffer, sizeof(buffer), "TRACE[%s]:%s: ", in internal_trace_cb()

Completed in 57 milliseconds

1234