Lines Matching refs:b
205 # define BIO_get_ktls_send(b) \ argument
206 (BIO_ctrl(b, BIO_CTRL_GET_KTLS_SEND, 0, NULL) > 0)
207 # define BIO_get_ktls_recv(b) \ argument
208 (BIO_ctrl(b, BIO_CTRL_GET_KTLS_RECV, 0, NULL) > 0)
210 # define BIO_get_ktls_send(b) (0)
211 # define BIO_get_ktls_recv(b) (0)
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);
251 # define BIO_get_flags(b) BIO_test_flags(b, ~(0x0)) argument
252 # define BIO_set_retry_special(b) \ argument
253 BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))
254 # define BIO_set_retry_read(b) \ argument
255 BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))
256 # define BIO_set_retry_write(b) \ argument
257 BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))
260 # define BIO_clear_retry_flags(b) \ argument
261 BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
262 # define BIO_get_retry_flags(b) \ argument
263 BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
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);
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);
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);
342 typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
345 typedef void (*BIO_dgram_sctp_notification_handler_fn) (BIO *b,
478 # define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) argument
479 # define BIO_set_tfo(b,n) BIO_ctrl(b,BIO_C_SET_TFO,(n),NULL) argument
489 # define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0, \ argument
491 # define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1, \ argument
493 # define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2, \ argument
495 # define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f) argument
496 # define BIO_get_conn_hostname(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)) argument
497 # define BIO_get_conn_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)) argument
498 # define BIO_get_conn_address(b) ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)) argument
499 # define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL) argument
500 # define BIO_get_conn_mode(b) BIO_ctrl(b,BIO_C_GET_CONNECT,4,NULL) argument
501 # define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL) argument
502 # define BIO_set_sock_type(b,t) BIO_ctrl(b,BIO_C_SET_SOCK_TYPE,(t),NULL) argument
503 # define BIO_get_sock_type(b) BIO_ctrl(b,BIO_C_GET_SOCK_TYPE,0,NULL) argument
504 # define BIO_get0_dgram_bio(b, p) BIO_ctrl(b,BIO_C_GET_DGRAM_BIO,0,(void *)(BIO **)(p)) argument
507 # define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \ argument
509 # define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1, \ argument
511 # define BIO_get_accept_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)) argument
512 # define BIO_get_accept_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1)) argument
513 # define BIO_get_peer_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2)) argument
514 # define BIO_get_peer_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3)) argument
515 /* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */
516 # define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)"a":NULL) argument
517 # define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,3, \ argument
519 # define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f) argument
520 # define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL) argument
521 # define BIO_set_tfo_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,5,(n)?(void *)"a":NULL) argument
527 # define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL) argument
528 # define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL) argument
531 # define BIO_do_connect(b) BIO_do_handshake(b) argument
532 # define BIO_do_accept(b) BIO_do_handshake(b) argument
534 # define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL) argument
537 # define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd) argument
538 # define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)(c)) argument
541 # define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)(fp)) argument
542 # define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)(fpp)) argument
545 # define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL) argument
546 # define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL) argument
557 int BIO_read_filename(BIO *b, const char *name);
559 # define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \ argument
562 # define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \ argument
564 # define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \ argument
566 # define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \ argument
575 # define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)(ssl)) argument
576 # define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)(sslp)) argument
577 # define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL) argument
578 # define BIO_set_ssl_renegotiate_bytes(b,num) \ argument
579 BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)
580 # define BIO_get_num_renegotiates(b) \ argument
581 BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)
582 # define BIO_set_ssl_renegotiate_timeout(b,seconds) \ argument
583 BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)
586 /* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char *)(md)) */
588 # define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)(pp)) argument
589 # define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)(bm)) argument
590 # define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0, \ argument
592 # define BIO_set_mem_eof_return(b,v) \ argument
593 BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
596 # define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL) argument
597 # define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL) argument
598 # define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0) argument
599 # define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1) argument
600 # define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf) argument
603 # define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret)) argument
605 # define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL) argument
606 # define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL) argument
607 # define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL) argument
608 # define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL) argument
609 # define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL) argument
610 # define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL) argument
612 size_t BIO_ctrl_pending(BIO *b);
613 size_t BIO_ctrl_wpending(BIO *b);
614 # define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL) argument
615 # define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \ argument
617 # define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb) argument
620 # define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL) argument
621 # define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s)) argument
624 # define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL) argument
625 # define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL) argument
627 # define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) argument
628 # define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL) argument
630 # define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL) argument
631 # define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL) argument
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);
637 # define BIO_ctrl_dgram_connect(b,peer) \ argument
638 (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)(peer))
639 # define BIO_ctrl_set_connected(b,peer) \ argument
640 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char *)(peer))
641 # define BIO_dgram_recv_timedout(b) \ argument
642 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)
643 # define BIO_dgram_send_timedout(b) \ argument
644 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)
645 # define BIO_dgram_get_peer(b,peer) \ argument
646 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)(peer))
647 # define BIO_dgram_set_peer(b,peer) \ argument
648 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)(peer))
649 # define BIO_dgram_detect_peer_addr(b,peer) \ argument
650 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_DETECT_PEER_ADDR, 0, (char *)(peer))
651 # define BIO_dgram_get_mtu_overhead(b) \ argument
652 (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)
653 # define BIO_dgram_get_local_addr_cap(b) \ argument
654 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_LOCAL_ADDR_CAP, 0, NULL)
655 # define BIO_dgram_get_local_addr_enable(b, penable) \ argument
656 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_LOCAL_ADDR_ENABLE, 0, (char *)(penable))
657 # define BIO_dgram_set_local_addr_enable(b, enable) \ argument
658 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_SET_LOCAL_ADDR_ENABLE, (enable), NULL)
659 # define BIO_dgram_get_effective_caps(b) \ argument
660 (uint32_t)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_EFFECTIVE_CAPS, 0, NULL)
661 # define BIO_dgram_get_caps(b) \ argument
662 (uint32_t)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_CAPS, 0, NULL)
663 # define BIO_dgram_set_caps(b, caps) \ argument
664 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_SET_CAPS, (long)(caps), NULL)
665 # define BIO_dgram_get_no_trunc(b) \ argument
666 (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_NO_TRUNC, 0, NULL)
667 # define BIO_dgram_set_no_trunc(b, enable) \ argument
668 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_SET_NO_TRUNC, (enable), NULL)
669 # define BIO_dgram_get_mtu(b) \ argument
670 (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU, 0, NULL)
671 # define BIO_dgram_set_mtu(b, mtu) \ argument
672 (int)BIO_ctrl((b), BIO_CTRL_DGRAM_SET_MTU, (mtu), NULL)
675 # define BIO_set_prefix(b,p) BIO_ctrl((b), BIO_CTRL_SET_PREFIX, 0, (void *)(p)) argument
676 # define BIO_set_indent(b,i) BIO_ctrl((b), BIO_CTRL_SET_INDENT, (i), NULL) argument
677 # define BIO_get_indent(b) BIO_ctrl((b), BIO_CTRL_GET_INDENT, 0, NULL) argument
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,
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,
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);
728 int BIO_indent(BIO *b, int indent, int max);
730 long BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);
733 BIO *BIO_push(BIO *b, BIO *append);
734 BIO *BIO_pop(BIO *b);
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);
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);
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);
907 void BIO_copy_next_retry(BIO *b);