• Home
  • Raw
  • Download

Lines Matching refs:bio

37 AsyncBio *GetData(BIO *bio) {  in GetData()  argument
38 if (bio->method != &g_async_bio_method) { in GetData()
41 return (AsyncBio *)bio->ptr; in GetData()
44 static int AsyncWrite(BIO *bio, const char *in, int inl) { in AsyncWrite() argument
45 AsyncBio *a = GetData(bio); in AsyncWrite()
46 if (a == NULL || bio->next_bio == NULL) { in AsyncWrite()
51 return BIO_write(bio->next_bio, in, inl); in AsyncWrite()
54 BIO_clear_retry_flags(bio); in AsyncWrite()
57 BIO_set_retry_write(bio); in AsyncWrite()
65 int ret = BIO_write(bio->next_bio, in, inl); in AsyncWrite()
67 BIO_copy_next_retry(bio); in AsyncWrite()
74 static int AsyncRead(BIO *bio, char *out, int outl) { in AsyncRead() argument
75 AsyncBio *a = GetData(bio); in AsyncRead()
76 if (a == NULL || bio->next_bio == NULL) { in AsyncRead()
80 BIO_clear_retry_flags(bio); in AsyncRead()
83 BIO_set_retry_read(bio); in AsyncRead()
91 int ret = BIO_read(bio->next_bio, out, outl); in AsyncRead()
93 BIO_copy_next_retry(bio); in AsyncRead()
100 static long AsyncCtrl(BIO *bio, int cmd, long num, void *ptr) { in AsyncCtrl() argument
101 if (bio->next_bio == NULL) { in AsyncCtrl()
104 BIO_clear_retry_flags(bio); in AsyncCtrl()
105 int ret = BIO_ctrl(bio->next_bio, cmd, num, ptr); in AsyncCtrl()
106 BIO_copy_next_retry(bio); in AsyncCtrl()
110 static int AsyncNew(BIO *bio) { in AsyncNew() argument
117 bio->init = 1; in AsyncNew()
118 bio->ptr = (char *)a; in AsyncNew()
122 static int AsyncFree(BIO *bio) { in AsyncFree() argument
123 if (bio == NULL) { in AsyncFree()
127 OPENSSL_free(bio->ptr); in AsyncFree()
128 bio->ptr = NULL; in AsyncFree()
129 bio->init = 0; in AsyncFree()
130 bio->flags = 0; in AsyncFree()
134 static long AsyncCallbackCtrl(BIO *bio, int cmd, bio_info_cb fp) { in AsyncCallbackCtrl() argument
135 if (bio->next_bio == NULL) { in AsyncCallbackCtrl()
138 return BIO_callback_ctrl(bio->next_bio, cmd, fp); in AsyncCallbackCtrl()
169 void AsyncBioAllowRead(BIO *bio, size_t count) { in AsyncBioAllowRead() argument
170 AsyncBio *a = GetData(bio); in AsyncBioAllowRead()
177 void AsyncBioAllowWrite(BIO *bio, size_t count) { in AsyncBioAllowWrite() argument
178 AsyncBio *a = GetData(bio); in AsyncBioAllowWrite()
185 void AsyncBioEnforceWriteQuota(BIO *bio, bool enforce) { in AsyncBioEnforceWriteQuota() argument
186 AsyncBio *a = GetData(bio); in AsyncBioEnforceWriteQuota()