/openssl/ssl/quic/ |
H A D | quic_trace.c | 64 BIO_puts(bio, "0x"); in put_conn_id() 175 BIO_puts(bio, " Token: "); in frame_new_token() 177 BIO_puts(bio, "\n"); in frame_new_token() 187 BIO_puts(bio, "Stream"); in frame_stream() 190 BIO_puts(bio, "\n"); in frame_stream() 338 BIO_puts(bio, "\n"); in frame_new_conn_id() 390 BIO_puts(bio, "\n"); in frame_conn_closed() 404 BIO_puts(bio, "Ping\n"); in trace_frame_data() 416 BIO_puts(bio, "Ack "); in trace_frame_data() 562 BIO *bio = arg; in ossl_quic_trace() local [all …]
|
/openssl/crypto/ts/ |
H A D | ts_rsp_print.c | 75 BIO_printf(bio, "Status: "); in TS_STATUS_INFO_print_bio() 85 BIO_puts(bio, "\t"); in TS_STATUS_INFO_print_bio() 87 BIO_puts(bio, "\n"); in TS_STATUS_INFO_print_bio() 97 BIO_printf(bio, "\n"); in TS_STATUS_INFO_print_bio() 138 BIO_write(bio, "\n", 1); in TS_TST_INFO_print_bio() 142 BIO_write(bio, "\n", 1); in TS_TST_INFO_print_bio() 149 BIO_write(bio, "\n", 1); in TS_TST_INFO_print_bio() 153 BIO_printf(bio, "Nonce: "); in TS_TST_INFO_print_bio() 158 BIO_write(bio, "\n", 1); in TS_TST_INFO_print_bio() 160 BIO_printf(bio, "TSA: "); in TS_TST_INFO_print_bio() [all …]
|
H A D | ts_lib.c | 29 result = BIO_write(bio, "0x", 2) > 0; in TS_ASN1_INTEGER_print_bio() 38 int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) in TS_OBJ_print_bio() argument 43 BIO_printf(bio, "%s\n", obj_txt); in TS_OBJ_print_bio() 54 BIO_printf(bio, "Extensions:\n"); in TS_ext_print_bio() 59 if (i2a_ASN1_OBJECT(bio, obj) < 0) in TS_ext_print_bio() 63 if (!X509V3_EXT_print(bio, ex, 0, 4)) { in TS_ext_print_bio() 64 BIO_printf(bio, "%4s", ""); in TS_ext_print_bio() 67 BIO_write(bio, "\n", 1); in TS_ext_print_bio() 76 return BIO_printf(bio, "Hash Algorithm: %s\n", in TS_X509_ALGOR_print_bio() 84 TS_X509_ALGOR_print_bio(bio, a->hash_algo); in TS_MSG_IMPRINT_print_bio() [all …]
|
H A D | ts_req_print.c | 18 int TS_REQ_print_bio(BIO *bio, TS_REQ *a) in TS_REQ_print_bio() argument 27 BIO_printf(bio, "Version: %d\n", v); in TS_REQ_print_bio() 29 TS_MSG_IMPRINT_print_bio(bio, a->msg_imprint); in TS_REQ_print_bio() 31 BIO_printf(bio, "Policy OID: "); in TS_REQ_print_bio() 34 BIO_printf(bio, "unspecified\n"); in TS_REQ_print_bio() 36 TS_OBJ_print_bio(bio, policy_id); in TS_REQ_print_bio() 38 BIO_printf(bio, "Nonce: "); in TS_REQ_print_bio() 40 BIO_printf(bio, "unspecified"); in TS_REQ_print_bio() 42 TS_ASN1_INTEGER_print_bio(bio, a->nonce); in TS_REQ_print_bio() 43 BIO_write(bio, "\n", 1); in TS_REQ_print_bio() [all …]
|
/openssl/test/ |
H A D | bio_memleak_test.c | 19 BIO *bio; in test_bio_memleak() local 39 BIO_free(bio); in test_bio_memleak() 46 BIO *bio = NULL; in test_bio_get_mem() local 59 BIO_free(bio); in test_bio_get_mem() 60 bio = NULL; in test_bio_get_mem() 66 BIO_free(bio); in test_bio_get_mem() 74 BIO *bio; in test_bio_new_mem_buf() local 102 BIO_free(bio); in test_bio_new_mem_buf() 143 BIO_free(bio); in test_bio_rdonly_mem_buf() 180 BIO_free(bio); in test_bio_rdwr_rdonly() [all …]
|
H A D | bio_core_test.c | 16 BIO *bio; member 22 return BIO_read_ex(bio->bio, data, data_len, bytes_read); in tst_bio_core_read_ex() 28 return BIO_write_ex(bio->bio, data, data_len, written); in tst_bio_core_write_ex() 33 return BIO_gets(bio->bio, buf, size); in tst_bio_core_gets() 38 return BIO_puts(bio->bio, str); in tst_bio_core_puts() 43 return BIO_ctrl(bio->bio, cmd, num, ptr); in tst_bio_core_ctrl() 48 return BIO_up_ref(bio->bio); in tst_bio_core_up_ref() 53 return BIO_free(bio->bio); in tst_bio_core_free() 76 corebio.bio = BIO_new(BIO_s_mem()); in test_bio_core() 77 if (!TEST_ptr(corebio.bio) in test_bio_core() [all …]
|
H A D | membio_test.c | 16 BIO *bio = BIO_new(BIO_s_dgram_mem()), *rbio = NULL; in test_dgram() local 24 if (!TEST_ptr(bio)) in test_dgram() 36 if (!TEST_int_le(BIO_set_mem_eof_return(bio, 0), 0)) in test_dgram() 84 if (!TEST_int_eq(BIO_read(bio, buf, /* Short buffer */ 2), 2) in test_dgram() 96 if (!TEST_int_eq(BIO_write(bio, NULL, 0), 0) in test_dgram() 97 || !TEST_int_lt(BIO_read(bio, buf, sizeof(buf)), 0) in test_dgram() 98 || !TEST_false(BIO_eof(bio)) in test_dgram() 99 || !TEST_true(BIO_should_retry(bio))) in test_dgram() 102 if (!TEST_int_eq(BIO_dgram_set_mtu(bio, 123456), 1) in test_dgram() 103 || !TEST_int_eq(BIO_dgram_get_mtu(bio), 123456)) in test_dgram() [all …]
|
H A D | bio_callback_test.c | 48 BIO *bio; in test_bio_callback_ex() local 58 bio = BIO_new(BIO_s_mem()); in test_bio_callback_ex() 59 if (bio == NULL) in test_bio_callback_ex() 158 i = BIO_puts(bio, test2); in test_bio_callback_ex() 177 i = BIO_free(bio); in test_bio_callback_ex() 192 BIO_free(bio); in test_bio_callback_ex() 220 BIO *bio; in test_bio_callback() local 231 if (bio == NULL) in test_bio_callback() 310 i = BIO_puts(bio, test2); in test_bio_callback() 328 i = BIO_free(bio); in test_bio_callback() [all …]
|
H A D | asynciotest.c | 62 static int async_new(BIO *bio) in async_new() argument 70 BIO_set_data(bio, ctrs); in async_new() 71 BIO_set_init(bio, 1); in async_new() 79 if (bio == NULL) in async_free() 81 ctrs = BIO_get_data(bio); in async_free() 83 BIO_set_data(bio, NULL); in async_free() 84 BIO_set_init(bio, 0); in async_free() 93 BIO *next = BIO_next(bio); in async_read() 100 ctrs = BIO_get_data(bio); in async_read() 129 BIO *next = BIO_next(bio); in async_write() [all …]
|
H A D | sslcorrupttest.c | 16 static void copy_flags(BIO *bio) in copy_flags() argument 19 BIO *next = BIO_next(bio); in copy_flags() 23 BIO_set_flags(bio, flags); in copy_flags() 29 BIO *next = BIO_next(bio); in tls_corrupt_read() 32 copy_flags(bio); in tls_corrupt_read() 40 BIO *next = BIO_next(bio); in tls_corrupt_write() 53 copy_flags(bio); in tls_corrupt_write() 61 BIO *next = BIO_next(bio); in tls_corrupt_ctrl() 89 static int tls_corrupt_new(BIO *bio) in tls_corrupt_new() argument 91 BIO_set_init(bio, 1); in tls_corrupt_new() [all …]
|
/openssl/ssl/ |
H A D | t1_trce.c | 53 BIO_indent(bio, indent, 80); in do_ssl_trace_list() 655 BIO_indent(bio, indent, 80); in ssl_print_hex() 659 BIO_puts(bio, "\n"); in ssl_print_hex() 693 BIO_indent(bio, indent, 80); in ssl_print_version() 714 BIO_indent(bio, indent, 80); in ssl_print_random() 715 BIO_puts(bio, "Random:\n"); in ssl_print_random() 750 BIO_indent(bio, indent, 80); in ssl_print_extension() 797 BIO_puts(bio, "\n"); in ssl_print_extension() 1715 BIO *bio = arg; in SSL_trace() local 1751 BIO_printf(bio, in SSL_trace() [all …]
|
/openssl/providers/common/ |
H A D | bio_prov.c | 110 return c_bio_gets(bio, buf, size); in ossl_prov_bio_gets() 117 return c_bio_puts(bio, str); in ossl_prov_bio_puts() 124 return c_bio_ctrl(bio, cmd, num, ptr); in ossl_prov_bio_ctrl() 131 return c_bio_up_ref(bio); in ossl_prov_bio_up_ref() 134 int ossl_prov_bio_free(OSSL_CORE_BIO *bio) in ossl_prov_bio_free() argument 138 return c_bio_free(bio); in ossl_prov_bio_free() 145 return c_bio_vprintf(bio, format, ap); in ossl_prov_bio_vprintf() 191 static int bio_core_new(BIO *bio) in bio_core_new() argument 193 BIO_set_init(bio, 1); in bio_core_new() 198 static int bio_core_free(BIO *bio) in bio_core_free() argument [all …]
|
/openssl/crypto/bio/ |
H A D | bss_bio.c | 86 bio->ptr = b; in bio_new() 94 if (bio == NULL) in bio_free() 96 b = bio->ptr; in bio_free() 117 if (!bio->init) in bio_read() 120 b = bio->ptr; in bio_read() 207 if (!bio->init) in bio_nread0() 210 b = bio->ptr; in bio_nread0() 253 b = bio->ptr; in bio_nread() 279 b = bio->ptr; in bio_write() 356 b = bio->ptr; in bio_nwrite0() [all …]
|
H A D | bio_cb.c | 46 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback_ex() 48 bio->num, len, in BIO_debug_callback_ex() 49 bio->method->name, bio->num); in BIO_debug_callback_ex() 52 bio->num, len, bio->method->name); in BIO_debug_callback_ex() 55 if (bio->method->type & BIO_TYPE_DESCRIPTOR) in BIO_debug_callback_ex() 57 bio->num, len, in BIO_debug_callback_ex() 58 bio->method->name, bio->num); in BIO_debug_callback_ex() 61 bio->num, len, bio->method->name); in BIO_debug_callback_ex() 68 bio->method->name); in BIO_debug_callback_ex() 72 bio->method->name); in BIO_debug_callback_ex() [all …]
|
H A D | bio_lib.c | 83 BIO *bio = OPENSSL_zalloc(sizeof(*bio)); in BIO_new_ex() local 85 if (bio == NULL) in BIO_new_ex() 95 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data)) in BIO_new_ex() 100 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_BIO, bio, &bio->ex_data); in BIO_new_ex() 106 return bio; in BIO_new_ex() 832 bio = bio->next_bio; in BIO_find_type() 855 b = bio; in BIO_free_all() 857 bio = bio->next_bio; in BIO_free_all() 869 for (bio = in; bio != NULL; bio = bio->next_bio) { in BIO_dup_chain() 929 if (bio) in BIO_number_read() [all …]
|
H A D | bss_dgram_pair.c | 292 bio->ptr = b; in dgram_pair_init() 303 b = bio->ptr; in dgram_mem_init() 312 bio->init = 1; in dgram_mem_init() 320 if (bio == NULL) in dgram_pair_free() 323 b = bio->ptr; in dgram_pair_free() 437 if (!bio->init) in dgram_pair_ctrl_eof() 497 if (!bio->init) in dgram_pair_ctrl_pending() 552 if (!bio->init) in dgram_pair_ctrl_get_local_addr_cap() 885 if (!bio->init) in dgram_pair_read_actual() 1049 if (!bio->init) { in dgram_pair_recvmmsg() [all …]
|
H A D | ossl_core_bio.c | 20 BIO *bio; member 48 res = BIO_free(cb->bio); in ossl_core_bio_free() 60 if (cb == NULL || !BIO_up_ref(bio)) { in ossl_core_bio_new_from_bio() 64 cb->bio = bio; in ossl_core_bio_new_from_bio() 72 if (bio == NULL) in core_bio_new_from_new_bio() 75 BIO_free(bio); in core_bio_new_from_new_bio() 78 cb->bio = bio; in core_bio_new_from_new_bio() 106 return BIO_gets(cb->bio, buf, size); in ossl_core_bio_gets() 111 return BIO_puts(cb->bio, buf); in ossl_core_bio_puts() 116 return BIO_ctrl(cb->bio, cmd, larg, parg); in ossl_core_bio_ctrl() [all …]
|
H A D | bss_core.c | 43 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_read_ex() 53 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_write_ex() 62 BIO_CORE_GLOBALS *bcgbl = get_globals(bio->libctx); in bio_core_ctrl() 69 static int bio_core_gets(BIO *bio, char *buf, int size) in bio_core_gets() argument 78 static int bio_core_puts(BIO *bio, const char *str) in bio_core_puts() argument 84 return bcgbl->c_bio_puts(BIO_get_data(bio), str); in bio_core_puts() 87 static int bio_core_new(BIO *bio) in bio_core_new() argument 89 BIO_set_init(bio, 1); in bio_core_new() 94 static int bio_core_free(BIO *bio) in bio_core_free() argument 101 BIO_set_init(bio, 0); in bio_core_free() [all …]
|
/openssl/test/testutil/ |
H A D | load.c | 21 BIO *bio = NULL; in load_cert_pem() local 29 BIO_free(bio); in load_cert_pem() 36 BIO *bio; in STACK_OF() local 44 BIO_free(bio); in STACK_OF() 50 x = PEM_read_bio_X509(bio, NULL, 0, NULL); in STACK_OF() 53 BIO_free(bio); in STACK_OF() 64 BIO_free(bio); in STACK_OF() 72 BIO *bio = NULL; in load_pkey_pem() local 88 BIO_free(bio); in load_pkey_pem() 95 BIO *bio = NULL; in load_csr_der() local [all …]
|
/openssl/test/helpers/ |
H A D | ssltestlib.c | 79 BIO_set_init(bio, 1); in tls_dump_new() 85 BIO_set_init(bio, 0); in tls_dump_free() 206 copy_flags(bio); in tls_dump_read() 221 copy_flags(bio); in tls_dump_write() 326 BIO_set_init(bio, 1); in mempacket_test_new() 327 BIO_set_data(bio, ctx); in mempacket_test_new() 338 BIO_set_init(bio, 0); in mempacket_test_free() 759 BIO_set_init(bio, 1); in always_retry_new() 766 BIO_set_init(bio, 0); in always_retry_free() 859 BIO_set_init(bio, 1); in maybe_retry_new() [all …]
|
/openssl/providers/common/include/prov/ |
H A D | bio.h | 19 int ossl_prov_bio_read_ex(OSSL_CORE_BIO *bio, void *data, size_t data_len, 21 int ossl_prov_bio_write_ex(OSSL_CORE_BIO *bio, const void *data, size_t data_len, 23 int ossl_prov_bio_gets(OSSL_CORE_BIO *bio, char *buf, int size); 24 int ossl_prov_bio_puts(OSSL_CORE_BIO *bio, const char *str); 25 int ossl_prov_bio_ctrl(OSSL_CORE_BIO *bio, int cmd, long num, void *ptr); 26 int ossl_prov_bio_up_ref(OSSL_CORE_BIO *bio); 27 int ossl_prov_bio_free(OSSL_CORE_BIO *bio); 28 int ossl_prov_bio_vprintf(OSSL_CORE_BIO *bio, const char *format, va_list ap); 29 int ossl_prov_bio_printf(OSSL_CORE_BIO *bio, const char *format, ...);
|
/openssl/crypto/x509/ |
H A D | t_x509.c | 381 if (BIO_printf(bio, " certificate\n") <= 0 in ossl_x509_print_ex_brief() 388 if (BIO_printf(bio, " ") <= 0 in ossl_x509_print_ex_brief() 392 if (!X509_print_ex(bio, cert, flags, in ossl_x509_print_ex_brief() 401 return X509_print_ex(bio, cert, flags, in ossl_x509_print_ex_brief() 418 if (!X509V3_extensions_print(bio, NULL, in print_certs() 431 int ret = print_certs(bio, certs); in print_store_certs() 447 if (bio == NULL) in X509_STORE_CTX_print_verify_cb() 466 BIO_printf(bio, "\n"); in X509_STORE_CTX_print_verify_cb() 484 BIO_printf(bio, "Failure for:\n"); in X509_STORE_CTX_print_verify_cb() 500 ERR_add_error_mem_bio("\n", bio); in X509_STORE_CTX_print_verify_cb() [all …]
|
/openssl/crypto/asn1/ |
H A D | asn_mime.c | 76 BIO *bio, *tbio; in i2d_ASN1_bio_stream() local 78 if (!bio) { in i2d_ASN1_bio_stream() 86 (void)BIO_flush(bio); in i2d_ASN1_bio_stream() 89 tbio = BIO_pop(bio); in i2d_ASN1_bio_stream() 90 BIO_free(bio); in i2d_ASN1_bio_stream() 91 bio = tbio; in i2d_ASN1_bio_stream() 92 } while (bio != out); in i2d_ASN1_bio_stream() 148 bio = BIO_push(b64, bio); in b64_read_asn1() 152 (void)BIO_flush(bio); in b64_read_asn1() 153 BIO_pop(bio); in b64_read_asn1() [all …]
|
/openssl/crypto/ |
H A D | params_from_text.c | 232 ok = BIO_printf(bio, "%s: ", p->key); in OSSL_PARAM_print_to_bio() 242 BIO_printf(bio, "\n"); in OSSL_PARAM_print_to_bio() 250 ok = BN_print(bio, bn); in OSSL_PARAM_print_to_bio() 252 ok = BIO_printf(bio, "error getting value\n"); in OSSL_PARAM_print_to_bio() 257 ok = BIO_printf(bio, "error getting value\n"); in OSSL_PARAM_print_to_bio() 263 ok = BN_print(bio, bn); in OSSL_PARAM_print_to_bio() 274 ok = BIO_dump(bio, p->data, p->data_size); in OSSL_PARAM_print_to_bio() 277 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio() 281 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio() 289 ok = BIO_printf(bio, "%f\n", d); in OSSL_PARAM_print_to_bio() [all …]
|
/openssl/util/ |
H A D | quicserver.c | 37 BIO_get_fd(bio, &sock); in wait_for_activity() 73 BIO *bio; in create_dgram_bio() local 119 if (bio == NULL) { in create_dgram_bio() 133 return bio; in create_dgram_bio() 147 BIO *bio = NULL; in main() local 195 if (bio == NULL || !BIO_up_ref(bio)) { in main() 201 tserver_args.net_rbio = bio; in main() 202 tserver_args.net_wbio = bio; in main() 220 bio = NULL; in main() 308 BIO_free(bio); in main() [all …]
|