Home
last modified time | relevance | path

Searched refs:bio (Results 51 – 75 of 196) sorted by relevance

12345678

/openssl/test/helpers/
H A Dssltestlib.h52 int mempacket_swap_epoch(BIO *bio);
53 int mempacket_swap_recent(BIO *bio);
54 int mempacket_test_inject(BIO *bio, const char *in, int inl, int pktnum,
/openssl/include/internal/
H A Dbio.h34 void bio_free_ex_data(BIO *bio);
39 int bwrite_conv(BIO *bio, const char *data, size_t datal, size_t *written);
40 int bread_conv(BIO *bio, char *data, size_t datal, size_t *read);
77 OSSL_CORE_BIO *ossl_core_bio_new_from_bio(BIO *bio);
/openssl/doc/man3/
H A DBIO_printf.pod10 #include <openssl/bio.h>
12 int BIO_printf(BIO *bio, const char *format, ...);
13 int BIO_vprintf(BIO *bio, const char *format, va_list args);
21 the output is sent to the specified BIO, I<bio>, rather than standard
25 the output is sent to the specified BIO, I<bio>, rather than standard
H A DX509_load_http.pod15 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
16 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
30 If B<bio> is given and B<rbio> is NULL then this BIO is used instead of an
32 If both B<bio> and B<rbio> are given (which may be memory BIOs, for instance)
34 B<bio> is used for writing the request, and B<rbio> for reading the response.
H A DBIO_s_null.pod9 #include <openssl/bio.h>
23 A null bio can be placed on the end of a chain to discard any data
27 data by writing through a digest bio but not send the digested data anywhere.
H A DOSSL_STORE_attach.pod11 OSSL_STORE_CTX *OSSL_STORE_attach(BIO *bio, const char *scheme,
21 I<bio> instead of a I<uri>, along with a I<scheme> to determine what loader
/openssl/crypto/encode_decode/
H A Ddecoder_lib.c30 BIO *bio; member
77 data.bio = in; in OSSL_DECODER_from_bio()
689 BIO *bio = data->bio; in decoder_process() local
725 bio = data->bio; in decoder_process()
772 if (new_data.bio == NULL) in decoder_process()
774 bio = new_data.bio; in decoder_process()
821 if ((loc = BIO_tell(bio)) < 0) { in decoder_process()
826 if ((cbio = ossl_core_bio_new_from_bio(bio)) == NULL) { in decoder_process()
949 (void)BIO_seek(bio, loc); in decoder_process()
950 if (BIO_tell(bio) != loc) in decoder_process()
[all …]
/openssl/test/
H A Derrtest.c56 BIO *bio = NULL; in test_print_error_format() local
93 if (!TEST_ptr(bio = BIO_new(BIO_s_mem()))) in test_print_error_format()
96 ERR_print_errors(bio); in test_print_error_format()
98 if (!TEST_int_gt(len = BIO_get_mem_data(bio, &out), 0)) in test_print_error_format()
111 BIO_free(bio); in test_print_error_format()
H A Dossl_store_test.c162 BIO *bio = NULL; in test_store_attach_unregistered_scheme() local
168 && TEST_ptr(bio = BIO_new_file(input, "r")) in test_store_attach_unregistered_scheme()
169 && TEST_ptr(store_ctx = OSSL_STORE_attach(bio, "file", libctx, NULL, in test_store_attach_unregistered_scheme()
175 BIO_free(bio); in test_store_attach_unregistered_scheme()
H A Dverify_extra_test.c144 BIO *bio = NULL; in test_req_distinguishing_id() local
149 bio = BIO_new_file(req_f, "r"); in test_req_distinguishing_id()
150 if (bio == NULL) in test_req_distinguishing_id()
153 x = PEM_read_bio_X509_REQ(bio, NULL, 0, NULL); in test_req_distinguishing_id()
177 BIO_free(bio); in test_req_distinguishing_id()
H A Ddtlstest.c460 BIO *bio; in test_swap_epoch() local
497 bio = SSL_get_wbio(cssl); in test_swap_epoch()
498 if (!TEST_ptr(bio) in test_swap_epoch()
499 || !TEST_true(mempacket_swap_epoch(bio))) in test_swap_epoch()
534 BIO *bio; in test_swap_app_data() local
579 bio = SSL_get_wbio(sssl); in test_swap_app_data()
580 if (!TEST_ptr(bio) in test_swap_app_data()
581 || !TEST_true(mempacket_swap_recent(bio))) in test_swap_app_data()
H A Dkeymgmt_internal_test.c297 BIO *bio = NULL; in test_evp_pkey_export_to_provider() local
308 if ((bio = BIO_new_file(cert_filename, "r")) == NULL) { in test_evp_pkey_export_to_provider()
314 if ((cert = PEM_read_bio_X509(bio, NULL, NULL, NULL)) == NULL) { in test_evp_pkey_export_to_provider()
342 BIO_free(bio); in test_evp_pkey_export_to_provider()
/openssl/apps/include/
H A Ds_apps.h44 long bio_dump_callback(BIO *bio, int cmd, const char *argp, size_t len,
74 void print_verify_detail(SSL *s, BIO *bio);
86 void print_ca_names(BIO *bio, SSL *s);
87 void ssl_print_secure_renegotiation_notes(BIO *bio, SSL *s);
/openssl/crypto/
H A Dtrace.c170 BIO *bio; member
249 curr_channel = trace_channels[category].bio; in set_trace_data()
280 trace_channels[category].bio = NULL; in set_trace_data()
286 trace_channels[category].bio = *channel; in set_trace_data()
442 if (trace_channels[category].bio != NULL) in ossl_trace_get_category()
454 ret = trace_channels[category].bio != NULL; in OSSL_trace_enabled()
469 channel = trace_channels[category].bio; in OSSL_trace_begin()
/openssl/include/openssl/
H A Dbio.h.in619 void *BIO_get_ex_data(const BIO *bio, int idx);
620 uint64_t BIO_number_read(BIO *bio);
621 uint64_t BIO_number_written(BIO *bio);
656 int BIO_get_line(BIO *bio, char *buf, int size);
674 BIO *BIO_get_retry_BIO(BIO *bio, int *reason);
675 int BIO_get_retry_reason(BIO *bio);
679 int BIO_nread0(BIO *bio, char **buf);
680 int BIO_nread(BIO *bio, char **buf, int num);
681 int BIO_nwrite0(BIO *bio, char **buf);
682 int BIO_nwrite(BIO *bio, char **buf, int num);
[all …]
H A Dpkcs7.h.in26 # include <openssl/bio.h>
280 BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
281 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
284 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);
285 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio);
350 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags);
351 PKCS7 *SMIME_read_PKCS7_ex(BIO *bio, BIO **bcont, PKCS7 **p7);
352 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont);
/openssl/crypto/http/
H A Dhttp_client.c949 int use_ssl, BIO *bio, BIO *rbio, in OSSL_HTTP_open() argument
960 if (rbio != NULL && (bio == NULL || bio_update_fn != NULL)) { in OSSL_HTTP_open()
965 if (bio != NULL) { in OSSL_HTTP_open()
966 cbio = bio; in OSSL_HTTP_open()
1002 if (bio == NULL) /* cbio was not provided by caller */ in OSSL_HTTP_open()
1015 if (bio == NULL) /* cbio was not provided by caller */ in OSSL_HTTP_open()
1144 BIO *bio, BIO *rbio, in OSSL_HTTP_get() argument
1191 (void)BIO_reset(bio); in OSSL_HTTP_get()
1231 BIO *bio, BIO *rbio, in OSSL_HTTP_transfer() argument
1325 if (bio == NULL || server == NULL in OSSL_HTTP_proxy_connect()
[all …]
/openssl/crypto/bio/
H A Dbss_dgram.c116 BIO *bio; member
801 BIO *bio; in BIO_new_dgram_sctp() local
817 if (bio == NULL) in BIO_new_dgram_sctp()
827 BIO_vfree(bio); in BIO_new_dgram_sctp()
837 BIO_vfree(bio); in BIO_new_dgram_sctp()
852 BIO_vfree(bio); in BIO_new_dgram_sctp()
859 BIO_vfree(bio); in BIO_new_dgram_sctp()
875 BIO_vfree(bio); in BIO_new_dgram_sctp()
892 BIO_vfree(bio); in BIO_new_dgram_sctp()
899 BIO_vfree(bio); in BIO_new_dgram_sctp()
[all …]
/openssl/ssl/
H A Dbio_ssl.c227 BIO *dbio, *bio; in ssl_ctrl() local
295 bio = SSL_get_rbio(ssl); in ssl_ctrl()
296 if (bio != NULL) { in ssl_ctrl()
298 BIO_push(bio, next); in ssl_ctrl()
299 BIO_set_next(b, bio); in ssl_ctrl()
300 BIO_up_ref(bio); in ssl_ctrl()
/openssl/ssl/record/methods/
H A Dtls_common.c263 BIO *bio = rl->prev != NULL ? rl->prev : rl->bio; in tls_default_read_n() local
272 if (bio != NULL) { in tls_default_read_n()
273 ret = BIO_read(bio, pkt + len + left, max - left); in tls_default_read_n()
277 } else if (BIO_should_retry(bio)) { in tls_default_read_n()
288 } else if (BIO_eof(bio)) { in tls_default_read_n()
1222 BIO_free(rl->bio); in tls_int_free()
1320 int tls_set1_bio(OSSL_RECORD_LAYER *rl, BIO *bio) in tls_set1_bio() argument
1322 if (bio != NULL && !BIO_up_ref(bio)) in tls_set1_bio()
1324 BIO_free(rl->bio); in tls_set1_bio()
1325 rl->bio = bio; in tls_set1_bio()
/openssl/crypto/cmp/
H A Dcmp_msg.c1103 BIO *bio = NULL; in OSSL_CMP_MSG_read() local
1116 if ((bio = BIO_new_file(file, "rb")) == NULL in OSSL_CMP_MSG_read()
1117 || d2i_OSSL_CMP_MSG_bio(bio, &msg) == NULL) { in OSSL_CMP_MSG_read()
1121 BIO_free(bio); in OSSL_CMP_MSG_read()
1127 BIO *bio; in OSSL_CMP_MSG_write() local
1135 bio = BIO_new_file(file, "wb"); in OSSL_CMP_MSG_write()
1136 if (bio == NULL) in OSSL_CMP_MSG_write()
1138 res = i2d_OSSL_CMP_MSG_bio(bio, msg); in OSSL_CMP_MSG_write()
1139 BIO_free(bio); in OSSL_CMP_MSG_write()
1165 OSSL_CMP_MSG *d2i_OSSL_CMP_MSG_bio(BIO *bio, OSSL_CMP_MSG **msg) in d2i_OSSL_CMP_MSG_bio() argument
[all …]
/openssl/ssl/record/
H A Drec_layer_d1.c532 BIO *bio; in dtls1_read_bytes() local
535 bio = SSL_get_rbio(s); in dtls1_read_bytes()
536 BIO_clear_retry_flags(bio); in dtls1_read_bytes()
537 BIO_set_retry_read(bio); in dtls1_read_bytes()
568 BIO *bio; in dtls1_read_bytes() local
576 bio = SSL_get_rbio(s); in dtls1_read_bytes()
577 BIO_clear_retry_flags(bio); in dtls1_read_bytes()
578 BIO_set_retry_read(bio); in dtls1_read_bytes()
/openssl/apps/
H A Dx509.c38 static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt);
39 static int print_x509v3_exts(BIO *bio, X509 *x, const char *ext_names);
1176 static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt) in purpose_print() argument
1184 BIO_printf(bio, "%s%s : ", pname, i ? " CA" : ""); in purpose_print()
1186 BIO_printf(bio, "Yes\n"); in purpose_print()
1188 BIO_printf(bio, "No\n"); in purpose_print()
1190 BIO_printf(bio, "Yes (WARNING code=%d)\n", idret); in purpose_print()
1222 static int print_x509v3_exts(BIO *bio, X509 *x, const char *ext_names) in print_x509v3_exts() argument
1243 BIO_printf(bio, "Invalid extension names: %s\n", ext_names); in print_x509v3_exts()
1272 BIO_printf(bio, "No extensions matched with %s\n", ext_names); in print_x509v3_exts()
[all …]
/openssl/crypto/asn1/
H A Dasn1_parse.c30 BIO *bio = NULL; in asn1_print_info() local
47 if ((bio = BIO_new(BIO_f_prefix())) == NULL in asn1_print_info()
48 || (bp = BIO_push(bio, bp)) == NULL) in asn1_print_info()
79 BIO_free(bio); in asn1_print_info()
/openssl/apps/lib/
H A Dapps.c922 BIO *bio; in load_key_certs_crls() local
931 if (bio != NULL) { in load_key_certs_crls()
935 BIO_free(bio); in load_key_certs_crls()
2459 if (bio != NULL) { in http_tls_shutdown()
2466 BIO_ssl_shutdown(bio); in http_tls_shutdown()
2470 bio = cbio; in http_tls_shutdown()
2472 return bio; in http_tls_shutdown()
2482 return bio; in app_http_tls_cb()
2506 bio = BIO_push(sbio, bio); in app_http_tls_cb()
2508 bio = http_tls_shutdown(bio); in app_http_tls_cb()
[all …]

Completed in 241 milliseconds

12345678