Lines Matching refs:ret

113     int ret = -1, i, opts;  in conn_state()  local
174 ret = BIO_socket(BIO_ADDRINFO_family(c->addr_iter), in conn_state()
177 if (ret == (int)INVALID_SOCKET) { in conn_state()
184 b->num = ret; in conn_state()
196 ret = BIO_connect(b->num, BIO_ADDRINFO_address(c->addr_iter), opts); in conn_state()
198 if (ret == 0) { in conn_state()
199 if (BIO_sock_should_retry(ret)) { in conn_state()
249 ret = 0; in conn_state()
269 ret = 0; in conn_state()
273 ret = 1; in conn_state()
281 if ((ret = cb((BIO *)b, c->state, ret)) == 0) in conn_state()
289 ret = cb((BIO *)b, c->state, ret); in conn_state()
291 return ret; in conn_state()
296 BIO_CONNECT *ret; in BIO_CONNECT_new() local
298 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) in BIO_CONNECT_new()
300 ret->state = BIO_CONN_S_BEFORE; in BIO_CONNECT_new()
301 ret->connect_family = BIO_FAMILY_IPANY; in BIO_CONNECT_new()
302 ret->connect_sock_type = SOCK_STREAM; in BIO_CONNECT_new()
303 return ret; in BIO_CONNECT_new()
368 int ret = 0; in conn_read() local
373 ret = conn_state(b, data); in conn_read()
374 if (ret <= 0) in conn_read()
375 return ret; in conn_read()
380 ret = BIO_read(data->dgram_bio, out, outl); in conn_read()
382 return ret; in conn_read()
389 ret = ktls_read_record(b->num, out, outl); in conn_read()
392 ret = readsocket(b->num, out, outl); in conn_read()
394 if (ret <= 0) { in conn_read()
395 if (BIO_sock_should_retry(ret)) in conn_read()
397 else if (ret == 0) in conn_read()
401 return ret; in conn_read()
406 int ret; in conn_write() local
411 ret = conn_state(b, data); in conn_write()
412 if (ret <= 0) in conn_write()
413 return ret; in conn_write()
418 ret = BIO_write(data->dgram_bio, in, inl); in conn_write()
420 return ret; in conn_write()
426 ret = ktls_send_ctrl_message(b->num, data->record_type, in, inl); in conn_write()
427 if (ret >= 0) { in conn_write()
428 ret = inl; in conn_write()
437 ret = sendto(b->num, in, inl, OSSL_TFO_SENDTO, in conn_write()
442 ret = writesocket(b->num, in, inl); in conn_write()
444 if (ret <= 0) { in conn_write()
445 if (BIO_sock_should_retry(ret)) in conn_write()
448 return ret; in conn_write()
456 long ret = 1; in conn_ctrl() local
467 ret = 0; in conn_ctrl()
477 ret = (long)conn_state(b, data); in conn_ctrl()
479 ret = 1; in conn_ctrl()
494 ret = BIO_FAMILY_IPV6; in conn_ctrl()
498 ret = BIO_FAMILY_IPV4; in conn_ctrl()
501 ret = data->connect_family; in conn_ctrl()
504 ret = -1; in conn_ctrl()
508 ret = data->connect_mode; in conn_ctrl()
510 ret = 0; in conn_ctrl()
513 ret = 0; in conn_ctrl()
528 ret = BIO_parse_hostserv(ptr, in conn_ctrl()
537 ret = 0; in conn_ctrl()
543 ret = host != NULL && service != NULL; in conn_ctrl()
544 if (ret) { in conn_ctrl()
559 ret = 0; in conn_ctrl()
566 ret = 0; in conn_ctrl()
571 ret = 1; in conn_ctrl()
574 ret = data->connect_sock_type; in conn_ctrl()
579 ret = 1; in conn_ctrl()
581 ret = 0; in conn_ctrl()
593 ret = BIO_ADDR_sockaddr_size(dg_addr); in conn_ctrl()
594 if (num == 0 || num > ret) in conn_ctrl()
595 num = ret; in conn_ctrl()
598 ret = num; in conn_ctrl()
600 ret = 0; in conn_ctrl()
616 ret = 0; in conn_ctrl()
627 ret = BIO_set_nbio(data->dgram_bio, num); in conn_ctrl()
653 ret = b->num; in conn_ctrl()
655 ret = -1; in conn_ctrl()
658 ret = b->shutdown; in conn_ctrl()
665 ret = 0; in conn_ctrl()
686 ret = 0; /* use callback ctrl */ in conn_ctrl()
697 ret = (b->flags & BIO_FLAGS_IN_EOF) != 0; in conn_ctrl()
702 ret = ktls_start(b->num, crypto_info, num); in conn_ctrl()
703 if (ret) in conn_ctrl()
713 ret = 0; in conn_ctrl()
717 ret = 0; in conn_ctrl()
720 ret = ktls_enable_tx_zerocopy_sendfile(b->num); in conn_ctrl()
721 if (ret) in conn_ctrl()
726 ret = 0; in conn_ctrl()
729 return ret; in conn_ctrl()
734 long ret = 1; in conn_callback_ctrl() local
746 ret = 0; in conn_callback_ctrl()
749 return ret; in conn_callback_ctrl()
754 int n, ret; in conn_puts() local
757 ret = conn_write(bp, str, n); in conn_puts()
758 return ret; in conn_puts()
765 int ret = 0; in conn_gets() local
783 ret = conn_state(bio, data); in conn_gets()
784 if (ret <= 0) in conn_gets()
785 return ret; in conn_gets()
797 ret = ktls_read_record(bio->num, ptr, 1); in conn_gets()
800 ret = readsocket(bio->num, ptr, 1); in conn_gets()
802 if (ret <= 0) { in conn_gets()
803 if (BIO_sock_should_retry(ret)) in conn_gets()
805 else if (ret == 0) in conn_gets()
813 return ret > 0 || (bio->flags & BIO_FLAGS_IN_EOF) != 0 ? ptr - buf : ret; in conn_gets()
819 int ret; in conn_sendmmsg() local
830 ret = conn_state(bio, data); in conn_sendmmsg()
831 if (ret <= 0) { in conn_sendmmsg()
850 int ret; in conn_recvmmsg() local
861 ret = conn_state(bio, data); in conn_recvmmsg()
862 if (ret <= 0) { in conn_recvmmsg()
880 BIO *ret; in BIO_new_connect() local
882 ret = BIO_new(BIO_s_connect()); in BIO_new_connect()
883 if (ret == NULL) in BIO_new_connect()
885 if (BIO_set_conn_hostname(ret, str)) in BIO_new_connect()
886 return ret; in BIO_new_connect()
887 BIO_free(ret); in BIO_new_connect()