Lines Matching refs:bio
62 static int async_new(BIO *bio) in async_new() argument
70 BIO_set_data(bio, ctrs); in async_new()
71 BIO_set_init(bio, 1); in async_new()
75 static int async_free(BIO *bio) in async_free() argument
79 if (bio == NULL) in async_free()
81 ctrs = BIO_get_data(bio); in async_free()
83 BIO_set_data(bio, NULL); in async_free()
84 BIO_set_init(bio, 0); in async_free()
89 static int async_read(BIO *bio, char *out, int outl) in async_read() argument
93 BIO *next = BIO_next(bio); in async_read()
100 ctrs = BIO_get_data(bio); in async_read()
102 BIO_clear_retry_flags(bio); in async_read()
107 BIO_set_retry_read(bio); in async_read()
111 BIO_set_retry_read(bio); in async_read()
124 static int async_write(BIO *bio, const char *in, int inl) in async_write() argument
129 BIO *next = BIO_next(bio); in async_write()
136 ctrs = BIO_get_data(bio); in async_write()
138 BIO_clear_retry_flags(bio); in async_write()
246 BIO_set_retry_write(bio); in async_write()
251 BIO_set_retry_write(bio); in async_write()
257 static long async_ctrl(BIO *bio, int cmd, long num, void *ptr) in async_ctrl() argument
260 BIO *next = BIO_next(bio); in async_ctrl()
276 static int async_gets(BIO *bio, char *buf, int size) in async_gets() argument
282 static int async_puts(BIO *bio, const char *str) in async_puts() argument
284 return async_write(bio, str, strlen(str)); in async_puts()