Home | History | Annotate | Download | only in bio

Lines Matching defs:bio

1 /* crypto/bio/bss_acpt.c */
63 #include <openssl/bio.h>
92 BIO *bio_chain;
95 static int acpt_write(BIO *h, const char *buf, int num);
96 static int acpt_read(BIO *h, char *buf, int size);
97 static int acpt_puts(BIO *h, const char *str);
98 static long acpt_ctrl(BIO *h, int cmd, long arg1, void *arg2);
99 static int acpt_new(BIO *h);
100 static int acpt_free(BIO *data);
101 static int acpt_state(BIO *b, BIO_ACCEPT *c);
102 static void acpt_close_socket(BIO *data);
129 static int acpt_new(BIO *bi)
168 static void acpt_close_socket(BIO *bio)
172 c=(BIO_ACCEPT *)bio->ptr;
178 bio->num=INVALID_SOCKET;
182 static int acpt_free(BIO *a)
200 static int acpt_state(BIO *b, BIO_ACCEPT *c)
202 BIO *bio=NULL,*dbio;
253 bio=BIO_new_socket(i,BIO_CLOSE);
254 if (bio == NULL) goto err;
256 BIO_set_callback(bio,BIO_get_callback(b));
257 BIO_set_callback_arg(bio,BIO_get_callback_arg(b));
268 /* If the accept BIO has an bio_chain, we dup it and
274 if (!BIO_push(dbio,bio)) goto err;
275 bio=dbio;
277 if (BIO_push(b,bio) == NULL) goto err;
282 if (bio != NULL)
283 BIO_free(bio);
303 static int acpt_read(BIO *b, char *out, int outl)
322 static int acpt_write(BIO *b, const char *in, int inl)
341 static long acpt_ctrl(BIO *b, int cmd, long num, void *ptr)
380 data->bio_chain=(BIO *)ptr;
439 /* dbio=(BIO *)ptr;
454 static int acpt_puts(BIO *bp, const char *str)
463 BIO *BIO_new_accept(char *str)
465 BIO *ret;