64 #ifndef OPENSSL_NO_FP_API
71 #ifndef OPENSSL_NO_SCTP
72 # ifndef OPENSSL_SYS_VMS
75 # include <inttypes.h>
84 #define BIO_TYPE_NONE 0
85 #define BIO_TYPE_MEM (1|0x0400)
86 #define BIO_TYPE_FILE (2|0x0400)
88 #define BIO_TYPE_FD (4|0x0400|0x0100)
89 #define BIO_TYPE_SOCKET (5|0x0400|0x0100)
90 #define BIO_TYPE_NULL (6|0x0400)
91 #define BIO_TYPE_SSL (7|0x0200)
92 #define BIO_TYPE_MD (8|0x0200)
93 #define BIO_TYPE_BUFFER (9|0x0200)
94 #define BIO_TYPE_CIPHER (10|0x0200)
95 #define BIO_TYPE_BASE64 (11|0x0200)
96 #define BIO_TYPE_CONNECT (12|0x0400|0x0100)
97 #define BIO_TYPE_ACCEPT (13|0x0400|0x0100)
98 #define BIO_TYPE_PROXY_CLIENT (14|0x0200)
99 #define BIO_TYPE_PROXY_SERVER (15|0x0200)
100 #define BIO_TYPE_NBIO_TEST (16|0x0200)
101 #define BIO_TYPE_NULL_FILTER (17|0x0200)
102 #define BIO_TYPE_BER (18|0x0200)
103 #define BIO_TYPE_BIO (19|0x0400)
104 #define BIO_TYPE_LINEBUFFER (20|0x0200)
105 #define BIO_TYPE_DGRAM (21|0x0400|0x0100)
106 #ifndef OPENSSL_NO_SCTP
107 #define BIO_TYPE_DGRAM_SCTP (24|0x0400|0x0100)
109 #define BIO_TYPE_ASN1 (22|0x0200)
110 #define BIO_TYPE_COMP (23|0x0200)
112 #define BIO_TYPE_DESCRIPTOR 0x0100
113 #define BIO_TYPE_FILTER 0x0200
114 #define BIO_TYPE_SOURCE_SINK 0x0400
118 #define BIO_NOCLOSE 0x00
119 #define BIO_CLOSE 0x01
123 #define BIO_CTRL_RESET 1
124 #define BIO_CTRL_EOF 2
125 #define BIO_CTRL_INFO 3
126 #define BIO_CTRL_SET 4
127 #define BIO_CTRL_GET 5
128 #define BIO_CTRL_PUSH 6
129 #define BIO_CTRL_POP 7
130 #define BIO_CTRL_GET_CLOSE 8
131 #define BIO_CTRL_SET_CLOSE 9
132 #define BIO_CTRL_PENDING 10
133 #define BIO_CTRL_FLUSH 11
134 #define BIO_CTRL_DUP 12
135 #define BIO_CTRL_WPENDING 13
137 #define BIO_CTRL_SET_CALLBACK 14
138 #define BIO_CTRL_GET_CALLBACK 15
140 #define BIO_CTRL_SET_FILENAME 30
143 #define BIO_CTRL_DGRAM_CONNECT 31
144 #define BIO_CTRL_DGRAM_SET_CONNECTED 32
147 #define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33
148 #define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34
149 #define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35
150 #define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36
152 #define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37
153 #define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38
156 #define BIO_CTRL_DGRAM_MTU_DISCOVER 39
159 #define BIO_CTRL_DGRAM_QUERY_MTU 40
160 #define BIO_CTRL_DGRAM_GET_FALLBACK_MTU 47
161 #define BIO_CTRL_DGRAM_GET_MTU 41
162 #define BIO_CTRL_DGRAM_SET_MTU 42
167 #define BIO_CTRL_DGRAM_MTU_EXCEEDED 43
172 #define BIO_CTRL_DGRAM_GET_PEER 46
173 #define BIO_CTRL_DGRAM_SET_PEER 44
175 #define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT 45
178 #ifndef OPENSSL_NO_SCTP
180 #define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE 50
181 #define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY 51
182 #define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY 52
183 #define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD 53
184 #define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO 60
185 #define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO 61
186 #define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO 62
187 #define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO 63
188 #define BIO_CTRL_DGRAM_SCTP_GET_PRINFO 64
189 #define BIO_CTRL_DGRAM_SCTP_SET_PRINFO 65
190 #define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN 70
194 #define BIO_FP_READ 0x02
195 #define BIO_FP_WRITE 0x04
196 #define BIO_FP_APPEND 0x08
197 #define BIO_FP_TEXT 0x10
199 #define BIO_FLAGS_READ 0x01
200 #define BIO_FLAGS_WRITE 0x02
201 #define BIO_FLAGS_IO_SPECIAL 0x04
202 #define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)
203 #define BIO_FLAGS_SHOULD_RETRY 0x08
204 #ifndef BIO_FLAGS_UPLINK
207 #define BIO_FLAGS_UPLINK 0
211 #define BIO_GHBN_CTRL_HITS 1
212 #define BIO_GHBN_CTRL_MISSES 2
213 #define BIO_GHBN_CTRL_CACHE_SIZE 3
214 #define BIO_GHBN_CTRL_GET_ENTRY 4
215 #define BIO_GHBN_CTRL_FLUSH 5
224 #define BIO_FLAGS_BASE64_NO_NL 0x100
229 #define BIO_FLAGS_MEM_RDONLY 0x200
237 #define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))
238 #define BIO_set_retry_special(b) \
239 BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))
240 #define BIO_set_retry_read(b) \
241 BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))
242 #define BIO_set_retry_write(b) \
243 BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))
246 #define BIO_clear_retry_flags(b) \
247 BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
248 #define BIO_get_retry_flags(b) \
249 BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
252 #define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
253 #define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
254 #define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
255 #define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS)
256 #define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
264 #define BIO_RR_SSL_X509_LOOKUP 0x01
266 #define BIO_RR_CONNECT 0x02
268 #define BIO_RR_ACCEPT 0x03
271 #define BIO_CB_FREE 0x01
272 #define BIO_CB_READ 0x02
273 #define BIO_CB_WRITE 0x03
274 #define BIO_CB_PUTS 0x04
275 #define BIO_CB_GETS 0x05
276 #define BIO_CB_CTRL 0x06
280 #define BIO_CB_RETURN 0x80
281 #define BIO_CB_return(a) ((a)|BIO_CB_RETURN))
282 #define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN))
283 #define BIO_cb_post(a) ((a)&BIO_CB_RETURN)
287 long (*
callback)(
struct bio_st *,
int,
const char *,
int,
long,
long));
304 long (*
ctrl)(
BIO *, int, long,
void *);
314 long (*
callback)(
struct bio_st *,int,
const char *,int, long,long);
359 typedef int asn1_ps_func(
BIO *b,
unsigned char **pbuf,
int *plen,
void *parg);
361 #ifndef OPENSSL_NO_SCTP
390 #define BIO_CONN_S_BEFORE 1
391 #define BIO_CONN_S_GET_IP 2
392 #define BIO_CONN_S_GET_PORT 3
393 #define BIO_CONN_S_CREATE_SOCKET 4
394 #define BIO_CONN_S_CONNECT 5
395 #define BIO_CONN_S_OK 6
396 #define BIO_CONN_S_BLOCKED_CONNECT 7
397 #define BIO_CONN_S_NBIO 8
400 #define BIO_C_SET_CONNECT 100
401 #define BIO_C_DO_STATE_MACHINE 101
402 #define BIO_C_SET_NBIO 102
403 #define BIO_C_SET_PROXY_PARAM 103
404 #define BIO_C_SET_FD 104
405 #define BIO_C_GET_FD 105
406 #define BIO_C_SET_FILE_PTR 106
407 #define BIO_C_GET_FILE_PTR 107
408 #define BIO_C_SET_FILENAME 108
409 #define BIO_C_SET_SSL 109
410 #define BIO_C_GET_SSL 110
411 #define BIO_C_SET_MD 111
412 #define BIO_C_GET_MD 112
413 #define BIO_C_GET_CIPHER_STATUS 113
414 #define BIO_C_SET_BUF_MEM 114
415 #define BIO_C_GET_BUF_MEM_PTR 115
416 #define BIO_C_GET_BUFF_NUM_LINES 116
417 #define BIO_C_SET_BUFF_SIZE 117
418 #define BIO_C_SET_ACCEPT 118
419 #define BIO_C_SSL_MODE 119
420 #define BIO_C_GET_MD_CTX 120
421 #define BIO_C_GET_PROXY_PARAM 121
422 #define BIO_C_SET_BUFF_READ_DATA 122
423 #define BIO_C_GET_CONNECT 123
424 #define BIO_C_GET_ACCEPT 124
425 #define BIO_C_SET_SSL_RENEGOTIATE_BYTES 125
426 #define BIO_C_GET_SSL_NUM_RENEGOTIATES 126
427 #define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT 127
428 #define BIO_C_FILE_SEEK 128
429 #define BIO_C_GET_CIPHER_CTX 129
430 #define BIO_C_SET_BUF_MEM_EOF_RETURN 130
431 #define BIO_C_SET_BIND_MODE 131
432 #define BIO_C_GET_BIND_MODE 132
433 #define BIO_C_FILE_TELL 133
434 #define BIO_C_GET_SOCKS 134
435 #define BIO_C_SET_SOCKS 135
437 #define BIO_C_SET_WRITE_BUF_SIZE 136
438 #define BIO_C_GET_WRITE_BUF_SIZE 137
439 #define BIO_C_MAKE_BIO_PAIR 138
440 #define BIO_C_DESTROY_BIO_PAIR 139
441 #define BIO_C_GET_WRITE_GUARANTEE 140
442 #define BIO_C_GET_READ_REQUEST 141
443 #define BIO_C_SHUTDOWN_WR 142
444 #define BIO_C_NREAD0 143
445 #define BIO_C_NREAD 144
446 #define BIO_C_NWRITE0 145
447 #define BIO_C_NWRITE 146
448 #define BIO_C_RESET_READ_REQUEST 147
449 #define BIO_C_SET_MD_CTX 148
451 #define BIO_C_SET_PREFIX 149
452 #define BIO_C_GET_PREFIX 150
453 #define BIO_C_SET_SUFFIX 151
454 #define BIO_C_GET_SUFFIX 152
456 #define BIO_C_SET_EX_ARG 153
457 #define BIO_C_GET_EX_ARG 154
459 #define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)
460 #define BIO_get_app_data(s) BIO_get_ex_data(s,0)
463 #define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,(char *)name)
464 #define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,(char *)port)
465 #define BIO_set_conn_ip(b,ip) BIO_ctrl(b,BIO_C_SET_CONNECT,2,(char *)ip)
466 #define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port)
467 #define BIO_get_conn_hostname(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)
468 #define BIO_get_conn_port(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)
469 #define BIO_get_conn_ip(b) BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)
470 #define BIO_get_conn_int_port(b) BIO_int_ctrl(b,BIO_C_GET_CONNECT,3,0)
473 #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
476 #define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)
477 #define BIO_get_accept_port(b) BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)
479 #define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?(void *)"a":NULL)
480 #define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)
482 #define BIO_BIND_NORMAL 0
483 #define BIO_BIND_REUSEADDR_IF_UNUSED 1
484 #define BIO_BIND_REUSEADDR 2
485 #define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)
486 #define BIO_get_bind_mode(b,mode) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)
488 #define BIO_do_connect(b) BIO_do_handshake(b)
489 #define BIO_do_accept(b) BIO_do_handshake(b)
490 #define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)
493 #define BIO_set_url(b,url) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,0,(char *)(url))
494 #define BIO_set_proxies(b,p) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,1,(char *)(p))
496 #define BIO_set_filter_bio(b,s) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,2,(char *)(s))
498 #define BIO_set_proxy_cb(b,cb) BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)()))
499 #define BIO_set_proxy_header(b,sk) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,4,(char *)sk)
500 #define BIO_set_no_connect_return(b,bool) BIO_int_ctrl(b,BIO_C_SET_PROXY_PARAM,5,bool)
502 #define BIO_get_proxy_header(b,skp) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,0,(char *)skp)
503 #define BIO_get_proxies(b,pxy_p) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,1,(char *)(pxy_p))
504 #define BIO_get_url(b,url) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,2,(char *)(url))
505 #define BIO_get_no_connect_return(b) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,5,NULL)
507 #define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)
508 #define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)
510 #define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp)
511 #define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp)
513 #define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
514 #define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)
524 #define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
525 BIO_CLOSE|BIO_FP_READ,(char *)name)
527 #define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
528 BIO_CLOSE|BIO_FP_WRITE,name)
529 #define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
530 BIO_CLOSE|BIO_FP_APPEND,name)
531 #define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \
532 BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)
538 #define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl)
539 #define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp)
540 #define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)
541 #define BIO_set_ssl_renegotiate_bytes(b,num) \
542 BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL);
543 #define BIO_get_num_renegotiates(b) \
544 BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL);
545 #define BIO_set_ssl_renegotiate_timeout(b,seconds) \
546 BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL);
551 #define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp)
552 #define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)bm)
553 #define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)
554 #define BIO_set_mem_eof_return(b,v) \
555 BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
558 #define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)
559 #define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)
560 #define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)
561 #define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)
562 #define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)
565 #define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))
567 #define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)
568 #define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)
569 #define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
570 #define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
571 #define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
572 #define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
576 #define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
577 #define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
579 #define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
582 #define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
585 #define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
586 #define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
587 #define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
588 #define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
589 #define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
591 #define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
592 #define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
598 #define BIO_ctrl_dgram_connect(b,peer) \
599 (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer)
600 #define BIO_ctrl_set_connected(b, state, peer) \
601 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, state, (char *)peer)
602 #define BIO_dgram_recv_timedout(b) \
603 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)
604 #define BIO_dgram_send_timedout(b) \
605 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)
606 #define BIO_dgram_get_peer(b,peer) \
607 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)peer)
608 #define BIO_dgram_set_peer(b,peer) \
609 (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)peer)
631 # ifndef OPENSSL_NO_FP_API
635 # define BIO_s_file_internal BIO_s_file
673 #ifndef OPENSSL_SYS_OS2
680 #ifdef OPENSSL_SYS_VMS
684 #ifndef OPENSSL_NO_DGRAM
686 #ifndef OPENSSL_NO_SCTP
700 void *u,
const char *s,
int len);
702 void *u,
const char *s,
int len,
int indent);
705 #ifndef OPENSSL_NO_FP_API
721 int BIO_get_port(
const char *str,
unsigned short *port_ptr);
731 #ifndef OPENSSL_NO_SCTP
735 void (*handle_notifications)(
BIO *bio,
void *context,
void *buf),
745 BIO **bio2,
size_t writebuf2);
756 # define __bio_h__attr__ __attribute__
758 # define __bio_h__attr__(x)
764 int BIO_snprintf(
char *buf,
size_t n, const
char *format, ...)
766 int BIO_vsnprintf(
char *buf,
size_t n, const
char *format, va_list args)
768 #undef __bio_h__attr__
779 #define BIO_F_ACPT_STATE 100
780 #define BIO_F_BIO_ACCEPT 101
781 #define BIO_F_BIO_BER_GET_HEADER 102
782 #define BIO_F_BIO_CALLBACK_CTRL 131
783 #define BIO_F_BIO_CTRL 103
784 #define BIO_F_BIO_GETHOSTBYNAME 120
785 #define BIO_F_BIO_GETS 104
786 #define BIO_F_BIO_GET_ACCEPT_SOCKET 105
787 #define BIO_F_BIO_GET_HOST_IP 106
788 #define BIO_F_BIO_GET_PORT 107
789 #define BIO_F_BIO_MAKE_PAIR 121
790 #define BIO_F_BIO_NEW 108
791 #define BIO_F_BIO_NEW_FILE 109
792 #define BIO_F_BIO_NEW_MEM_BUF 126
793 #define BIO_F_BIO_NREAD 123
794 #define BIO_F_BIO_NREAD0 124
795 #define BIO_F_BIO_NWRITE 125
796 #define BIO_F_BIO_NWRITE0 122
797 #define BIO_F_BIO_PUTS 110
798 #define BIO_F_BIO_READ 111
799 #define BIO_F_BIO_SOCK_INIT 112
800 #define BIO_F_BIO_WRITE 113
801 #define BIO_F_BUFFER_CTRL 114
802 #define BIO_F_CONN_CTRL 127
803 #define BIO_F_CONN_STATE 115
804 #define BIO_F_DGRAM_SCTP_READ 132
805 #define BIO_F_FILE_CTRL 116
806 #define BIO_F_FILE_READ 130
807 #define BIO_F_LINEBUFFER_CTRL 129
808 #define BIO_F_MEM_READ 128
809 #define BIO_F_MEM_WRITE 117
810 #define BIO_F_SSL_NEW 118
811 #define BIO_F_WSASTARTUP 119
814 #define BIO_R_ACCEPT_ERROR 100
815 #define BIO_R_BAD_FOPEN_MODE 101
816 #define BIO_R_BAD_HOSTNAME_LOOKUP 102
817 #define BIO_R_BROKEN_PIPE 124
818 #define BIO_R_CONNECT_ERROR 103
819 #define BIO_R_EOF_ON_MEMORY_BIO 127
820 #define BIO_R_ERROR_SETTING_NBIO 104
821 #define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET 105
822 #define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET 106
823 #define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET 107
824 #define BIO_R_INVALID_ARGUMENT 125
825 #define BIO_R_INVALID_IP_ADDRESS 108
826 #define BIO_R_IN_USE 123
827 #define BIO_R_KEEPALIVE 109
828 #define BIO_R_NBIO_CONNECT_ERROR 110
829 #define BIO_R_NO_ACCEPT_PORT_SPECIFIED 111
830 #define BIO_R_NO_HOSTNAME_SPECIFIED 112
831 #define BIO_R_NO_PORT_DEFINED 113
832 #define BIO_R_NO_PORT_SPECIFIED 114
833 #define BIO_R_NO_SUCH_FILE 128
834 #define BIO_R_NULL_PARAMETER 115
835 #define BIO_R_TAG_MISMATCH 116
836 #define BIO_R_UNABLE_TO_BIND_SOCKET 117
837 #define BIO_R_UNABLE_TO_CREATE_SOCKET 118
838 #define BIO_R_UNABLE_TO_LISTEN_SOCKET 119
839 #define BIO_R_UNINITIALIZED 120
840 #define BIO_R_UNSUPPORTED_METHOD 121
841 #define BIO_R_WRITE_TO_READ_ONLY_BIO 126
842 #define BIO_R_WSASTARTUP 122