Lines Matching refs:BIO
1 /* crypto/bio/bio.h */
90 #define BIO_TYPE_PROXY_CLIENT (14|0x0200) /* client proxy BIO */
91 #define BIO_TYPE_PROXY_SERVER (15|0x0200) /* server proxy BIO */
92 #define BIO_TYPE_NBIO_TEST (16|0x0200) /* server proxy BIO */
95 #define BIO_TYPE_BIO (19|0x0400) /* (half a) BIO pair */
122 #define BIO_CTRL_DUP 12 /* man - extra stuff for 'duped' BIO */
124 /* callback is int cb(BIO *bio,state,ret); */
130 /* dgram BIO stuff */
131 #define BIO_CTRL_DGRAM_CONNECT 31 /* BIO dgram special */
189 /* Mostly used in the SSL BIO */
203 typedef struct bio_st BIO;
205 void BIO_set_flags(BIO *b, int flags);
206 int BIO_test_flags(const BIO *b, int flags);
207 void BIO_clear_flags(BIO *b, int flags);
232 * BIO *BIO_get_retry_BIO(BIO *bio, int *reason); will walk the BIO
233 * stack and return the 'reason' for the special and the offending BIO.
234 * Given a BIO, BIO_get_retry_reason(bio) will return the code. */
235 /* Returned from the SSL bio when the certificate retrieval code had an error */
237 /* Returned from the connect BIO when a connect would have blocked */
239 /* Returned from the accept BIO when an accept would have blocked */
242 /* These are passed by the BIO callback */
257 long (*BIO_get_callback(const BIO *b)) (struct bio_st *,int,const char *,int, long,long);
258 void BIO_set_callback(BIO *b,
260 char *BIO_get_callback_arg(const BIO *b);
261 void BIO_set_callback_arg(BIO *b, char *arg);
263 const char * BIO_method_name(const BIO *b);
264 int BIO_method_type(const BIO *b);
273 int (*bwrite)(BIO *, const char *, int);
274 int (*bread)(BIO *, char *, int);
275 int (*bputs)(BIO *, const char *);
276 int (*bgets)(BIO *, char *, int);
277 long (*ctrl)(BIO *, int, long, void *);
278 int (*create)(BIO *);
279 int (*destroy)(BIO *);
280 long (*callback_ctrl)(BIO *, int, bio_info_cb *);
301 /* bio, mode, argp, argi, argl, ret */
320 DECLARE_STACK_OF(BIO)
324 /* BIO *bio; */ /* this is now in the BIO struct */
337 /* connect BIO stuff */
421 #define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)
438 /* BIO *BIO_get_filter_bio(BIO *bio); */
463 int BIO_read_filename(BIO *b,const char *name);
475 /* WARNING WARNING, this ups the reference count on the read bio of the
476 * SSL structure. This is because the ssl read BIO is now pointed to by
477 * the next_bio field in the bio. So when you free the BIO, make sure
478 * you are doing a BIO_free_all() to catch the underlying BIO. */
515 size_t BIO_ctrl_pending(BIO *b);
516 size_t BIO_ctrl_wpending(BIO *b);
534 size_t BIO_ctrl_get_write_guarantee(BIO *b);
535 size_t BIO_ctrl_get_read_request(BIO *b);
536 int BIO_ctrl_reset_read_request(BIO *b);
553 /* int BIO_get_ex_num(BIO *bio); */
554 /* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
555 int BIO_set_ex_data(BIO *bio,int idx,void *data);
556 void *BIO_get_ex_data(BIO *bio,int idx);
559 unsigned long BIO_number_read(BIO *bio);
560 unsigned long BIO_number_written(BIO *bio);
565 BIO *BIO_new_file_internal(char *filename, char *mode);
566 BIO *BIO_new_fp_internal(FILE *stream, int close_flag);
572 BIO *BIO_new_file(const char *filename, const char *mode);
573 BIO *BIO_new_fp(FILE *stream, int close_flag);
579 BIO * BIO_new(BIO_METHOD *type);
580 int BIO_set(BIO *a,BIO_METHOD *type);
581 int BIO_free(BIO *a);
582 void BIO_vfree(BIO *a);
583 int BIO_read(BIO *b, void *data, int len);
584 int BIO_gets(BIO *bp,char *buf, int size);
585 int BIO_write(BIO *b, const void *data, int len);
586 int BIO_puts(BIO *bp,const char *buf);
587 int BIO_indent(BIO *b,int indent,int max);
588 long BIO_ctrl(BIO *bp,int cmd,long larg,void *parg);
589 long BIO_callback_ctrl(BIO *b, int cmd, void (*fp)(struct bio_st *, int, const char *, int, long, long));
590 char * BIO_ptr_ctrl(BIO *bp,int cmd,long larg);
591 long BIO_int_ctrl(BIO *bp,int cmd,long larg,int iarg);
592 BIO * BIO_push(BIO *b,BIO *append);
593 BIO * BIO_pop(BIO *b);
594 void BIO_free_all(BIO *a);
595 BIO * BIO_find_type(BIO *b,int bio_type);
596 BIO * BIO_next(BIO *b);
597 BIO * BIO_get_retry_BIO(BIO *bio, int *reason);
598 int BIO_get_retry_reason(BIO *bio);
599 BIO * BIO_dup_chain(BIO *in);
601 int BIO_nread0(BIO *bio, char **buf);
602 int BIO_nread(BIO *bio, char **buf, int num);
603 int BIO_nwrite0(BIO *bio, char **buf);
604 int BIO_nwrite(BIO *bio, char **buf, int num);
607 long BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
610 long _far _loadds BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
615 BIO *BIO_new_mem_buf(void *buf, int len);
647 int BIO_dump(BIO *b,const char *bytes,int len);
648 int BIO_dump_indent(BIO *b,const char *bytes,int len,int indent);
673 BIO *BIO_new_socket(int sock, int close_flag);
674 BIO *BIO_new_dgram(int fd, int close_flag);
675 BIO *BIO_new_fd(int fd, int close_flag);
676 BIO *BIO_new_connect(char *host_port);
677 BIO *BIO_new_accept(char *host_port);
679 int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,
680 BIO **bio2, size_t writebuf2);
681 /* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.
686 void BIO_copy_next_retry(BIO *b);
695 int BIO_printf(BIO *bio, const char *format, ...)
697 int BIO_vprintf(BIO *bio, const char *format, va_list args)
711 /* Error codes for the BIO functions. */