Lines Matching refs:data

43 static int acpt_free(BIO *data);
45 static void acpt_close_socket(BIO *data);
132 BIO_ACCEPT *data; in acpt_free() local
136 data = (BIO_ACCEPT *)a->ptr; in acpt_free()
140 BIO_ACCEPT_free(data); in acpt_free()
366 BIO_ACCEPT *data; in acpt_read() local
369 data = (BIO_ACCEPT *)b->ptr; in acpt_read()
372 ret = acpt_state(b, data); in acpt_read()
385 BIO_ACCEPT *data; in acpt_write() local
388 data = (BIO_ACCEPT *)b->ptr; in acpt_write()
391 ret = acpt_state(b, data); in acpt_write()
405 BIO_ACCEPT *data; in acpt_ctrl() local
408 data = (BIO_ACCEPT *)b->ptr; in acpt_ctrl()
413 data->state = ACPT_S_BEFORE; in acpt_ctrl()
415 BIO_ADDRINFO_free(data->addr_first); in acpt_ctrl()
416 data->addr_first = NULL; in acpt_ctrl()
421 ret = (long)acpt_state(b, data); in acpt_ctrl()
426 char *hold_serv = data->param_serv; in acpt_ctrl()
431 OPENSSL_free(data->param_addr); in acpt_ctrl()
432 data->param_addr = NULL; in acpt_ctrl()
434 &data->param_addr, in acpt_ctrl()
435 &data->param_serv, in acpt_ctrl()
437 if (hold_serv != data->param_serv) in acpt_ctrl()
441 OPENSSL_free(data->param_serv); in acpt_ctrl()
442 if ((data->param_serv = OPENSSL_strdup(ptr)) == NULL) in acpt_ctrl()
447 data->bind_mode |= BIO_SOCK_NONBLOCK; in acpt_ctrl()
449 BIO_free(data->bio_chain); in acpt_ctrl()
450 data->bio_chain = (BIO *)ptr; in acpt_ctrl()
452 data->accept_family = *(int *)ptr; in acpt_ctrl()
454 data->bind_mode |= BIO_SOCK_TFO; in acpt_ctrl()
458 data->bind_mode &= ~BIO_SOCK_NONBLOCK; in acpt_ctrl()
460 data->bind_mode &= ~BIO_SOCK_TFO; in acpt_ctrl()
466 data->accepted_mode |= BIO_SOCK_NONBLOCK; in acpt_ctrl()
468 data->accepted_mode &= ~BIO_SOCK_NONBLOCK; in acpt_ctrl()
472 data->accept_sock = b->num; in acpt_ctrl()
473 data->state = ACPT_S_ACCEPT; in acpt_ctrl()
481 *ip = data->accept_sock; in acpt_ctrl()
482 ret = data->accept_sock; in acpt_ctrl()
490 *pp = data->cache_accepting_name; in acpt_ctrl()
493 *pp = data->cache_accepting_serv; in acpt_ctrl()
496 *pp = data->cache_peer_name; in acpt_ctrl()
499 *pp = data->cache_peer_serv; in acpt_ctrl()
501 switch (BIO_ADDRINFO_family(data->addr_iter)) { in acpt_ctrl()
511 ret = data->accept_family; in acpt_ctrl()
535 data->bind_mode = (int)num; in acpt_ctrl()
538 ret = (long)data->bind_mode; in acpt_ctrl()