Lines Matching refs:BIO
60 # define BIO_TYPE_NBIO_TEST (16|BIO_TYPE_FILTER)/* server proxy BIO */
62 # define BIO_TYPE_BIO (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */
100 # define BIO_CTRL_DUP 12/* man - extra stuff for 'duped' BIO */
108 /* dgram BIO stuff */
109 # define BIO_CTRL_DGRAM_CONNECT 31/* BIO dgram special */
163 * internal BIO:
190 * internal BIO:
241 /* the BIO FLAGS values 0x1000 to 0x8000 are reserved for internal KTLS flags */
247 void BIO_set_flags(BIO *b, int flags);
248 int BIO_test_flags(const BIO *b, int flags);
249 void BIO_clear_flags(BIO *b, int flags);
274 * condition. After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int
275 * *reason); will walk the BIO stack and return the 'reason' for the special
276 * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return
283 /* Returned from the connect BIO when a connect would have blocked */
285 /* Returned from the accept BIO when an accept would have blocked */
288 /* These are passed by the BIO callback */
308 typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
310 OSSL_DEPRECATEDIN_3_0 BIO_callback_fn BIO_get_callback(const BIO *b);
311 OSSL_DEPRECATEDIN_3_0 void BIO_set_callback(BIO *b, BIO_callback_fn callback);
312 OSSL_DEPRECATEDIN_3_0 long BIO_debug_callback(BIO *bio, int cmd,
317 typedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,
320 BIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);
321 void BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);
322 long BIO_debug_callback_ex(BIO *bio, int oper, const char *argp, size_t len,
325 char *BIO_get_callback_arg(const BIO *b);
326 void BIO_set_callback_arg(BIO *b, char *arg);
330 const char *BIO_method_name(const BIO *b);
331 int BIO_method_type(const BIO *b);
333 typedef int BIO_info_cb(BIO *, int, int); typedef
337 generate_stack_macros("BIO");
341 /* Prefix and suffix callback in ASN1 BIO */
342 typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
345 typedef void (*BIO_dgram_sctp_notification_handler_fn) (BIO *b,
504 # define BIO_get0_dgram_bio(b, p) BIO_ctrl(b,BIO_C_GET_DGRAM_BIO,0,(void *)(BIO **)(p))
557 int BIO_read_filename(BIO *b, const char *name);
571 * structure. This is because the ssl read BIO is now pointed to by the
572 * next_bio field in the bio. So when you free the BIO, make sure you are
573 * doing a BIO_free_all() to catch the underlying BIO.
612 size_t BIO_ctrl_pending(BIO *b);
613 size_t BIO_ctrl_wpending(BIO *b);
632 size_t BIO_ctrl_get_write_guarantee(BIO *b);
633 size_t BIO_ctrl_get_read_request(BIO *b);
634 int BIO_ctrl_reset_read_request(BIO *b);
681 int BIO_set_ex_data(BIO *bio, int idx, void *data);
682 void *BIO_get_ex_data(const BIO *bio, int idx);
683 uint64_t BIO_number_read(BIO *bio);
684 uint64_t BIO_number_written(BIO *bio);
687 int BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix,
689 int BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix,
691 int BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix,
693 int BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
697 BIO *BIO_new_file(const char *filename, const char *mode);
698 BIO *BIO_new_from_core_bio(OSSL_LIB_CTX *libctx, OSSL_CORE_BIO *corebio);
700 BIO *BIO_new_fp(FILE *stream, int close_flag);
702 BIO *BIO_new_ex(OSSL_LIB_CTX *libctx, const BIO_METHOD *method);
703 BIO *BIO_new(const BIO_METHOD *type);
704 int BIO_free(BIO *a);
705 void BIO_set_data(BIO *a, void *ptr);
706 void *BIO_get_data(BIO *a);
707 void BIO_set_init(BIO *a, int init);
708 int BIO_get_init(BIO *a);
709 void BIO_set_shutdown(BIO *a, int shut);
710 int BIO_get_shutdown(BIO *a);
711 void BIO_vfree(BIO *a);
712 int BIO_up_ref(BIO *a);
713 int BIO_read(BIO *b, void *data, int dlen);
714 int BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);
715 __owur int BIO_recvmmsg(BIO *b, BIO_MSG *msg,
718 int BIO_gets(BIO *bp, char *buf, int size);
719 int BIO_get_line(BIO *bio, char *buf, int size);
720 int BIO_write(BIO *b, const void *data, int dlen);
721 int BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written);
722 __owur int BIO_sendmmsg(BIO *b, BIO_MSG *msg,
725 __owur int BIO_get_rpoll_descriptor(BIO *b, BIO_POLL_DESCRIPTOR *desc);
726 __owur int BIO_get_wpoll_descriptor(BIO *b, BIO_POLL_DESCRIPTOR *desc);
727 int BIO_puts(BIO *bp, const char *buf);
728 int BIO_indent(BIO *b, int indent, int max);
729 long BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);
730 long BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
731 void *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);
732 long BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);
733 BIO *BIO_push(BIO *b, BIO *append);
734 BIO *BIO_pop(BIO *b);
735 void BIO_free_all(BIO *a);
736 BIO *BIO_find_type(BIO *b, int bio_type);
737 BIO *BIO_next(BIO *b);
738 void BIO_set_next(BIO *b, BIO *next);
739 BIO *BIO_get_retry_BIO(BIO *bio, int *reason);
740 int BIO_get_retry_reason(BIO *bio);
741 void BIO_set_retry_reason(BIO *bio, int reason);
742 BIO *BIO_dup_chain(BIO *in);
744 int BIO_nread0(BIO *bio, char **buf);
745 int BIO_nread(BIO *bio, char **buf, int num);
746 int BIO_nwrite0(BIO *bio, char **buf);
747 int BIO_nwrite(BIO *bio, char **buf, int num);
754 BIO *BIO_new_mem_buf(const void *buf, int len);
775 BIO *BIO_new_dgram(int fd, int close_flag);
778 BIO *BIO_new_dgram_sctp(int fd, int close_flag);
779 int BIO_dgram_is_sctp(BIO *bio);
780 int BIO_dgram_sctp_notification_cb(BIO *b,
783 int BIO_dgram_sctp_wait_for_dry(BIO *b);
784 int BIO_dgram_sctp_msg_waiting(BIO *b);
794 int BIO_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds);
795 int BIO_do_connect_retry(BIO *bio, int timeout, int nap_milliseconds);
803 int BIO_dump(BIO *b, const void *bytes, int len);
804 int BIO_dump_indent(BIO *b, const void *bytes, int len, int indent);
809 int BIO_hex_string(BIO *out, int indent, int width, const void *data,
887 BIO *BIO_new_socket(int sock, int close_flag);
888 BIO *BIO_new_connect(const char *host_port);
889 BIO *BIO_new_accept(const char *host_port);
892 BIO *BIO_new_fd(int fd, int close_flag);
894 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
895 BIO **bio2, size_t writebuf2);
897 int BIO_new_bio_dgram_pair(BIO **bio1, size_t writebuf1,
898 BIO **bio2, size_t writebuf2);
902 * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.
907 void BIO_copy_next_retry(BIO *b);
931 int BIO_printf(BIO *bio, const char *format, ...)
933 int BIO_vprintf(BIO *bio, const char *format, va_list args)
946 int (*write) (BIO *, const char *, int));
948 int (*bwrite) (BIO *, const char *, size_t, size_t *));
950 int (*f) (BIO *, BIO_MSG *, size_t, size_t,
953 int (*read) (BIO *, char *, int));
955 int (*bread) (BIO *, char *, size_t, size_t *));
957 int (*f) (BIO *, BIO_MSG *, size_t, size_t,
960 int (*puts) (BIO *, const char *));
962 int (*ossl_gets) (BIO *, char *, int));
964 long (*ctrl) (BIO *, int, long, void *));
965 int BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *));
966 int BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *));
968 long (*callback_ctrl) (BIO *, int,
971 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *,
973 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *,
975 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_sendmmsg(const BIO_METHOD *biom))(BIO *, BIO_MSG *,
978 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int);
979 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *,
981 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_recvmmsg(const BIO_METHOD *biom))(BIO *, BIO_MSG *,
984 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *);
985 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int);
986 OSSL_DEPRECATEDIN_3_5 long (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int,
988 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *);
989 OSSL_DEPRECATEDIN_3_5 int (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *);
990 OSSL_DEPRECATEDIN_3_5 long (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom)) (BIO *, int,