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